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

> List project messages incrementally using after_sequence.



## OpenAPI

````yaml /openapi.json get /projects/{id}/messages
openapi: 3.1.0
info:
  title: Motion
  version: '2026-11-19'
  description: >-
    Create and edit Motion video projects from prompts, export MP4s and editor
    packages (Premiere, After Effects, Resolve, Final Cut), and manage
    templates, brand kits, library uploads, connectors, automations, and social
    posts.
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
paths:
  /projects/{id}/messages:
    get:
      tags:
        - Projects
      summary: List project messages
      description: List project messages incrementally using after_sequence.
      operationId: ListProjectMessages
      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: 50
          description: Maximum number of messages to return (1–100).
        - name: after_sequence
          in: query
          schema:
            type: integer
            minimum: 0
          description: Return messages with sequence_num greater than this value.
        - name: turn_id
          in: query
          schema:
            type: string
            format: uuid
          description: >-
            Filter messages to a single turn_id returned by POST /projects or
            POST /projects/{id}/messages.
        - name: include_explanations
          in: query
          schema:
            type: boolean
            default: false
          description: Include step-by-step progress summaries on assistant messages.
        - $ref: '#/components/parameters/MotionApiVersion'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MotionListProjectMessagesResponse'
              example:
                project_id: 4f20dcdd-f63b-4898-97d6-2e05c0d37c78
                messages:
                  - id: e8c3af4c-4f37-46b7-8b0d-53b09a67d6cb
                    role: user
                    content: Create a 15-second launch video.
                    sequence_num: 1
                    created_at: '2026-11-17T20:00:00Z'
                    turn_id: e8c3af4c-4f37-46b7-8b0d-53b09a67d6cb
                    effort: standard
                    template_ids: []
                    brand_kit_ids: []
                has_more: false
                next_after_sequence: null
        '400':
          description: Invalid input 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-11-19'
        default: '2026-11-19'
  schemas:
    MotionListProjectMessagesResponse:
      type: object
      properties:
        project_id:
          type: string
          format: uuid
        messages:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: >-
                  Message UUID returned for an accepted prompt or saved
                  assistant response.
              role:
                type: string
                enum:
                  - user
                  - assistant
                description: 'Who sent this message: user or assistant.'
              content:
                type: string
                description: Message text.
              sequence_num:
                type: integer
                minimum: 0
                maximum: 9007199254740991
              created_at:
                type: string
                format: date-time
              turn_id:
                anyOf:
                  - type: string
                    format: uuid
                  - type: 'null'
              effort:
                anyOf:
                  - type: string
                    enum:
                      - standard
                      - extended
                  - type: 'null'
                description: Effort used for this turn; null when unavailable.
              template_ids:
                description: Templates attached to this user message.
                type: array
                items:
                  type: string
              brand_kit_ids:
                description: Effective brand kits for this user message.
                type: array
                items:
                  type: string
                  format: uuid
              explanations:
                type: array
                items:
                  type: string
              explanations_omitted:
                type: boolean
            required:
              - id
              - role
              - content
              - sequence_num
              - created_at
              - turn_id
              - effort
            additionalProperties: false
        has_more:
          type: boolean
        next_after_sequence:
          anyOf:
            - type: integer
              minimum: 0
              maximum: 9007199254740991
            - type: 'null'
      required:
        - project_id
        - messages
        - has_more
        - next_after_sequence
      additionalProperties: false
    ErrorResponse:
      type: object
      description: Standard JSON error response.
      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 2.1 bearer token issued by Motion (https://mcp.motion.so/mcp).
      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, connected accounts, and allowed actions.
            motion:connectors:write: Connect and disconnect workspace services.
            motion:templates:read: Read and preview accessible templates.
            motion:templates:write: Create, edit, share, and archive prompt templates.
            motion:assets:read: Find and read permitted media library assets.
            motion:brand-kits:read: Read permitted brand kits.
            motion:brand-kits:write: Create, update, and delete brand kits.
            motion:social:read: Read authorized social accounts and posts.
            motion:social:write: Draft, submit, approve, and cancel social posts.
            motion:projects:read: Read projects, generations and exports.
            motion:projects:write: >-
              Create and edit projects, send messages and request exports. Uses
              workspace credits.
            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.