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

# Get an agent

> Returns a single agent.

The agent has the fields described in [Agent fields](https://docs.olimi.ai/api-reference/endpoint/agent/agents.md#agent-fields).


## OpenAPI

````yaml get /api/v2/agents/{id}
openapi: 3.0.1
info:
  title: Customer Management API
  description: API for managing customer lists and customers within those lists
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api-eg.olimi.ai
security:
  - bearerAuth: []
paths:
  /api/v2/agents/{id}:
    get:
      tags:
        - Agents
      summary: Get an agent
      description: Returns a single agent.
      parameters:
        - name: id
          in: path
          required: true
          description: The agent's `id`.
          schema:
            type: string
            format: uuid
          example: 0d6a3f7e-5b8c-4b1e-9a51-2f1d7c9e4a10
      responses:
        '200':
          description: The agent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentResponse'
        '400':
          description: The `id` isn't a valid UUID.
        '401':
          description: The `X-API-KEY` header is missing or the key isn't valid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: >-
            `agent_not_found`: no agent with that `id` belongs to your company,
            or it was deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - apiKeyAuth: []
components:
  schemas:
    AgentResponse:
      type: object
      properties:
        message:
          type: string
          example: Agent fetched successfully
        data:
          $ref: '#/components/schemas/Agent'
    ApiError:
      type: object
      properties:
        statusCode:
          type: integer
          example: 404
        errorCode:
          type: string
          description: Machine-readable error code.
          example: agent_not_found
        message:
          type: string
          description: Human-readable text. May change; don't match on it.
          example: Agent not found
    Agent:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The agent's ID.
          example: 0d6a3f7e-5b8c-4b1e-9a51-2f1d7c9e4a10
        organizationId:
          type: string
          format: uuid
          description: Your company's ID.
          example: 5f2c8a91-7d3e-4b60-8c1a-9e4f2b7d6a35
        name:
          type: string
          description: The agent's display name.
          example: Admissions Assistant
        description:
          type: string
          nullable: true
          description: A short description of what the agent does.
          example: Answers questions about enrollment and fees.
        callType:
          type: string
          enum:
            - inbound
            - outbound
            - web
          description: >-
            How the agent talks to people. See [Call
            types](/api-reference/endpoint/agent/agents#call-types).
          example: inbound
        isActive:
          type: boolean
          description: Whether the agent is switched on.
          example: true
        languageId:
          type: string
          format: uuid
          nullable: true
          description: The language the agent speaks.
          example: a3b9e2d4-6c1f-4e8a-9d72-1b5c8f3e0a46
        voiceId:
          type: string
          format: uuid
          nullable: true
          description: The voice the agent speaks with.
          example: e7d1c5b2-4a8f-4396-b0e2-7c9a1d3f5b68
        voice:
          $ref: '#/components/schemas/AgentVoice'
        createdAt:
          type: string
          format: date-time
          description: When the agent was created (UTC).
          example: '2026-08-12T09:31:04.112Z'
        updatedAt:
          type: string
          format: date-time
          description: When the agent was last changed (UTC).
          example: '2026-09-20T14:02:51.870Z'
    AgentVoice:
      type: object
      nullable: true
      description: The voice the agent speaks with.
      properties:
        id:
          type: string
          format: uuid
          description: The voice's ID. Same as the agent's `voiceId`.
          example: e7d1c5b2-4a8f-4396-b0e2-7c9a1d3f5b68
        name:
          type: string
          description: The voice's display name.
          example: Salma
        gender:
          type: string
          nullable: true
          description: The voice's gender.
          example: female
        language:
          $ref: '#/components/schemas/AgentVoiceLanguage'
    AgentVoiceLanguage:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The language's ID.
          example: a3b9e2d4-6c1f-4e8a-9d72-1b5c8f3e0a46
        name:
          type: string
          description: The language's display name.
          example: Arabic - Egyptian
        code:
          type: string
          description: The language code.
          example: ar-EG
      nullable: true
      description: The voice's language. `null` for voices not tied to one language.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.