Send DTMF
/calls/{callId}/dtmfPlay keypad tones into a connected call, to navigate a phone menu for example. OAuth apps need calls:write.
Path parameters
callIdRequiredstringCall id (call_...).
Headers
AuthorizationRequiredstringYour API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.
Body parameters
JSONdigitsRequiredstringKeypad digits to play into the call. w pauses half a second, W a second.
Returns
dataoptionalCall
dataoptionalCallcall_idRequiredstringCall id (call_...).
channel_idRequiredstringThe Blooio Voice channel (ch_...) the call is on.
directionRequiredstring"inbound""outbound"fromRequiredstringCaller, in E.164 format. A withheld caller ID is the carrier's text instead, such as anonymous, with no contact_id.
toRequiredstringCallee, in E.164 format.
contact_idRequiredstring | nullThe contact on the other end (ct_...).
contactRequiredContactSummary | nullThe person on the other end, with their name when one is on file. A number already saved as a contact on another channel is that contact. null when the caller withheld their number.
contactRequiredContactSummary | nullThe person on the other end, with their name when one is on file. A number already saved as a contact on another channel is that contact. null when the caller withheld their number.
ContactSummary
contact_idRequiredstring | nullThe contact (ct_...). null when no contact record matches the identifier.
identifierRequiredstringThe contact's identifier (phone number, email, or handle).
nameRequiredstring | nullThe contact's name. null when none is on file. On a webhook it is a snapshot from when the event happened; read the contact for current details.
statusRequiredstringqueued while the dial is placed, ringing, in_progress once answered, then completed. A call that ends unanswered is missed; one whose dial was refused is failed.
"queued""ringing""in_progress""completed""missed""failed"handlerRequiredCallHandler | nullWho has the call's audio; null until it's answered, and while a call the agent handed off waits for a teammate.
handlerRequiredCallHandler | nullWho has the call's audio; null until it's answered, and while a call the agent handed off waits for a teammate.
CallHandler
typeRequiredstring"stream""softphone""agent""phone"urloptionalstringstream only: the WebSocket URL the audio streams to.
tooptionalstringphone only: the number the call was transferred to.
answered_by_user_idRequiredstring | nullThe dashboard user holding the call on their softphone.
hangup_causeRequiredstring | nullThe carrier's hangup cause, e.g. normal_clearing.
errorRequiredCallError | null
errorRequiredCallError | nullCallError
codeRequiredstringmessageRequiredstringcreated_atRequiredintegerEpoch ms.
answered_atRequiredinteger | nullEpoch ms.
ended_atRequiredinteger | nullEpoch ms.
is_recordedRequiredbooleanWhether the call is recorded from answer, because the organization had call recording on. Its recording is at GET /calls/{call_id}/recording once call.recording.ready fires.
Response codes
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X POST https://api.blooio.com/v4/calls/obj_a1b2c3d4/dtmf \{ "data": { "call_id": "obj_a1b2c3d4", "channel_id": "ch_a1b2c3d4", "direction": "inbound", "from": "+15551234567", "to": "+15551234567", "contact_id": "ct_a1b2c3d4", "contact": { "contact_id": "ct_a1b2c3d4", "identifier": "+15551234567", "name": "Jane Doe" }, "status": "queued", "handler": { "type": "stream", "url": "https://example.com", "to": "+15551234567" }, "answered_by_user_id": "obj_a1b2c3d4", "hangup_cause": "string", "error": { "code": "string", "message": "Hello from Blooio!" }, "created_at": 0, "answered_at": 0, "ended_at": 0, "is_recorded": true }}