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

# Get agent

> Retrieve agent details including input schema, available actions, and strategies.



## OpenAPI

````yaml api-reference/openapi.json get /agents/{id}
openapi: 3.1.0
info:
  title: Ziet API
  description: >-
    Ziet is a serverless platform for AI agents and applications. Build
    intelligent agents with @Agent and @Action decorators, or serverless APIs
    with @Endpoint and Database. Deploy with a single command—no infrastructure
    to manage.
  license:
    name: MIT
  version: 0.1.0
servers:
  - url: https://api.ziet.ai/v1
    description: Production
security:
  - apiKey: []
tags:
  - name: Deployment
    description: Deploy code
  - name: Actions
    description: Discover actions
  - name: Agents
    description: Discover and configure agents
  - name: Endpoints
    description: Discover and invoke endpoints
  - name: Runs
    description: Execute agents
  - name: Memory
    description: Manage run memory
paths:
  /agents/{id}:
    get:
      tags:
        - Agents
      summary: Get agent
      description: >-
        Retrieve agent details including input schema, available actions, and
        strategies.
      operationId: getAgent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Agent details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Agent'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Agent:
      type: object
      required:
        - id
        - name
        - description
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        instructions:
          type: string
        model:
          type: string
        max_tokens:
          type: integer
        input:
          type: object
          description: JSON Schema for input parameters
        actions:
          type: array
          items:
            type: string
        strategies:
          type: array
          items:
            $ref: '#/components/schemas/Strategy'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Strategy:
      type: object
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - wait
            - handoff
            - critique
            - manual_approval
        config:
          type: object
          oneOf:
            - $ref: '#/components/schemas/WaitStrategyConfig'
            - $ref: '#/components/schemas/HandoffStrategyConfig'
            - $ref: '#/components/schemas/CritiqueStrategyConfig'
            - $ref: '#/components/schemas/ManualApprovalStrategyConfig'
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
    WaitStrategyConfig:
      type: object
      properties:
        memory:
          type: array
          items:
            type: string
        actions:
          type: array
          items:
            type: string
        sleep:
          type: integer
          default: 10
    HandoffStrategyConfig:
      type: object
      properties:
        agents:
          type: array
          items:
            type: string
    CritiqueStrategyConfig:
      type: object
      properties:
        critique:
          type: string
        loops:
          type: integer
          default: 2
    ManualApprovalStrategyConfig:
      type: object
      properties:
        approver:
          type: string
  responses:
    Unauthorized:
      description: Invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: 'Format: ''Api-Key sk_live_YOUR_KEY'''

````