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

# Get project details



## OpenAPI

````yaml https://api.specular.dev/openapi.json get /projects/{id}
openapi: 3.0.0
info:
  title: Specular API
  description: Backend-as-a-Service API for managing projects and branches
  version: 1.0.0
servers:
  - url: https://api.specular.dev
    description: Production server
  - url: http://localhost:3000
    description: Development server
security:
  - bearerAuth: []
paths:
  /projects/{id}:
    get:
      tags:
        - Projects
      summary: Get project details
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
          description: Project ID
      responses:
        '200':
          description: Project details
          content:
            application/json:
              schema:
                description: Project details
                type: object
                properties:
                  project:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      state:
                        type: string
                        enum:
                          - creating
                          - active
                          - deleting
                          - deleted
                          - failed
                          - archived
                        description: >-
                          Project state: creating (initial creation), active
                          (ready to use), deleting (being deleted), deleted
                          (soft deleted), failed (creation failed), archived
                          (due to inactivity)
                      productionUrl:
                        type: string
                        nullable: true
                        description: Production API URL (available after first merge)
                      openApiSpec:
                        type: string
                        nullable: true
                        description: >-
                          OpenAPI spec in YAML format (available after first
                          merge)
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      git:
                        type: object
                        nullable: true
                        properties:
                          remoteUrl:
                            type: string
                          username:
                            type: string
                            nullable: true
                          mainBranch:
                            type: string
                          path:
                            type: string
                            nullable: true
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                description: Authentication required
                type: object
                properties:
                  error:
                    type: string
        '404':
          description: Project not found
          content:
            application/json:
              schema:
                description: Project not found
                type: object
                properties:
                  error:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Bearer authentication with API key (format: Bearer sk_xxx)'

````