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

# Get video job status and result

> Gets the status of a video generation job, with a download link once it has succeeded.
Requires a valid `X-API-KEY` header.

The link expires after 24 hours. Call this endpoint again for a fresh link instead of
regenerating the video.

Throws:
- 404 if the job does not exist or was not created with this API key's user



## OpenAPI

````yaml GET /video/{job_id}
openapi: 3.1.0
info:
  title: Wondercraft Public API
  version: 0.0.1
servers:
  - url: https://api.wondercraft.ai/v1
    description: Base Wondercraft API
security: []
paths:
  /video/{job_id}:
    get:
      tags:
        - Videos
      summary: Get video job status and result
      description: >-
        Gets the status of a video generation job, with a download link once it
        has succeeded.

        Requires a valid `X-API-KEY` header.


        The link expires after 24 hours. Call this endpoint again for a fresh
        link instead of

        regenerating the video.


        Throws:

        - 404 if the job does not exist or was not created with this API key's
        user
      operationId: get_video_job_video__job_id__get
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoJobStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    VideoJobStatusResponse:
      properties:
        job_id:
          type: string
          format: uuid
          title: Job Id
          description: The job ID
        status:
          $ref: '#/components/schemas/ApiJobStatus'
          description: queued, processing, succeeded or failed
        video_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Video Id
          description: Can be reused as a reference or source video
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
          description: Download URL, valid for 24 hours; poll again for a fresh one
        duration_ms:
          anyOf:
            - type: integer
            - type: 'null'
          title: Duration Ms
          description: Output length in milliseconds
        width:
          anyOf:
            - type: integer
            - type: 'null'
          title: Width
          description: Output width in pixels
        height:
          anyOf:
            - type: integer
            - type: 'null'
          title: Height
          description: Output height in pixels
        model:
          anyOf:
            - type: string
            - type: 'null'
          title: Model
          description: Model that generated the video
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
          description: Why the job failed, when status is failed
      type: object
      required:
        - job_id
        - status
      title: VideoJobStatusResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ApiJobStatus:
      type: string
      enum:
        - queued
        - processing
        - succeeded
        - failed
      title: ApiJobStatus
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY

````

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