Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Searches for AI agents based on various criteria including name, status, and configuration. Supports advanced filtering and full-text search capabilities.
GET https://services.leadconnectorhq.com/conversation-ai/agents/search

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Query parameters

startAfter
string
default:"Exampleee123"
Start after is the agent id to start after, Serving as skip, send empty when first page
limit
number
default:"1"
Records per page
query
string
default:"booking"
query to search on agent name, must be provided in lowercase

Respuestas

agents
object[]
required
List of agents matching the search criteria.
totalCount
number
default:"100"
required
Total number of agents in the account (unfiltered count).
count
number
default:"25"
required
Number of agents in the current response (filtered/paginated count).
{
  "agents": [
    {
      "id": "emp_123",
      "name": "John Doe",
      "businessName": "Tech Corp",
      "mode": "auto-pilot",
      "channels": [
        "SMS",
        "LIVE_CHAT"
      ],
      "waitTime": 30,
      "waitTimeUnit": "seconds",
      "sleepEnabled": false,
      "sleepTime": 2,
      "sleepTimeUnit": "hours",
      "actions": [
        {
          "id": "action_123",
          "type": "triggerWorkflow"
        }
      ],
      "isPrimary": false,
      "autoPilotMaxMessages": 25,
      "goal": {
        "prompt": "Assist customers",
        "type": "custom",
        "actionId": null
      },
      "knowledgeBaseIds": [
        "kb_123",
        "kb_456"
      ],
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z",
      "sleepOnManualMessage": false,
      "sleepOnWorkflowMessage": false
    }
  ],
  // truncado: 3 lineas mas
}
{}
{}
{}

Ejemplo

curl -X GET 'https://services.leadconnectorhq.com/conversation-ai/agents/search' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28'