API introduction

Base URL, Bearer API key authentication, response format and the OpenAPI specification of the Callpme API v1.

On this page

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

Base URL
https://callpme.com/api/v1

AuthenticationLink 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.

Header
Authorization: Bearer cpk_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Key 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 data with a cursor: { "data": [ … ], "next_cursor": "…" }.
  • Dates use the ISO 8601 format, in UTC.
  • Every response carries an X-Request-Id header 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:

OpenAPI
https://callpme.com/api/v1/openapi.json

EndpointsLink to this section

ResourceEndpoints
AgentsGET /agents, POST /agents, GET /agents/{id}, PATCH /agents/{id}, DELETE /agents/{id}
CallsGET /calls, POST /calls, GET /calls/{id}, GET /calls/{id}/transcript, GET /calls/{id}/recording
AppointmentsGET /appointments, POST /appointments, GET /appointments/{id}, POST /appointments/{id}/cancel
LeadsGET /leads, GET /leads/{id}
ConversationsGET /conversations, GET /conversations/{id}
NumbersGET /numbers
CampaignsGET /campaigns, GET /campaigns/{id}, GET /campaigns/{id}/contacts, POST /campaigns/{id}/contacts
KnowledgeGET /knowledge, GET /knowledge/{id}, POST /knowledge
Payment plansGET /payment-plans, POST /payment-plans, GET /payment-plans/{id}
UsageGET /usage
Webhook deliveriesGET /webhooks/deliveries, POST /webhooks/deliveries/{id}/retry