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

# Retrieve an agent

> Retrieve a specific agent by ID or slug



## OpenAPI

````yaml get /api/v2/agents/{agentId}
openapi: 3.0.1
info:
  title: LiveChatAI API v2
  description: >-
    LiveChatAI API v2 - Build powerful AI-powered customer support experiences.
    This API follows REST principles with predictable, resource-oriented URLs,
    JSON responses, and standard HTTP methods.
  version: 2.0.0
servers:
  - url: https://app.livechatai.com
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v2/agents/{agentId}:
    get:
      tags:
        - Agents
      summary: Retrieve an agent
      description: Retrieve a specific agent by ID or slug
      parameters:
        - in: path
          name: agentId
          schema:
            type: string
            example: clx1234567890abcdef
          required: true
          description: Unique identifier or slug of the agent
        - in: query
          name: isEmbed
          schema:
            type: boolean
            example: false
          required: false
          description: Specifies whether this request is from an embed (enables caching).
      responses:
        '200':
          description: Successfully retrieved agent details
        '404':
          description: Agent not found
        '500':
          description: An internal server error occurred.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````