Skip to Content
DNCR screening

Test dncr connection

Permissiondncr-connections:testRetriesIdempotency-Key optionalAuthentication
POST
/dncr-connections/{id}/test

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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

Idempotency-Key?string

Optional. When supplied, identical retries replay the saved result. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
to_number*string

UAE phone number, in +971 or local 0 format.

Response Body

Registry decision and evidence; no call is placed.

application/json
  1. response
id?string
Formatuuid
decision*string
Value in"allowed""blocked""disabled""unavailable""not_applicable"
reason*string
checked_at*string
Formatdate-time
connection_id?string
Formatuuid
credential_revision?integer
Range1 <= value
transaction_id?string
policy*

Server-owned scheduling snapshot. Current organization enforcement always takes precedence at dispatch. Legacy jobs with an empty snapshot inherit current policy.

detail?string

Why 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.

Lengthlength <= 1025
Example Request
curl -X POST 'https://api.kejue.co/v1/dncr-connections/497f6eca-6276-4993-bfeb-53cbbbba6f08/test' \  -H 'Content-Type: application/json' \  -d '{  "to_number": "string"}'
Example Response
{  "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"}