Test dncr connection
Queries a UAE destination without dialing. Returns allowed or blocked registry evidence. Unknown status, authentication failure, timeout, or unavailable service returns 503. Organization enforcement applies to the selected connection.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidIdempotency-Key?stringOptional. When supplied, identical retries replay the saved result. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255application/json- body
to_number*stringUAE phone number, in +971 or local 0 format.
Registry decision and evidence; no call is placed.
application/json- response
id?stringuuiddecision*string"allowed""blocked""disabled""unavailable""not_applicable"reason*stringchecked_at*stringdate-timeconnection_id?stringuuidcredential_revision?integer1 <= valuetransaction_id?stringpolicy*Server-owned scheduling snapshot. Current organization enforcement always takes precedence at dispatch. Legacy jobs with an empty snapshot inherit current policy.
detail?stringWhy a check was unavailable, in operator terms (the Kejue Voice limiter and its configured rate, or the provider request and HTTP status). Subscriber numbers are masked. Absent when the check completed.
length <= 1025curl -X POST 'https://api.kejue.co/v1/dncr-connections/497f6eca-6276-4993-bfeb-53cbbbba6f08/test' \ -H 'Content-Type: application/json' \ -d '{ "to_number": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "decision": "allowed", "reason": "string", "checked_at": "2019-08-24T14:15:22Z", "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9", "credential_revision": 1, "transaction_id": "string", "policy": { "schema_version": 1, "requested": { "mode": "inherit", "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9" }, "enabled": true, "enforced": true, "connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9", "policy_version": 0, "source": "organization" }, "detail": "string"}