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

# Get a generation job

> Returns the current job state. Queued or running jobs are advanced by polling the image provider.



## OpenAPI

````yaml /openapi.json get /api/jobs/{id}
openapi: 3.1.0
info:
  title: AirGraphic API
  version: '2026-05-19'
  description: >-
    Generate on-brand infographics and audience-native memes from source
    context.
servers:
  - url: https://airgraphic.io
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: Generations
    description: Create and poll infographic jobs.
  - name: Brands
    description: Preview brand identity from a public website.
paths:
  /api/jobs/{id}:
    get:
      tags:
        - Generations
      summary: Get a generation job
      description: >-
        Returns the current job state. Queued or running jobs are advanced by
        polling the image provider.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Current job state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
        '401':
          description: Missing, revoked, or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No generation exists in the authenticated workspace for this id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Job:
      type: object
      required:
        - id
        - status
        - sourceUrl
        - assetType
        - aspect
        - format
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
            - refunded
        sourceUrl:
          type: string
        assetType:
          type: string
          enum:
            - infographic
            - meme
        aspect:
          type: string
          enum:
            - '9:16'
            - '1:1'
            - '4:5'
            - '16:9'
        format:
          type: string
          enum:
            - png
            - jpeg
            - webp
        imageUrl:
          type: string
          format: uri
        mirrorUrl:
          type: string
          format: uri
        width:
          type: integer
        height:
          type: integer
        contentType:
          type: string
        prompt:
          type: string
        error:
          type: string
        createdAt:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
        code:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: ag_ API key
      x-default: ag_your_api_key

````