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

# Read a session

> Deprecated: use /projects/{id} for new integrations. This route remains callable with its existing single-video arguments and response contract. No removal date is scheduled.



## OpenAPI

````yaml /2026-10-22/openapi.json get /sessions/{job_id}
openapi: 3.1.0
info:
  title: Motion
  version: '2026-10-22'
  description: >-
    Motion 2026-10-22 (legacy) REST API — original contract retained for
    existing integrations. Pass Motion-API-Version: 2026-10-22 (legacy) to
    select this contract explicitly.
servers:
  - url: https://api.motion.so/api/motion
security:
  - MotionApiKey: []
tags:
  - name: Projects
  - name: Exports
  - name: Library
  - name: Templates
  - name: Brand kits
  - name: Connectors
    description: Connect services and control the actions a project may use.
  - name: Automations
  - name: Social posting
  - name: Deprecated (/sessions)
    description: >-
      Earlier single-video endpoints kept callable for existing 2026-10-22
      integrations. Use Projects on 2026-11-19 for new integrations.
paths:
  /sessions/{job_id}:
    get:
      tags:
        - Deprecated (/sessions)
      summary: Read a session
      description: >-
        Deprecated: use /projects/{id} for new integrations. This route remains
        callable with its existing single-video arguments and response contract.
        No removal date is scheduled.
      operationId: getMotionSessionStatus
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
          description: Job ID returned by POST /sessions.
        - $ref: '#/components/parameters/MotionApiVersion'
      responses:
        '200':
          description: Job status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MotionJobStatus'
              example:
                job_id: 4f20dcdd-f63b-4898-97d6-2e05c0d37c78
                status: completed
                chat_url: >-
                  https://motion.so/agent?chat=4f20dcdd-f63b-4898-97d6-2e05c0d37c78
                created_at: '2026-11-17T19:59:00Z'
                updated_at: '2026-11-17T20:00:00Z'
                completed_at: '2026-11-17T20:00:00Z'
                error: null
                pending_user_input: false
                output:
                  status: completed
                  download_url: https://downloads.example.com/film.mp4
                  expires_at: '2026-11-17T21:00:00Z'
                  completed_at: '2026-11-17T20:00:00Z'
                  error: null
                engine: gva
                effort: standard
                template: null
          headers:
            Deprecation:
              description: Deprecation date as a structured timestamp.
              schema:
                type: string
              example: '@1794441600'
            Link:
              description: Project API successor, with rel="successor-version".
              schema:
                type: string
        '401':
          description: Missing or invalid Motion API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers:
            Deprecation:
              description: Deprecation date as a structured timestamp.
              schema:
                type: string
              example: '@1794441600'
            Link:
              description: Project API successor, with rel="successor-version".
              schema:
                type: string
        '404':
          description: Job not found or not owned by API key user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers:
            Deprecation:
              description: Deprecation date as a structured timestamp.
              schema:
                type: string
              example: '@1794441600'
            Link:
              description: Project API successor, with rel="successor-version".
              schema:
                type: string
      deprecated: true
      security:
        - MotionApiKey: []
