API introduction
Base URL, Bearer API key authentication, response format and the OpenAPI specification of the Callpme API v1.
The Callpme REST API v1 lets you manage your agents, place calls, read calls, appointments, leads and conversations, feed your knowledge bases and track your usage.
Base URLLink to this section
https://callpme.com/api/v1AuthenticationLink to this section
Every request carries an API key in the Authorization header, using the Bearer scheme. Keys start with cpk_live_. Create them in Configure › Developers, on the “API keys” tab: see API keys.
Authorization: Bearer cpk_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXKey roleLink to this section
A key inherits the role of its creator: admin if it was created by an owner or an administrator, developer otherwise. Two operations require an admin key: deleting an agent and changing its number (PATCH /agents/{id} with phoneNumber).
Response formatLink to this section
- Request and response bodies are JSON (UTF-8).
- A resource is returned in
data:{ "data": { … } }. - A list is returned in
datawith a cursor:{ "data": [ … ], "next_cursor": "…" }. - Dates use the ISO 8601 format, in UTC.
- Every response carries an
X-Request-Idheader to share with support when needed. - Error messages are written in French.
curl "https://callpme.com/api/v1/usage" \
-H "Authorization: Bearer $CALLPME_API_KEY"OpenAPI specificationLink to this section
The complete OpenAPI 3.1 specification is public and requires no authentication:
https://callpme.com/api/v1/openapi.jsonEndpointsLink to this section
| Resource | Endpoints |
|---|---|
| Agents | GET /agents, POST /agents, GET /agents/{id}, PATCH /agents/{id}, DELETE /agents/{id} |
| Calls | GET /calls, POST /calls, GET /calls/{id}, GET /calls/{id}/transcript, GET /calls/{id}/recording |
| Appointments | GET /appointments, POST /appointments, GET /appointments/{id}, POST /appointments/{id}/cancel |
| Leads | GET /leads, GET /leads/{id} |
| Conversations | GET /conversations, GET /conversations/{id} |
| Numbers | GET /numbers |
| Campaigns | GET /campaigns, GET /campaigns/{id}, GET /campaigns/{id}/contacts, POST /campaigns/{id}/contacts |
| Knowledge | GET /knowledge, GET /knowledge/{id}, POST /knowledge |
| Payment plans | GET /payment-plans, POST /payment-plans, GET /payment-plans/{id} |
| Usage | GET /usage |
| Webhook deliveries | GET /webhooks/deliveries, POST /webhooks/deliveries/{id}/retry |