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

# List Projects

> List projects for the authenticated user with basic information only. Use GET /v1/projects/{projectId} to get full project details.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/projects
openapi: 3.1.0
info:
  title: Migma.ai API (v1)
  description: >-
    API for managing brands, contacts, email generation, sending, and
    integrations.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.migma.ai
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Projects/Brands
    description: Manage projects (brands) and import from websites
  - name: Contacts
    description: Manage your contacts, segments, tags, and topics
  - name: Segments
    description: Create and manage dynamic contact segments
  - name: Tags
    description: Organize contacts with tags
  - name: Topics
    description: Manage subscription topics and preferences
  - name: Emails
    description: Generate, send, and export emails
  - name: Email Validation
    description: Validate email content for compatibility and deliverability
  - name: Email Previews
    description: Preview emails across devices and email clients
  - name: Domains
    description: Manage sending domains and verification
  - name: Webhooks
    description: Manage webhook endpoints for real-time event notifications
  - name: Events
    description: Record customer events and conversions
  - name: Integrations
    description: Third-party platform integrations
  - name: Campaigns
    description: Create, schedule, send, and manage email campaigns
  - name: Project Editing
    description: Edit project assets, logos, images, and knowledge base entries
paths:
  /v1/projects:
    get:
      tags:
        - Projects/Brands
      summary: List Projects
      description: >-
        List projects for the authenticated user with basic information only.
        Use GET /v1/projects/{projectId} to get full project details.
      operationId: ListProjects
      parameters:
        - name: limit
          in: query
          description: The maximum number of results to return (max 100)
          required: false
          schema:
            type: integer
            format: int32
            default: 20
        - name: offset
          in: query
          description: >-
            The number of items to skip before starting to collect the result
            set
          required: false
          schema:
            type: integer
            format: int32
            default: 0
        - name: status
          in: query
          description: Filter by project status (pending|processing|active|error)
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Projects list response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseProjectsList'
        '401':
          $ref: '#/components/responses/Unauthorized'
      x-codeSamples:
        - lang: javascript
          label: Node.js SDK
          source: |-
            import Migma from 'migma';

            const migma = new Migma('YOUR_API_KEY');

            const { data, error } = await migma.projects.list();
components:
  schemas:
    ApiResponseProjectsList:
      allOf:
        - $ref: '#/components/schemas/ApiResponse'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/ProjectsListData'
    ApiResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          nullable: true
        error:
          type: string
          nullable: true
      required:
        - success
    ProjectsListData:
      type: object
      properties:
        projects:
          type: array
          items:
            $ref: '#/components/schemas/ProjectBasic'
        pagination:
          $ref: '#/components/schemas/Pagination'
      required:
        - projects
        - pagination
    ApiError:
      type: object
      properties:
        success:
          type: boolean
          default: false
        error:
          type: string
        code:
          type: string
          description: >-
            Machine-readable error code (e.g., IDEMPOTENCY_CONFLICT,
            DOMAIN_CLAIMABLE).
        data:
          type: object
          description: >-
            Additional structured context for the error, such as the affected
            domain.
          additionalProperties: true
      required:
        - success
        - error
    ProjectBasic:
      type: object
      properties:
        _id:
          type: string
          pattern: ^[0-9a-fA-F]{24}$
        name:
          type: string
        description:
          type: string
        status:
          type: string
          enum:
            - pending
            - processing
            - active
            - error
        domain:
          type: string
        logoUrls:
          $ref: '#/components/schemas/LogoUrls'
        screenshotUrl:
          type: string
          format: uri
        email_create_suggestions:
          type: array
          items:
            type: string
          description: >-
            AI-generated suggestions for email content creation based on the
            project context
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - _id
        - name
        - description
        - status
        - createdAt
        - updatedAt
    Pagination:
      type: object
      properties:
        total:
          type: integer
          format: int32
        limit:
          type: integer
          format: int32
        offset:
          type: integer
          format: int32
        hasMore:
          type: boolean
      required:
        - total
        - limit
        - offset
        - hasMore
    LogoUrls:
      type: object
      properties:
        primary:
          type: string
          format: uri
        secondary:
          type: string
          format: uri
        favicon:
          type: string
          format: uri
      additionalProperties: false
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where
        YOUR_API_KEY is obtained from the Migma dashboard under Settings →
        Developers → API Keys.

````