Skip to main content
PATCH
FIXED · account Inbox number discovery is account-wide. Filter threads by channel and number, and call history by number. DELETE /v1/calls purges calls and related recordings account-wide and reports sms_deleted=0. For one customer verify each call ID, then use DELETE /v1/calls/{id}. NOT OFFERED → do this instead · number A business_number filter on campaign and opt-out reads does not establish tenant identity. Authorise the tenant and its number on your server. Keep that filter through SMS pagination. Bulk call deletion stays account-wide. YOU CAN CHANGE · account Choose direction, source, outcome and period when supported. The number narrows a history read only. direction all, inbound, outbound, web · source all, campaign, web, test, other · outcome all, successful, unsuccessful, unknown, failed · period all, today, week, month. SCOPE · account Keep the same filters with each server-issued cursor. Read the compact AI rules Change an owned conversation’s archive state or acknowledge messages through a known read version. This does not delete content or extend retention.
Method: PATCH ·
Success: 200 ·
Scope: Owning account
The important part
  • This updates supported thread state; it is not a send-message endpoint.
  • Read the current thread before resolving an uncertain update.

Authentication

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

Request fields

Supply at least one field. Unknown fields and null are refused. Use the read_version string returned by a thread read. Decimal numeric input is also accepted but strings avoid precision loss. Versions beyond received messages are refused. Read acknowledgements only advance; an older acknowledgement cannot mark later arrivals as read. A missing conversation is 404 inbox_not_found even though reading it may return an empty list. Archiving does not change retention. Requests return Cache-Control: no-store.

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. This example changes state. Review the target and payload before running it.

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

No idempotency key is documented. A timeout or 5xx can follow a committed change. Read the current state before deciding whether to submit again; never automatically repeat an uncertain write. Reapplying an intended archive boolean or an already acknowledged version preserves that state, but a concurrent archive edit can change user intent. Reload after uncertainty.

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.

Path Parameters

channel
enum<string>
required

Conversation channel.

Available options:
sms,
web
number
string
required

International number with + and digits; no spaces.

Pattern: ^\+[1-9][0-9]{6,14}$
thread
string
required

Opaque thread key from the conversation list. URL-encode it.

Required string length: 1 - 160

Body

application/json

Supply at least one field. Unknown fields and null are refused.

archived
boolean

Set true to archive or false to unarchive. Omitted leaves state unchanged.

read_version
string

Opaque decimal revision. Keep as a string to avoid precision loss.

Pattern: ^[0-9]{1,18}$

Response

OK

ok
boolean
required

Update confirmed.

archived
boolean
required

Current archive state.