> ## 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.

# Create an agent

> Create a new AI agent in your workspace



## OpenAPI

````yaml post /api/v2/agents
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:
    post:
      tags:
        - Agents
      summary: Create an agent
      description: Create a new AI agent in your workspace
      requestBody:
        description: Agent creation details
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - isLiveChatEnabled
              properties:
                name:
                  type: string
                  example: Customer Support Agent
                  description: Name of the agent to be created
                isLiveChatEnabled:
                  type: boolean
                  example: true
                  description: Flag to enable or disable live chat for the agent
                isImageSharingEnabled:
                  type: boolean
                  example: true
                  description: Flag to enable or disable image sharing
      responses:
        '200':
          description: Agent created successfully
        '400':
          description: Bad request - You have reached your agent limit
        '401':
          description: Unauthorized access
        '500':
          description: An internal server error occurred.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````