Calls
List and read calls, get the transcript and recording, and place an outbound call with the Callpme API.
On this page
List callsLink to this section
GET/api/v1/calls
Filters: agentId, status (completed, transferred, failed, missed, in_progress), direction (inbound, outbound), created_after, created_before. limit from 1 to 500 (default 100) and cursor.
curl "https://callpme.com/api/v1/calls?direction=inbound&limit=20" \
-H "Authorization: Bearer $CALLPME_API_KEY"Place an outbound callLink to this section
POST/api/v1/calls
| Field | Type | Description |
|---|---|---|
agentId (required) | string | Agent placing the call; it must be “Live” |
to (required) | string | Number to call; normalized to E.164 format based on your organization's country |
variables | object | Up to 10 variables passed to the agent (keys a-z0-9_, text values ≤ 200 characters or numbers) |
curl -X POST "https://callpme.com/api/v1/calls" \
-H "Authorization: Bearer $CALLPME_API_KEY" \
-H "Idempotency-Key: invoice-reminder-F2026-118" \
-H "Content-Type: application/json" \
-d '{
"agentId": "cm4agent02",
"to": "+33612345678",
"variables": {
"first_name": "Claire",
"amount": 240
}
}'Requirements: verified business, number connected to a carrier, minutes or credit available, recipient not on the opt-out list. Otherwise, the API returns 403 with an explicit message.
Retrieve a callLink to this section
GET/api/v1/calls/{id}
curl "https://callpme.com/api/v1/calls/cm4call01" \
-H "Authorization: Bearer $CALLPME_API_KEY"Retrieve the transcriptLink to this section
GET/api/v1/calls/{id}/transcript
curl "https://callpme.com/api/v1/calls/cm4call01/transcript" \
-H "Authorization: Bearer $CALLPME_API_KEY"Download the recordingLink to this section
GET/api/v1/calls/{id}/recording
Returns the audio file (not JSON), for example audio/mpeg. A call's recordingUrl field gives this path when a recording exists. Returns 404 if the call was not recorded or the recording is not yet available.
curl "https://callpme.com/api/v1/calls/cm4call01/recording" \
-H "Authorization: Bearer $CALLPME_API_KEY" \
-o call.mp3