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

# List accessible projects

> Returns a flat paginated list of projects visible to the authenticated API-key actor.



## OpenAPI

````yaml /openapi/davinci-public.v2.yaml get /api/v2/programmatic/projects
openapi: 3.1.0
info:
  title: Davinci Public API
  version: 2.0.0
  description: >-
    Public Routing Server API contract for Davinci integrations and official
    SDKs.
servers:
  - url: https://davinci-app.com
    description: Production
security:
  - ApiKeyBearer: []
tags:
  - name: Meta
    description: API metadata and health checks.
  - name: Projects
    description: Read project metadata, trees, objects, and attached files.
paths:
  /api/v2/programmatic/projects:
    get:
      tags:
        - Projects
      summary: List accessible projects
      description: >-
        Returns a flat paginated list of projects visible to the authenticated
        API-key actor.
      operationId: listProjects
      parameters:
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/Limit'
      responses:
        '200':
          description: Project page.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListProjectsEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/InvalidApiKey'
        '403':
          $ref: '#/components/responses/InsufficientScopes'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          description: >-
            Service or project acquisition unavailable. Common error codes
            include `SERVICE_UNAVAILABLE`, `PROJECT_NOT_READY`, and
            `SERVER_NOT_AVAILABLE`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      security:
        - ApiKeyBearer: []
      x-codeSamples:
        - lang: typescript
          label: TypeScript SDK
          source: |
            import { DavinciClient } from '@celedon/davinci-sdk';

            const client = new DavinciClient({
              apiKey: process.env.DAVINCI_API_KEY!,
            });

            const { projects } = await client.projects.list({ limit: 10 });
            for (const project of projects) {
              console.log(project.id, project.name);
            }
        - lang: python
          label: Python SDK
          source: |
            import os
            from davinci_sdk import DavinciClient

            with DavinciClient(api_key=os.environ["DAVINCI_API_KEY"]) as client:
                result = client.projects.list(limit=10)
                for project in result.projects:
                    print(project.id, project.name)
components:
  parameters:
    Page:
      name: page
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        default: 1
    Limit:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
  schemas:
    ListProjectsEnvelope:
      allOf:
        - $ref: '#/components/schemas/SuccessEnvelope'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/ListProjectsResponse'
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
              additionalProperties: true
          additionalProperties: true
      additionalProperties: true
    SuccessEnvelope:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
        data: {}
      additionalProperties: true
    ListProjectsResponse:
      type: object
      required:
        - projects
        - count
        - page
        - limit
        - totalPages
      properties:
        projects:
          type: array
          items:
            $ref: '#/components/schemas/ProjectSummary'
        count:
          type: integer
          minimum: 0
        page:
          type: integer
          minimum: 1
        limit:
          type: integer
          minimum: 1
        totalPages:
          type: integer
          minimum: 0
      additionalProperties: true
    ProjectSummary:
      type: object
      properties:
        id:
          type: string
        projectId:
          type: string
        name:
          type: string
        ownerLicenseKey:
          type: string
        ownerUserId:
          type: string
        ownerOrgId:
          type:
            - string
            - 'null'
        visibility:
          type:
            - string
            - 'null'
        createdAt:
          type: string
        modifiedAt:
          type: string
      additionalProperties: true
  responses:
    BadRequest:
      description: Malformed request parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InvalidApiKey:
      description: Missing, invalid, expired, or inactive API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InsufficientScopes:
      description: API key lacks a required scope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: API key request rate exceeded.
      headers:
        Retry-After:
          schema:
            type: integer
            minimum: 1
          description: Seconds to wait before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: dav_ak_live_... or dav_ak_test_...
      x-default: dav_ak_live_your_token
      description: >-
        Personal access token. Programmatic reads require the projects:read
        scope.

````