> ## Documentation Index
> Fetch the complete documentation index at: https://docs.screenjson.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Queue a screenplay conversion job



## OpenAPI

````yaml /api-reference/greenlight/openapi.json post /push
openapi: 3.1.0
info:
  title: Greenlight — Screenplay Conversion & Validation API
  description: >-
    REST API for the Greenlight screenplay microservice. Converts between
    screenplay formats (FDX, Fountain, FadeIn, PDF) and ScreenJSON, with
    validation and encryption.
  version: 1.0.0
  contact:
    name: Edverum
servers:
  - url: http://localhost:8080
    description: Local development
  - url: http://localhost:19000
    description: Docker compose (mapped port)
security:
  - bearerAuth: []
paths:
  /push:
    post:
      tags:
        - Jobs
      summary: Queue a screenplay conversion job
      operationId: pushJob
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PushRequest'
            examples:
              fdx-to-screenjson:
                summary: Convert FDX to ScreenJSON
                value:
                  input_key: screenplays/input/script.fdx
                  output_key: screenplays/output/script-v1
                  document_id: '12345'
                  tasks:
                    - convert-fdx-to-screenjson
                    - validate-screenjson
              export-multi:
                summary: Export to multiple formats
                value:
                  input_key: screenplays/input/script.json
                  output_key: screenplays/output/exports
                  document_id: '12345'
                  tasks:
                    - export-to-fdx
                    - export-to-fountain
                    - export-to-pdf
                    - zip-output
              encrypt:
                summary: Encrypt a ScreenJSON document
                value:
                  input_key: screenplays/input/script.json
                  output_key: screenplays/output/encrypted
                  document_id: '12345'
                  tasks:
                    - encrypt-screenjson
                  vars:
                    encrypt_key: mysecretkey123
      responses:
        '200':
          description: Job enqueued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushResponse'
        '400':
          description: Validation error
components:
  schemas:
    PushRequest:
      type: object
      required:
        - input_key
        - output_key
        - document_id
        - tasks
      properties:
        input_key:
          type: string
          example: screenplays/input/script.fdx
        output_key:
          type: string
          example: screenplays/output/script-v1
        document_id:
          type: string
          example: '12345'
        tasks:
          type: array
          items:
            type: string
          example:
            - convert-fdx-to-screenjson
            - validate-screenjson
        vars:
          type: object
          additionalProperties: true
          example:
            encrypt_key: mysecretkey123
        webhook:
          type: string
        tenant_id:
          type: string
    PushResponse:
      type: object
      properties:
        job_id:
          type: string
        status:
          type: string
          example: queued
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````