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

# Get project schema

> Retrieves the schema configuration for a specific project. Can return either the latest version, a specific version, or all versions.



## OpenAPI

````yaml get /project/{id}/schema
openapi: 3.0.0
info:
  title: Basic Admin API
  description: API for Basic Admin
  version: 0.1.0
servers:
  - url: https://api.basic.tech
    description: Production server
  - url: https://beta.api.basic.tech
    description: Staging server
  - url: http://localhost:3003
    description: Development server
security: []
tags:
  - name: auth
    description: Authentication and authorization end-points
  - name: projects
    description: Project management end-points
  - name: project-keys
    description: Project API key management end-points
  - name: project-users
    description: Project user management end-points
  - name: project-schema
    description: Project schema management end-points
  - name: project-upload
    description: Project image upload end-points
  - name: teams
    description: Project user management end-points
  - name: utils
    description: Utility end-points - very useful, trust me
externalDocs:
  url: https://docs.basic.tech
  description: Find more info here
paths:
  /project/{id}/schema:
    get:
      tags:
        - project-schema
      summary: Get project schema
      description: >-
        Retrieves the schema configuration for a specific project. Can return
        either the latest version, a specific version, or all versions.
      parameters:
        - schema:
            type: string
          in: query
          name: version
          required: false
          description: >-
            Schema version to retrieve. Use "all" for all versions, a number for
            a specific version, or omit for latest version.
        - schema:
            type: boolean
            default: false
          in: query
          name: debug
          required: false
          description: Enable debug mode for additional information
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: Unique identifier of the project
      responses:
        '200':
          description: Project schema retrieved successfully
          content:
            application/json:
              schema:
                description: Project schema retrieved successfully
                type: object
                properties:
                  data:
                    oneOf:
                      - type: object
                        description: Single schema version
                        properties:
                          id:
                            type: string
                          project_id:
                            type: string
                          schema:
                            type: object
                            properties: {}
                            additionalProperties: true
                          updated_at:
                            type: string
                            format: date-time
                      - type: array
                        description: All schema versions
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            project_id:
                              type: string
                            schema:
                              type: object
                              properties: {}
                              additionalProperties: true
                            updated_at:
                              type: string
                              format: date-time
                  count:
                    type: number
                    description: >-
                      Total number of schema versions when requesting all
                      versions
        '400':
          description: Bad Request - Invalid version parameter
          content:
            application/json:
              schema:
                description: Bad Request - Invalid version parameter
                type: object
                properties:
                  error:
                    type: string
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                description: Internal server error
                type: object
                properties:
                  error:
                    type: string

````