Agents
List, create, read, update and delete voice agents with the Callpme API v1.
List agentsLink to this section
GET/api/v1/agents
Filters: role (support, appointment, lead_qualification, outbound_sales, receptionist, survey, custom), status (active, paused, draft), search. Without limit or cursor, all agents are returned; with either one, the list is paginated (limit from 1 to 100, default 50).
curl "https://callpme.com/api/v1/agents?status=active" \
-H "Authorization: Bearer $CALLPME_API_KEY"Create an agentLink to this section
POST/api/v1/agents
| Field | Type | Description |
|---|---|---|
name (required) | string, 1 to 80 | Agent name |
role (required) | enum | One of the roles listed above |
status | active, paused, draft | draft by default |
phoneNumber | string or null | Linked number (admin key) |
firstMessage | string, ≤ 2,000 | Greeting message |
firstSpeaker | agent or caller | Who speaks first |
persona | string, ≤ 1,000 | Personality |
customRole | object | { label, description } for the custom role |
guardrails | array of strings | 30 at most, 500 characters each |
tools | array of strings | IDs of the enabled tools |
voice | object | { provider, voiceId, language, speed } (speed 0.5 to 2) |
model | object | { provider: openai | anthropic | mistral, modelId, temperature } |
curl -X POST "https://callpme.com/api/v1/agents" \
-H "Authorization: Bearer $CALLPME_API_KEY" \
-H "Idempotency-Key: agent-reception-2026-11" \
-H "Content-Type: application/json" \
-d '{
"name": "Practice reception",
"role": "receptionist",
"firstMessage": "Hello, Martin practice, how can I help you?"
}'Retrieve an agentLink to this section
GET/api/v1/agents/{id}
curl "https://callpme.com/api/v1/agents/cm4agent01" \
-H "Authorization: Bearer $CALLPME_API_KEY"Update an agentLink to this section
PATCH/api/v1/agents/{id}
Updatable fields: name, status (active, paused, draft) and phoneNumber (admin key only).
curl -X PATCH "https://callpme.com/api/v1/agents/cm4agent01" \
-H "Authorization: Bearer $CALLPME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "paused"
}'Delete an agentLink to this section
DELETE/api/v1/agents/{id}
curl -X DELETE "https://callpme.com/api/v1/agents/cm4agent01" \
-H "Authorization: Bearer $CALLPME_API_KEY"Related events: agent.created, agent.updated, agent.deleted.