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

# List Migrations

> Retrieve a paginated list of migrations within your organization



## OpenAPI

````yaml v1/openapi.json get /api/v1/migrations
openapi: 3.1.0
info:
  title: EDM API
  version: 1.0.0
  description: >-
    This API is built from TypeScript source code and uses common types defined
    in your shared files. It exposes endpoints for migration workflows, file
    management, and migration modal creation.
servers:
  - url: https://worker.anon.com
security:
  - bearerAuth: []
paths:
  /api/v1/migrations:
    get:
      tags:
        - Migrations
      summary: List Migrations
      description: Retrieve a paginated list of migrations within your organization
      operationId: api.v1.migrations.list
      parameters:
        - name: page
          in: query
          required: false
          description: Page number for pagination (starts at 1)
          schema:
            type: number
            minimum: 1
            default: 1
        - name: page_size
          in: query
          required: false
          description: Number of migrations per page (max 100)
          schema:
            type: number
            minimum: 1
            maximum: 100
            default: 30
        - name: created_by_user_id
          in: query
          required: false
          description: Filter migrations by the Anon user who created them
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedMigrationsResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIErrorResponse'
components:
  schemas:
    PaginatedMigrationsResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/MigrationResponse'
        page:
          $ref: '#/components/schemas/PaginationMeta'
      required:
        - results
        - page
      additionalProperties: false
    APIErrorResponse:
      type: object
      properties:
        type:
          type: string
          enum:
            - api_error
        message:
          type: string
      required:
        - type
        - message
      additionalProperties: false
    MigrationResponse:
      type: object
      properties:
        object:
          type: string
          enum:
            - migration
        id:
          type: string
          format: uuid
          description: Unique identifier for the migration
        created:
          type: string
          format: date-time
          description: Timestamp when the migration was created
        status:
          type: string
          enum:
            - NOT_READY
            - NOT_STARTED
            - WORKING
            - PENDING_USER_INPUT
            - COMPLETE
            - FAILED
            - LOGIN_ABANDONED
            - COMPLETED_WITH_FAILURES
          description: Current status of the migration
        created_by_user_id:
          type: string
          description: Unique identifier for the user who created the migration
        company_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Unique identifier for the company
      required:
        - object
        - id
        - created
        - status
        - created_by_user_id
        - company_id
      additionalProperties: false
    PaginationMeta:
      type: object
      properties:
        size:
          type: number
        total:
          type: number
      required:
        - size
        - total
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer token authentication

````