All developer pages

API reference

Calls

1 operations. Base URL: https://api.ringura.com/api/v1. Authenticate with a bearer token that carries the scope named on each operation.

POST /api/v1/calls

Click-to-call from a CRM: the named agent's phone rings first, then the number, presented from one of your verified numbers, through the outbound gate. A refusal (calling hours, DNC, consent, a number called in the last 10 minutes, telephony not active) answers 409 with the reason.

Scope
calls:write
Operation id
clickToCall
Idempotent
Send Idempotency-Key to make a retry safe

Parameters

Parameters of POST /api/v1/calls
NameInTypeRequiredConstraints
Idempotency-KeyheaderstringNomatches ^[A-Za-z0-9_.:-]{8,100}$

Request body

JSON (Content-Type: application/json).

Request body of POST /api/v1/calls
FieldTypeRequiredConstraints
numberstringYes4-32 characters
defaultCountrystringNomatches ^[A-Z]{2}$
agentIdstring (uuid)No
queueIdstring (uuid)No
contactIdstring (uuid)No
callerIdstring (uuid)No
purposestringNoone of "service", "marketing"

Response

201 JSON with these fields.

Response fields of POST /api/v1/calls
FieldTypeRequiredConstraints
requestobjectYes
request.idstring (uuid)Yes
request.sourcestringYes
request.e164stringYes
request.purposestringYes
request.statusstringYesone of "waiting_agent", "dialling", "refused", "failed", "expired"
request.refusalstring or nullYes
request.agentIdstring (uuid) or nullYes
request.queueIdstring (uuid) or nullYes
request.contactIdstring (uuid) or nullYes
request.callIdstring (uuid)Yes
request.createdAtstring (date-time)Yes
request.dialledAtstring (date-time) or nullYes

Errors

400, 401, 403, 404, 409, 422, 429. What each status means

Example request

curl -X POST 'https://api.ringura.com/api/v1/calls' \
  -H "Authorization: Bearer $CC_TOKEN" \
  -H 'Idempotency-Key: order-2027-0001' \
  -H 'Content-Type: application/json' \
  -d '{
  "number": "+441632960000"
}'