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

# Get a job

> Read a job: its state, progress and, when done, result.assets with each file's Summer URL.



## OpenAPI

````yaml scripts/api/sources/openapi.json GET /jobs/{jobId}
openapi: 3.1.0
info:
  title: Summer API
  version: '1'
  description: >-
    Curated, tested game-dev models: 3D, images, video, voice, sound and music,
    into your Summer assets.
servers:
  - url: https://www.summerengine.com/v1
security:
  - bearer: []
paths:
  /jobs/{jobId}:
    get:
      summary: Check a job
      description: >-
        Read a job: its state (queued, running, done, failed, ...), progress
        and, when done, result.assets with Summer file URLs.
      operationId: jobs_get
      parameters:
        - name: jobId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Done.
          content:
            application/json:
              schema:
                type: object
                properties:
                  job:
                    type: object
                    properties:
                      id:
                        type: string
                      kind:
                        type: string
                      state:
                        type: string
                        enum:
                          - queued
                          - running
                          - awaiting_approval
                          - done
                          - failed
                          - cancelled
                          - declined
                          - expired
                          - stale
                      progress:
                        type: number
                      result:
                        description: >-
                          The finished work: asset ids and URLs, or the approved
                          change.
                        type: object
                        additionalProperties: {}
                      error:
                        type: object
                        properties:
                          code:
                            type: string
                          message:
                            type: string
                        required:
                          - code
                          - message
                        additionalProperties: false
                      message:
                        type: string
                      pollAfterSeconds:
                        type: number
                      model:
                        description: 'Summer API jobs: the model id it runs.'
                        type: string
                      estimatedPrice:
                        description: >-
                          Summer API jobs: the price quoted when it was
                          accepted, in USD.
                        type: string
                      price:
                        description: 'Summer API jobs: what it charged, in USD, once known.'
                        type: string
                    required:
                      - id
                      - kind
                      - state
                    additionalProperties: false
                required:
                  - job
                additionalProperties: false
        default:
          description: An error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - param
            - request_id
            - doc_url
          properties:
            type:
              type: string
            code:
              type: string
              description: >-
                A stable code: invalid_input, not_signed_in, no_credits (the
                paid balance), over_limit (the app's own spend limit), ...
            message:
              type: string
            param:
              type:
                - string
                - 'null'
              description: The field to fix, such as input.prompt or Idempotency-Key.
            request_id:
              type: string
            doc_url:
              type: string
            fix_url:
              type: string
              description: Where the person fixes it, such as adding credits.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A Summer sign-in: an OAuth 2.1 access token, valid one hour. Sign in
        once with npx -y summer-engine login, then print a token with summer
        token. Each app you sign in spends your paid credits up to the limit you
        set in Connected apps.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.