Check whether a number may be contacted now
Authentication
Request
The contact being reached. Enables the contact DNC check and both attempt-limit checks.
The contact being reached. Enables the contact DNC check and both attempt-limit checks.
Runs the same gate that every outbound call, WhatsApp send and campaign email passes before it leaves, and
reports whether contacting phoneNumber is allowed right now and, if not, why. Nothing is dialed or sent.
The country comes from the number’s prefix: +57 CO, +52 MX, +55 BR, +1 US (this includes Canada and
the Caribbean), +54 AR, +56 CL, +51 PE. Any other prefix uses a generic default: 08:00–20:00, 3 attempts
per day, 10 in total, DNC check on. The effective rules are the workspace’s saved config for that country, or
the country defaults. Checks run in this order, and the first failure is returned:
America/Bogota when no time zone is set. The end time is exclusive.require_dnc_check says.contactId is given.require_dnc_check is on.contactId is given. Counts the contact’s call rows since local midnight.contactId is given. Uses the contact’s call_attempts counter.Consent records are not part of this check. require_opt_in is stored on configs but is not enforced here.
To test consent, use GET /api/compliance/consent/check/{contactId}/{consentType}.
The answer is only valid for the moment it is computed. Hours and attempt counts change, so the real send re-checks.
Side effects. None. This is a read, but it is a POST, so API keys need write.
Idempotency. Safe to retry. The answer can change over time, as described above.
Access
write. Any signed-in workspace role.Workspace API key: jl_ followed by 64 lowercase hex characters, created by the workspace owner in the
dashboard (Settings → API Keys) and sent as Authorization: Bearer jl_.... The plaintext is shown once,
at creation; Jelliu stores only a SHA-256 hash. A workspace can hold up to 25 active keys.
Operations restricted to admins or owners reject keys without the full scope with 403, and say so in
their description. No key, whatever its scope, can mint or revoke API keys or rotate a webhook secret —
that requires a signed-in owner session. A revoked key stops authenticating within about 10 seconds.
See Authentication.