All developer pages

API reference

Tasks

2 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/tasks

Create a task (a callback, voicemail, web form, CRM follow-up or back-office case) routed to the agents of a queue like a conversation; externalRef makes it idempotent.

Scope
tasks:write
Operation id
createTask
Idempotent
Send Idempotency-Key to make a retry safe

Parameters

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

Request body

JSON (Content-Type: application/json).

Request body of POST /api/v1/tasks
FieldTypeRequiredConstraints
kindstringYesone of "callback", "voicemail", "web_form", "crm_followup", "back_office"
titlestringYes1-200 characters
queueIdstring (uuid)Yes
contactIdstring (uuid)No
priorityintegerNo1 to 5
dueAtstring (date-time)No
externalRefstringNo1-200 characters
detailsobjectNofree-form object

Response

201 JSON with these fields.

Response fields of POST /api/v1/tasks
FieldTypeRequiredConstraints
idstring (uuid)Yes
kindstringYesone of "callback", "voicemail", "web_form", "crm_followup", "back_office"
titlestringYes
detailsobjectYesfree-form object
contactIdstring (uuid) or nullYes
conversationIdstring (uuid)Yes
interactionIdstring (uuid)Yes
queueIdstring (uuid)Yes
priorityintegerYes
dueAtstring (date-time) or nullYes
statusstringYesone of "open", "done", "cancelled"
externalRefstring or nullYes
createdBystringYes
createdAtstring (date-time)Yes
completedAtstring (date-time) or nullYes
outcomestring or nullYes
workItemobject or nullYesfree-form object

Errors

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

Example request

curl -X POST 'https://api.ringura.com/api/v1/tasks' \
  -H "Authorization: Bearer $CC_TOKEN" \
  -H 'Idempotency-Key: order-2027-0001' \
  -H 'Content-Type: application/json' \
  -d '{
  "kind": "callback",
  "title": "Order question",
  "queueId": "0192f5a0-7c1e-7d3a-9b2e-3f4a5b6c7d8e"
}'

GET /api/v1/tasks/{id}

One task with its routing state.

Scope
tasks:read
Operation id
getTask

Parameters

Parameters of GET /api/v1/tasks/{id}
NameInTypeRequiredConstraints
idpathstring (uuid)Yes

Response

200 JSON with these fields.

Response fields of GET /api/v1/tasks/{id}
FieldTypeRequiredConstraints
idstring (uuid)Yes
kindstringYesone of "callback", "voicemail", "web_form", "crm_followup", "back_office"
titlestringYes
detailsobjectYesfree-form object
contactIdstring (uuid) or nullYes
conversationIdstring (uuid)Yes
interactionIdstring (uuid)Yes
queueIdstring (uuid)Yes
priorityintegerYes
dueAtstring (date-time) or nullYes
statusstringYesone of "open", "done", "cancelled"
externalRefstring or nullYes
createdBystringYes
createdAtstring (date-time)Yes
completedAtstring (date-time) or nullYes
outcomestring or nullYes
workItemobject or nullYesfree-form object

Errors

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

Example request

curl -X GET 'https://api.ringura.com/api/v1/tasks/0192f5a0-7c1e-7d3a-9b2e-3f4a5b6c7d8e' \
  -H "Authorization: Bearer $CC_TOKEN"