Skip to main content
POST
FIXED · account An incoming STOP blocks voice and SMS across the owning account. The receiving business number is evidence only. NOT OFFERED → do this instead · number A number or a separate agent does not create its own STOP boundary. Businesses on a platform share its STOP list. Honour the suppression across their numbers. YOU CAN CHANGE · account Add a do-not-contact entry for all channels, voice or SMS. Check the selected owner and recipient before any change. SCOPE · recipient Preview local contact rules before outreach. Report the reason when a recipient is held and resolve the underlying policy or missing data. needs_timezone, timezone_policy_paused, contact_policy_paused, consent_required, consent_withdrawn, do_not_contact, outside_hours, not_due_local, policy_migration_required, country_policy_review, holiday_data_unavailable, public_holiday. Keyword STOP works independently. AI recognition of a sender’s clear objection in a verified incoming SMS is off by default. Customers have no switch for it. Where enabled on eligible automatic replies, it blocks calls and texts account-wide and may send one goodbye. On GET /v1/contact-suppressions, business_number alone selects keyword evidence. Add source=attributed for keyword and AI entries. To correct an eligible AI mistake, the Owner or account key sends phone_number, channel=all, current review_version and a reason to POST /v1/contact-suppressions/ai-corrections. Reload on review_changed. Keyword STOP and independent restrictions stay locked. Correction never supplies consent. Read the compact AI rules Preview recipient-local contact windows without sending calls, SMS or campaign work. The result is advisory and expires after one minute; final dispatch checks still apply.
Method: POST ·
Success: 200 ·
Scope: Owning account
The important part
  • The preview is advice for the supplied recipient location and time.
  • It neither sends a message nor reserves a future contact window.
Preview contact hours for the actual recipient. Country policy, local time, holidays and missing location data can affect the result. The engine checks again at dispatch. The public API offers no configurable per-recipient frequency cap. The shipped UK default is Monday to Friday, 09:00–18:00 recipient-local time. Set a narrower campaign window for a 17:00 cutoff. Enforce your own weekly recipient and daily offer caps before submitting work. A country under policy review can still be held.

Authentication

Send Authorization: Bearer KEY_ID:KEY_SECRET using the owning account’s server-side credential. Send Content-Type: application/json.

Request fields

Unknown root fields are ignored. The campaign preview uses start and end as HH:mm, unlike campaign creation’s minute fields. Omitted period settings use the current policy. Unknown or ambiguous locations, holidays and unverified policy data can hold a row rather than promise a future window. Multiple possible zones must satisfy the applicable checks. next_allowed is a bounded estimate: computation can stop for budget, horizon or missing policy data. windows describe current recipient-local-date windows, not an unlimited future schedule. allow_wider_hours only changes the preview assumption; it does not save the required campaign confirmation. The example versions and times are illustrative.

Response fields

200 OK returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.

Example request

These examples require Node/CLI 0.11.0 or later, Python 0.4.0 or later and MCP 0.5.0 or later. Keep NIXFLEX_API_KEY private. cURL uses Bash; CLI uses PowerShell and reads the key through NIXFLEX_API_KEY. Replace fixture identifiers and reserved example numbers with approved account-owned values. Configure the existing MCP installation for the same account at https://api.nixflex.com before using the shown tool arguments. Python shows the synchronous client; AsyncNixflex uses the same method with async with and await.

Example response

Illustrative 200 response. Identifiers and values are examples; some optional or compatibility fields are omitted.

Errors

Failures return an error object with code, message, doc_url and optional details. Each code links to the shared error catalog. Read the message and details before deciding whether to resend.

Retry and idempotency

This POST is read-only and can be retried with bounded backoff. Its result expires after one minute and is never a send-permission token. Respect 429 and compute a fresh preview when inputs or timing change.

Authorizations

Authorization
string
header
required

KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A verified personal dashboard Bearer session may be used where the operation documents role-based access.

Body

application/json

Unknown root fields are ignored.

agent_id
string
required

Owned agent with a configured valid IANA time zone.

Pattern: ^[A-Za-z0-9_-]{1,64}$
recipients
object[]
required

Between one and 20 recipients.

Required array length: 1 - 20 elements
campaign
object

Optional preview assumptions; unknown keys are ignored.

Response

OK

preview_only
boolean
required

No contact is sent.

mode
enum<string>
required

Current preview policy mode.

Available options:
global,
legacy_recipient_estimate
policy_version
string
required

Contact policy version.

runtime_timezone_version
string
required

Runtime time-zone data version.

as_of
string<date-time>
required

Server calculation time.

expires_at
string<date-time>
required

One minute after as_of.

agent_timezone
string
required

Configured agent zone.

rows
object[]
required