API reference / Endpoints
Agents
The AI agents in the workspace.
GET/api/v1/agents
Every agent in the workspace.
Requestbash
curl https://app.prepaid.ai/api/v1/agents \
-H "Authorization: Bearer pk_live_your_key_here"Responsejson
{
"workspaceId": "3f6c1e70-9a4d-4a58-b6a2-2f0f0f9d1c11",
"agents": [
{ "id": "0f2c9f5a-2b31-4a7e-9c11-8a1f5d3e7b20", "name": "Front desk", "status": "live" },
{ "id": "6d4a1b88-77c3-4f0e-9a12-b3d5e9f10c44", "name": "After hours", "status": "draft" }
]
}| Field | Type | Description |
|---|---|---|
| id required | string | The agent’s identifier. |
| name required | string | Your internal label for it. Never spoken to callers. |
| status required | string | One of draft, live or paused. |