> ## 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.

# List project turns

> List turns for a project newest-first, including failed, cancelled, and active turns. Supports cursor pagination and optional created_after / created_before date filters.



## OpenAPI

````yaml /2026-10-22/openapi.json get /projects/{id}/turns
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:
  /projects/{id}/turns:
    get:
      tags:
        - Projects
      summary: List project turns
      description: >-
        List turns for a project newest-first, including failed, cancelled, and
        active turns. Supports cursor pagination and optional created_after /
        created_before date filters.
      operationId: ListProjectTurns
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Project UUID.
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          description: Maximum number of turns to return (1–100).
        - name: cursor
          in: query
          schema:
            type: string
          description: Opaque cursor returned as next_cursor by the previous page.
        - name: created_after
          in: query
          schema:
            type: string
            format: date-time
          description: >-
            Return turns created at or after this ISO-8601 timestamp with
            timezone offset.
        - name: created_before
          in: query
          schema:
            type: string
            format: date-time
          description: >-
            Return turns created at or before this ISO-8601 timestamp with
            timezone offset.
        - $ref: '#/components/parameters/MotionApiVersion'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MotionListProjectTurnsResponse'
              example:
                project_id: 4f20dcdd-f63b-4898-97d6-2e05c0d37c78
                turns:
                  - turn_id: e8c3af4c-4f37-46b7-8b0d-53b09a67d6cb
                    status: completed
                    error: null
                    effort: standard
                    created_at: '2026-11-17T20:00:00Z'
                    completed_at: '2026-11-17T20:02:14Z'
                    generation_id: 9d2f19e2-2366-46bd-8963-869c340f723a
                    export_ids:
                      - 46ed7444-a055-462b-9c17-0a2cdd5ca393
                has_more: false
                next_cursor: null
        '400':
          description: Invalid input, date range, or cursor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Credential invalid or revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Missing scope, role, resource access or entitlement
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service temporarily unavailable. Retry with backoff.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - MotionApiKey: []
        - MotionOAuth:
            - motion:projects:read
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:
    MotionListProjectTurnsResponse:
      type: object
      properties:
        project_id:
          type: string
          format: uuid
        turns:
          type: array
          description: Project turns ordered newest first by created_at.
          items:
            type: object
            properties:
              turn_id:
                anyOf:
                  - type: string
                    format: uuid
                  - type: 'null'
                description: >-
                  Turn UUID matching messages.turn_id, generations.turn_id, and
                  exports.turn_id. Null for historical runs without a recorded
                  trigger message.
              status:
                type: string
                enum:
                  - queued
                  - running
                  - completed
                  - failed
                  - cancelled
                  - awaiting_user_input
                  - awaiting_credits
                description: Lifecycle status of this turn.
              error:
                type:
                  - string
                  - 'null'
                description: >-
                  Actionable failure reason when status is failed; null
                  otherwise.
              effort:
                anyOf:
                  - type: string
                    enum:
                      - standard
                      - extended
                  - type: 'null'
                description: Effort used for this turn; null when unavailable.
              created_at:
                type: string
                format: date-time
                description: Timestamp when this turn was started.
              completed_at:
                anyOf:
                  - type: string
                    format: date-time
                  - type: 'null'
                description: >-
                  Timestamp when this turn reached a terminal state; null while
                  active or paused.
              generation_id:
                anyOf:
                  - type: string
                    format: uuid
                  - type: 'null'
                description: >-
                  Saved generation UUID produced by this turn, or null if no
                  generation was saved.
              export_ids:
                type: array
                items:
                  type: string
                  format: uuid
                description: >-
                  Export receipt UUIDs linked to this turn (automatic and
                  manual).
            required:
              - turn_id
              - status
              - error
              - effort
              - created_at
              - completed_at
              - generation_id
              - export_ids
            additionalProperties: false
        has_more:
          type: boolean
          description: More turns are available.
        next_cursor:
          type:
            - string
            - 'null'
          description: Pass as cursor to read the next page of turns.
      required:
        - project_id
        - turns
        - has_more
        - next_cursor
      additionalProperties: false
    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
  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.
    MotionOAuth:
      type: oauth2
      description: >-
        OAuth REST tokens use the full MCP audience, https://mcp.motion.so/mcp.
        Reauthorize existing connections to add scopes. Current workspace roles
        and resource permissions still apply.
      flows:
        authorizationCode:
          authorizationUrl: https://mcp.motion.so/oauth/authorize
          tokenUrl: https://mcp.motion.so/oauth/token
          scopes:
            motion:automations:read: Read automation definitions, capabilities, runs, and analytics.
            motion:automations:write: Create, edit, delete, invoke, and retry automations.
            motion:connectors:read: >-
              Read available services, your private organization connections and
              allowed actions without secrets.
            motion:connectors:write: >-
              Connect and disconnect your private accounts inside the credential
              organization workspace.
            motion:templates:read: Read and preview accessible templates.
            motion:templates:write: Create, edit, share, and archive prompt templates.
            motion:sessions:read: Read permitted chats, job status and saved exports.
            motion:sessions:write: >-
              Create and steer Motion projects using organization workspace
              credits.
            motion:assets:read: Find and read permitted media library assets.
            motion:brand-kits:read: Read permitted brand kits.
            motion:brand-kits:write: Create and edit brand kits within current app permissions.
            motion:social:read: Read authorized social accounts and posts.
            motion:social:write: >-
              Draft, submit, approve and cancel posts within current app
              permissions.
            motion:assets:write: Create and complete reusable media library uploads.

````

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