components:
  parameters:
    MotionApiVersion:
      name: Motion-API-Version
      in: header
      required: false
      description: >-
        Optional API version override for this request. When omitted, Motion
        uses the API version pinned to your API key or OAuth connection.
      schema:
        type: string
        enum:
          - '2026-10-22'
        default: '2026-10-22'
      example: '2026-10-22'
  schemas:
    MotionJobStatus:
      type: object
      required:
        - job_id
        - status
        - created_at
        - updated_at
        - completed_at
        - error
        - pending_user_input
        - output
      properties:
        job_id:
          type: string
        status:
          type: string
          enum:
            - queued
            - created
            - running
            - awaiting_user_input
            - completed
            - failed
        chat_url:
          type:
            - string
            - 'null'
          format: uri
          description: >-
            Motion app chat URL for a human to open, inspect, or continue the
            run. Null for legacy jobs without a Motion agent chat.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
        error:
          type:
            - string
            - 'null'
        pending_user_input:
          type: boolean
        output:
          anyOf:
            - $ref: '#/components/schemas/MotionJobOutput'
            - type: 'null'
          description: >-
            Download readiness state. There is no separate public
            output/download endpoint; poll this status response until
            output.status is completed and output.download_url is non-null.
        sources:
          type: array
          description: >-
            Additive source-asset audit list for media currently used in the
            composition.
          items:
            $ref: '#/components/schemas/MotionCompositionSource'
        engine:
          type:
            - string
            - 'null'
          description: Null when engine details are unavailable to this account.
        effort:
          type:
            - string
            - 'null'
          enum:
            - standard
            - extended
            - light
            - medium
            - high
            - null
          description: Project effort, fixed at creation. Defaults to standard.
        template:
          type:
            - string
            - 'null'
    ErrorResponse:
      type: object
      description: >-
        Error bodies are JSON. Check the HTTP status first. Permission and
        validation errors use error; service errors may use detail. Optional
        fields explain how to correct the request.
      anyOf:
        - required:
            - error
        - required:
            - detail
      properties:
        error:
          type: string
          description: Error code or readable explanation.
        detail:
          type: string
          description: Readable explanation from the service.
        message:
          type: string
          description: Readable explanation accompanying an error code.
        error_description:
          type: string
          description: Authentication or permission explanation.
        required_scope:
          type: string
          description: Permission required by this operation.
        details:
          type: array
          description: Invalid request fields. Each issue includes a path and message.
          items:
            type: object
            properties:
              code:
                type: string
              path:
                type: array
                items:
                  oneOf:
                    - type: string
                    - type: integer
              message:
                type: string
        issues:
          type: array
          description: Service validation issues.
          items:
            type: object
    MotionJobOutput:
      type: object
      required:
        - status
        - download_url
        - expires_at
        - completed_at
        - error
      properties:
        status:
          type: string
          enum:
            - pending
            - queued
            - processing
            - completed
            - failed
            - outdated
        download_url:
          type:
            - string
            - 'null'
          format: uri
          description: Signed MP4 download URL. Present only when status is completed.
        expires_at:
          type:
            - string
            - 'null'
          format: date-time
          description: Expiration timestamp for download_url.
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
        error:
          type:
            - string
            - 'null'
    MotionCompositionSource:
      type: object
      additionalProperties: false
      required:
        - id
        - source_kind
        - provider
        - provider_asset_id
        - source_url
        - display_url
        - source_domain
        - media_type
        - title
        - credit
        - rights_status
        - usages
        - source_metadata
        - rights_metadata
      properties:
        id:
          type: string
        source_kind:
          type: string
          enum:
            - licensed_library
            - article
            - web_search
            - web
            - connector
            - upload
            - generated
            - unknown
          description: How the asset was acquired.
        provider:
          type: string
          description: >-
            Provider or origin, such as getty, pexels, perplexity, github, or an
            article domain.
        provider_asset_id:
          type:
            - string
            - 'null'
          description: Provider-specific asset ID when available.
        source_url:
          type:
            - string
            - 'null'
          format: uri
          description: Canonical public source URL when available.
        display_url:
          type:
            - string
            - 'null'
          format: uri
          description: Preview/display URL when available.
        source_domain:
          type:
            - string
            - 'null'
        media_type:
          type: string
          enum:
            - image
            - video
            - audio
            - file
            - unknown
        title:
          type:
            - string
            - 'null'
        credit:
          type:
            - string
            - 'null'
        rights_status:
          type: string
          enum:
            - licensed
            - public
            - restricted
            - user_provided
            - generated
            - unknown
          description: Best-known rights category for the source asset.
        usages:
          type: array
          items:
            $ref: '#/components/schemas/MotionCompositionSourceUsage'
        source_metadata:
          type: object
          description: >-
            Provider/source-specific public metadata. Shape varies by source
            kind and provider.
          additionalProperties: true
        rights_metadata:
          type: object
          description: >-
            Provider/license-specific rights metadata. Shape varies by source
            kind and provider.
          additionalProperties: true
    MotionCompositionSourceUsage:
      type: object
      additionalProperties: false
      properties:
        start_seconds:
          type:
            - number
            - 'null'
          description: Timeline start time in seconds when known.
        end_seconds:
          type:
            - number
            - 'null'
          description: Timeline end time in seconds when known.
        duration_seconds:
          type:
            - number
            - 'null'
          description: Timeline duration in seconds when known.
        scene_id:
          type:
            - string
            - 'null'
        scene_index:
          type:
            - number
            - 'null'
        slot_key:
          type:
            - string
            - 'null'
        element_tag:
          type:
            - string
            - 'null'
          description: Composition element tag such as img, video, audio, or source.
        composition_file:
          type:
            - string
            - 'null'
        composition_id:
          type:
            - string
            - 'null'
        track_index:
          type:
            - number
            - 'null'
  securitySchemes:
    MotionApiKey:
      type: http
      scheme: bearer
      description: >-
        A Motion API key. Access is limited to its stored organization,
        workspace, scopes and the creator’s current permissions.

````

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