Skip to content
API PlatformDevelopers

Error codes

forbidden

HTTP 403 · Not allowed

What it means

Your workspace does not allow this — for example the plan contact limit is reached, or the contact has message history and cannot be deleted.

What to do

Read detail. It says which rule stopped the request.

Reasons

Some answers carry a reason that says which rule refused the request:

dnd_on_panel_only
Do-not-disturb can only be turned on by staff, in the panel. The API turns it off only, with the customer's consent.
dnd_off_not_allowed
Your workspace does not allow API keys to turn do-not-disturb off yet.
broadcast_api_disabled
Sending broadcasts from API keys is off for the workspace. A workspace admin turns it on in the app. See the Sending broadcasts guide.
allowlist_required
Sending a broadcast needs a key with an IP allowlist of your servers (no range wider than /8 for IPv4 or /32 for IPv6; too_wide means an entry is broader than that). See Securing sensitive operations.
ip_not_allowed
The request came from an address outside the key's IP allowlist. Call from an allowed server.
key_not_live
Only a live key sends broadcasts; a test key previews them.
sandbox_only
The playground on this site previews broadcasts only, in sandbox mode. Send from your own server.
step_up_required
The platform wants a fresh two-factor confirmation, which a key cannot give. Send it from the app.
two_factor_not_enrolled
The staff member who made the key must set up two-step sign-in first.
permission_denied
The staff member who made the key may not send or change broadcasts. With two_factor_reset, their two-step sign-in was reset: they set it up again and grant a new key.

Returned by