1. List All Agents

Retrieves a list of all agents with their basic information.

Endpoint: /agent

Method: GET

Response:


2. Create a New Agent

Creates a new AI agent with the specified configuration.

Endpoint: /agent

Method: POST

Request Body:

{
    "name": "John Doe",                        // Required
    "description": "Experienced agent",        // Optional
    "introduction": "Hello, I'm John",         // Optional
    "instructions": "Follow up with leads",    // Optional
    "email_address": "[email protected]",    // Optional
    "phone_number": "+1234567890",             // Optional
    "wa_business_id": "123456",                // Optional
    "wa_phone_id": "789012",                   // Optional
    "wa_access_token": "token123",             // Optional
    "kommo_subdomain": "company",              // Optional
    "kommo_access_token": "token456",          // Optional
    "google_sheet_url": "<https://docs.google.com/spreadsheets/d/123>",  // Optional
    "status": "active"                         // Optional
}

Response: