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

# Poll a job



## OpenAPI

````yaml /openapi.json get /api/v1/jobs/{id}
openapi: 3.1.0
info:
  title: VidGuy API
  version: 1.0.0
  description: >-
    Make videos, snacks, carousels, images and audio with VidGuy, and post them
    to your connected accounts. Authenticate with a `vf_live_` key as a Bearer
    token.
servers:
  - url: https://www.vidguy.ai
security:
  - ApiKeyAuth: []
tags:
  - name: Jobs
  - name: Credits
  - name: Brands
  - name: Snacks and memes
  - name: Videos
  - name: Carousels and slides
  - name: Images and video models
  - name: Characters
  - name: Editing
  - name: Assets
  - name: Audio
  - name: Social posting
paths:
  /api/v1/jobs/{id}:
    get:
      tags:
        - Jobs
      summary: Poll a job
      operationId: getApiJob
      parameters:
        - schema:
            type: string
            example: 85d535ac-219e-4fde-b527-488ed1157bb2
          required: true
          name: id
          in: path
          description: The public API job ID.
      responses:
        '200':
          description: Job state and result payload.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiJobResponse'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Job not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    GetApiJobResponse:
      type: object
      properties:
        jobId:
          type: string
        offeringId:
          type: string
          enum:
            - video_production
            - clip_analysis_upload
            - clip_render
            - snack_generation
            - ai_story_generation
            - carousel_generation
            - slides_generation
            - carousel_v2_batch
        name:
          type:
            - string
            - 'null'
        status:
          $ref: '#/components/schemas/ApiJobStatus'
        progress:
          type: integer
        projectId:
          type:
            - string
            - 'null'
        clipJobId:
          type:
            - string
            - 'null'
        parentJobId:
          type:
            - string
            - 'null'
        instanceId:
          type:
            - string
            - 'null'
        creditsReserved:
          type:
            - integer
            - 'null'
        creditsFinal:
          type:
            - integer
            - 'null'
        error:
          type:
            - string
            - 'null'
        result:
          type: object
          additionalProperties: {}
        createdAt:
          type:
            - string
            - 'null'
        updatedAt:
          type:
            - string
            - 'null'
      required:
        - jobId
        - offeringId
        - status
        - progress
        - result
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Invalid request
        message:
          type: string
        details:
          type: object
          additionalProperties: {}
      required:
        - error
    ApiJobStatus:
      type: string
      enum:
        - queued
        - processing
        - awaiting_selection
        - completed
        - failed
        - cancelled
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Send your API key in the Authorization header: `Bearer vf_live_...`'

````

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