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

# Get a project object

> Returns a full object payload. Object shape is type-specific; common fields are documented and extra fields are allowed.



## OpenAPI

````yaml /openapi/davinci-public.v2.yaml get /api/v2/programmatic/projects/{projectId}/objects/{objectId}
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/{projectId}/objects/{objectId}:
    get:
      tags:
        - Projects
      summary: Get a project object
      description: >-
        Returns a full object payload. Object shape is type-specific; common
        fields are documented and extra fields are allowed.
      operationId: getProjectObject
      parameters:
        - $ref: '#/components/parameters/ProjectId'
        - $ref: '#/components/parameters/ObjectId'
        - $ref: '#/components/parameters/Branch'
      responses:
        '200':
          description: Project object.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectObjectEnvelope'
        '401':
          $ref: '#/components/responses/InvalidApiKey'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/ObjectNotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          description: >-
            Project acquisition unavailable. Common error codes include
            `PROJECT_NOT_READY`, `SERVICE_UNAVAILABLE`, and
            `SERVER_NOT_AVAILABLE`.
          headers:
            Retry-After:
              schema:
                type: integer
                minimum: 1
          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 object = await client.projects.getObject('project-id',
            'object-id', {
              branch: 'main',
            });

            console.log(object.name, object.type);
        - lang: python
          label: Python SDK
          source: |
            import os
            from davinci_sdk import DavinciClient

            with DavinciClient(api_key=os.environ["DAVINCI_API_KEY"]) as client:
                obj = client.projects.get_object("project-id", "object-id", branch="main")
                print(obj.name, obj.type)
components:
  parameters:
    ProjectId:
      name: projectId
      in: path
      required: true
      schema:
        type: string
        minLength: 1
      description: Project id. May be compound in the form `{projectId}--{branchName}`.
    ObjectId:
      name: objectId
      in: path
      required: true
      schema:
        type: string
        minLength: 1
    Branch:
      name: branch
      in: query
      required: false
      schema:
        type: string
        default: main
  schemas:
    ProjectObjectEnvelope:
      allOf:
        - $ref: '#/components/schemas/SuccessEnvelope'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/ProjectObject'
    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
    ProjectObject:
      type: object
      required:
        - id
        - type
      properties:
        id:
          type: string
        type:
          type: string
        name:
          type: string
        parent:
          type: string
        children:
          type: array
          items:
            type: string
        documentation:
          type: string
      additionalProperties: true
  responses:
    InvalidApiKey:
      description: Missing, invalid, expired, or inactive API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    Forbidden:
      description: Caller is authenticated but not authorized.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ObjectNotFound:
      description: Object does not exist in the project.
      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.

````