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

# Get Assistant Schemas

> Get the JSON schemas for an assistant's graph.

Returns the input, output, state, and config schemas derived from the
underlying graph's type annotations.



## OpenAPI

````yaml /openapi.json get /assistants/{assistant_id}/schemas
openapi: 3.1.0
info:
  title: Aegra
  description: Production-ready Agent Protocol server
  version: 0.9.24
servers: []
security: []
tags:
  - name: Assistants
    description: A configured instance of a graph.
  - name: Threads
    description: Accumulated state and outputs from a group of runs.
  - name: Thread Runs
    description: Invoke a graph on a thread, updating its persistent state.
  - name: Stateless Runs
    description: Invoke a graph without state or memory persistence.
  - name: Crons
    description: Scheduled recurring runs on a cron schedule.
  - name: Store
    description: Persistent key-value and semantic storage available from any thread.
  - name: Event Streaming
    description: Agent Protocol v2 thread event streaming and commands.
  - name: Health
    description: Server health checks and service information.
paths:
  /assistants/{assistant_id}/schemas:
    get:
      tags:
        - Assistants
      summary: Get Assistant Schemas
      description: |-
        Get the JSON schemas for an assistant's graph.

        Returns the input, output, state, and config schemas derived from the
        underlying graph's type annotations.
      operationId: get_assistant_schemas_assistants__assistant_id__schemas_get
      parameters:
        - name: assistant_id
          in: path
          required: true
          schema:
            type: string
            title: Assistant Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSchemas'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentProtocolError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentSchemas:
      properties:
        input_schema:
          additionalProperties: true
          type: object
          title: Input Schema
          description: JSON Schema for agent inputs
        output_schema:
          additionalProperties: true
          type: object
          title: Output Schema
          description: JSON Schema for agent outputs
        state_schema:
          additionalProperties: true
          type: object
          title: State Schema
          description: JSON Schema for agent state
        config_schema:
          additionalProperties: true
          type: object
          title: Config Schema
          description: JSON Schema for agent config
      type: object
      required:
        - input_schema
        - output_schema
        - state_schema
        - config_schema
      title: AgentSchemas
      description: Agent schema definitions for client integration
    AgentProtocolError:
      properties:
        error:
          type: string
          title: Error
          description: Error type
        message:
          type: string
          title: Message
          description: Human-readable error message
        details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Details
          description: Additional error details
      type: object
      required:
        - error
        - message
      title: AgentProtocolError
      description: Standard Agent Protocol error response
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````