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

# Get Agent



## OpenAPI

````yaml /api-v2.json get /agents/{agent_id}
openapi: 3.1.0
info:
  title: Meibel AI API
  summary: Meibel Gateway Service
  description: >-
    Our API allows you to interact with our services. Read the
    [docs](https://docs.meibel.ai) to learn how to use it.
  version: 0.6.4
servers:
  - url: https://api.meibel.ai/v2
    description: Meibel API (v2)
  - url: https://api.dev.meibel.ai/v2
    description: Meibel Dev API (v2)
  - url: http://localhost:8000/v2
    description: Local Development
security: []
tags:
  - name: Datasources
    description: v2 datasource management
  - name: Data Elements
    description: v2 data element CRUD and search
  - name: File Upload
    description: Upload files to a datasource and track upload progress
  - name: Ingest
    description: Trigger and monitor datasource ingestion
  - name: Datasource Downloads
    description: Export all datasource content as a zip archive
  - name: Table Descriptions
    description: v2 table and column descriptions
  - name: Metadata Model Catalog
    description: v2 metadata model catalog
  - name: Confidence Scoring
    description: v2 confidence scoring jobs and summaries
  - name: Documents
    description: Parse and transform documents into structured data
  - name: Agents
    description: Agent definition management
  - name: Sessions
    description: Agent session (execution) management and chat
  - name: Artifact Schemas
    description: Agent artifact schema management
paths:
  /agents/{agent_id}:
    get:
      tags:
        - Agents
      summary: Get Agent
      operationId: getAgent
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
      x-codeSamples:
        - lang: Python
          label: Python
          source: |-
            from meibel import MeibelClient

            client = MeibelClient(api_key="your-api-key")

            result = client.agents.get("agent_id_value")
            print(result)
        - lang: TypeScript
          label: TypeScript
          source: |-
            import { MeibelClient } from 'meibel';

            const client = new MeibelClient({ apiKey: 'your-api-key' });

            const result = await client.agents.get('agent_id_value');
            console.log(result);
        - lang: Go
          label: Go
          source: |-
            import v2 "github.com/meibel-ai/meibel-go/v2"

            client := v2.NewClient(v2.WithAPIKey("your-api-key"))
            ctx := context.Background()

            result, err := client.Agents.Get(ctx, "agent_id_value")
            if err != nil {
                log.Fatal(err)
            }
            fmt.Println(result)
components:
  schemas:
    AgentDetailResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        display_name:
          type: string
          title: Display Name
        catalog_urn:
          type: string
          title: Catalog Urn
        version:
          type: string
          title: Version
        parent_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Version
        type:
          type: string
          title: Type
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        llm_model:
          type: string
          title: Llm Model
        fallback_models:
          items:
            type: string
          type: array
          title: Fallback Models
        datasources:
          items:
            type: string
          type: array
          title: Datasources
        instructions:
          type: string
          title: Instructions
        tools:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Tools
        artifacts:
          items:
            type: string
          type: array
          title: Artifacts
        confidence_configs:
          items:
            type: string
          type: array
          title: Confidence Configs
        temperature:
          anyOf:
            - type: number
            - type: integer
          title: Temperature
        max_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Tokens
        tags:
          items:
            type: string
          type: array
          title: Tags
        icon:
          anyOf:
            - type: string
            - type: 'null'
          title: Icon
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        last_execution_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Execution Status
        last_execution_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Execution Time
      type: object
      required:
        - id
        - name
        - display_name
        - catalog_urn
        - version
        - type
        - llm_model
        - fallback_models
        - datasources
        - instructions
        - tools
        - artifacts
        - confidence_configs
        - temperature
        - tags
      title: AgentDetailResponse
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Meibel-API-Key

````