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

# Create agent

> Create a new voice AI agent with voice configuration, system prompt, and tools.



## OpenAPI

````yaml POST /agents
openapi: 3.0.3
info:
  title: Arbol API
  description: >-
    The Arbol API enables you to programmatically manage voice AI agents,
    contacts, conversations, campaigns, and more. Build powerful voice AI
    integrations with a developer-first REST API.
  version: 1.0.0
  contact:
    name: Arbol Support
    url: https://getarbol.com/support
  license:
    name: Proprietary
servers:
  - url: https://api.getarbol.com/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Agents
    description: Manage voice AI agents
  - name: Contacts
    description: Manage contacts and their details
  - name: Conversations
    description: Manage voice conversations and calls
  - name: Campaigns
    description: Manage batch outbound call campaigns
  - name: Phone Numbers
    description: Manage provisioned phone numbers
  - name: Properties
    description: Manage custom property definitions
  - name: Tools
    description: Manage agent tools and integrations
  - name: Documents
    description: Manage knowledge base documents
  - name: Organization
    description: Manage organization settings
paths:
  /agents:
    post:
      tags:
        - Agents
      summary: Create agent
      description: >-
        Create a new voice AI agent with voice configuration, system prompt, and
        tools.
      operationId: createAgent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAgentInput'
      responses:
        '200':
          description: Created agent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Agent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    CreateAgentInput:
      type: object
      required:
        - name
        - primaryLanguage
        - systemPrompt
        - greeting
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        primaryLanguage:
          type: string
        supportedLanguages:
          type: array
          items:
            type: string
        systemPrompt:
          type: string
          minLength: 1
          maxLength: 10000
        greeting:
          type: string
          minLength: 1
          maxLength: 1000
        model:
          type: string
        maxCallDurationSeconds:
          type: integer
          minimum: 60
          maximum: 3600
          default: 300
        status:
          $ref: '#/components/schemas/AgentStatus'
        voiceConfigs:
          type: array
          items:
            type: object
        toolAssignments:
          type: array
          items:
            type: object
        metadata:
          type: object
    Agent:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        primaryLanguage:
          type: string
        status:
          $ref: '#/components/schemas/AgentStatus'
        systemPrompt:
          type: string
        greeting:
          type: string
        model:
          type: string
        metadata:
          type: object
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    AgentStatus:
      type: string
      enum:
        - ACTIVE
        - PAUSED
        - INACTIVE
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
        requestId:
          type: string
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Authentication required
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Use your API key from the Arbol dashboard. Go to Settings > API Keys to
        generate one.

````