Skip to Content

Public M2M API — voice

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/voice/numbers

Exported methods: GET, POST

GET

  • Resource scopes: config:read
  • Query parameters: activeOnly
  • Response keys observed across outcomes: data

POST

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

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
agentIdstringYesYes——
brainModelstringYesYes—max(120)
e164stringYesNo——
greetingstringYesYes—max(2000)
idstringYesNo——
isActivebooleanYesNo——
isFallbackbooleanYesNo——
providerenumYesNotelnyx, twilio, elevenlabs, sip_trunk—
providerNumberIdstringYesYes—max(120)
recordingModeenumYesNoALWAYS, CONSENT_REQUIRED, NEVER—
trunkIdstringYesYes—max(120)
voiceIdstringYesYes—max(120)

/api/v1/voice/queues

Exported methods: GET, POST

GET

  • Resource scopes: tickets:read
  • Response keys observed across outcomes: activeCalls, agentAvailability, queues, recordings, unacknowledgedVoicemails

POST

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

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
agentIdstringYesYes——
enabledbooleanYesNo—default(true)
idstringYesNo——
maxWaitSecondsnumberYesNo—int(), min(5), max(1800), default(60)
namestringNoNo—min(1), max(120)
overflowActionenumYesNoVOICEMAIL, AI_AGENT, FALLBACK_NUMBERdefault("VOICEMAIL")
strategyenumYesNoROUND_ROBIN, RING_ALL, LONGEST_IDLE, AI_FIRSTdefault("AI_FIRST")
teamIdstringYesYes——