Appearance
AI agents
Endpoints of the public API tagged AI agents, generated from the API's OpenAPI document. Base URL: your API origin, for example https://api.example.com. See API overview and API keys and scopes.
The sub-account's published AI agents (ids to run)
text
GET /api/v1/rest/agents- Operation id:
listAgents - Scope:
agents:run
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
name | string | yes | |
description | string | yes | |
channels | array | yes | |
published | boolean | yes |
Run a published AI agent on a contact with a goal: it may use its tools and message the contact (its mode, consent and quiet hours apply) and returns its outcome
text
POST /api/v1/rest/agents/{agentId}/runs- Operation id:
runAgent - Scope:
agents:run
Parameters
| Name | In | Required | Type |
|---|---|---|---|
agentId | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
contactId | string | yes | |
goal | string | yes | |
channel | string (sms, email) | no |
Response (201): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
agentId | string | yes | |
contactId | string | yes | |
sessionId | string | yes | |
status | string (done, person_handling, skipped, escalated) | yes | |
outcome | string | yes | |
summary | string | yes | |
data | object | yes | |
messaged | boolean | yes | |
reason | string | yes |