Skip to Content

Public M2M API — calls

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/calls

Exported methods: GET, POST

GET

  • Resource scopes: tickets:read
  • Query parameters: limit, page
  • Shared pagination: Yes

POST

  • Resource scopes: tickets:write
  • Explicit response statuses: 201, 404, 422
  • Explicit error codes: invalid_request, not_found

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
bookingIdstringYesNo——
directionenumYesNoINBOUND, OUTBOUNDdefault("OUTBOUND")
durationSnumberYesNo—int(), min(0)
leadIdstringYesNo——
outcomeTagenumYesNoBOOKING_CREATED, LEAD_QUALIFIED, MESSAGE_LEFT, TRANSFERRED_TO_HUMAN, INFO_PROVIDED, ESCALATED, HUNG_UP, ERROR—
phoneNumberIdstringYesNo——
remoteE164stringNoNo—min(3), max(40)
statusenumYesNoRINGING, ANSWERED, IN_PROGRESS, COMPLETED, MISSED, VOICEMAIL_LEFT, FAILED, TRANSFERRED, NO_ANSWERdefault("COMPLETED")
summarystringYesNo—max(5000)
ticketIdstringYesNo——

/api/v1/calls/{id}

Exported methods: GET, PATCH, DELETE

GET

  • Resource scopes: tickets:read
  • Path parameters: id
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: callerName

PATCH

  • Resource scopes: tickets:write
  • Path parameters: id
  • Explicit response statuses: 404, 422
  • Explicit error codes: invalid_request, not_found

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
bookingIdstringYesYes——
durationSnumberYesNo—int(), min(0)
leadIdstringYesYes——
outcomeTagenumYesYesBOOKING_CREATED, LEAD_QUALIFIED, MESSAGE_LEFT, TRANSFERRED_TO_HUMAN, INFO_PROVIDED, ESCALATED, HUNG_UP, ERROR—
statusenumYesNoRINGING, ANSWERED, IN_PROGRESS, COMPLETED, MISSED, VOICEMAIL_LEFT, FAILED, TRANSFERRED, NO_ANSWER—
summarystringYesYes—max(5000)
ticketIdstringYesYes——

DELETE

  • Resource scopes: tickets:write
  • Path parameters: id
  • Explicit response statuses: 404
  • Explicit error codes: not_found
  • Response keys observed across outcomes: id, ok

Request input was not extracted for this operation; consult its specific contract before sending. Do not infer that no body is required.