Phone numbers
List phone number rejections
Permission
phone-numbers:readAuthenticationGET
Lists recent calls to or from this number that were refused at the SIP layer before or instead of becoming a working call. SIP-level refusals with the SIP status, reason, stage (trunk_auth, no_trunk, no_dispatch_rule, admission, capacity, quota, unknown_number, carrier_rejected, registrar, other) and the captured INVITE / final response headers.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidlimit?integerRange
1 <= value <= 200Default
50Recent rejections, newest first.
application/json- response
data*array<>curl -X GET 'https://api.kejue.co/v1/phone-numbers/497f6eca-6276-4993-bfeb-53cbbbba6f08/rejections'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82", "occurred_at": "2019-08-24T14:15:22Z", "direction": "inbound", "stage": "string", "sip_status": 0, "sip_reason": "string", "caller_number": "string", "called_number": "string", "sip_trunk_id": "3eeb45a3-96f0-493f-8a7e-d09946261852", "phone_number_id": "54afc7b8-17df-415a-9fb0-21ee66219576", "sip_call_id": "string", "source_ip": "string", "detail_internal": "string", "messages": [ { "seq": 0, "sip_call_id": "string", "direction": "sent", "hop": "sonus", "src": "string", "dst": "string", "transport": "string", "kind": "request", "method": "string", "status_code": 0, "reason": "string", "headers": "string", "ts": "2019-08-24T14:15:22Z" } ] } ]}