Skip to main content
GET
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 Read retained messages in one owned inbox conversation. The newest page is selected first and returned in chronological order; this read does not mark messages as read.
Method: GET ·
Success: 200 ·
Scope: Owning account
The important part
  • Read only an account-owned thread in its original channel.
  • Keep private messages out of logs and shared AI prompts.

Authentication

Send Authorization: Bearer KEY_ID:KEY_SECRET using the owning account’s server-side credential.

Request fields

Do not send a request body. Use both created_at and id from the oldest message in the returned page to request older messages. Rows are selected newest-first with an ID tie-break, then returned oldest-first within the selected page. With SMS, thread is the contact key; with web, it is the session key from the list response. URL-encode either. An owned number with no matching messages can return 200 and an empty list. Retention can remove content between reads. read_version covers the entire thread, not only the returned page: acknowledge it only if your application intends to mark all messages through that version read. 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 is the first page; use only cursors returned by the API for subsequent pages.

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 is a read-only request. Retry transient connection or server failures with bounded backoff; respect Retry-After for 429. Do not retry validation or ownership errors unchanged. A later read can return newer state.

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

Query Parameters

limit
integer
default:100

Messages per page.

Required range: 1 <= x <= 200
before
string<date-time>

Oldest returned created_at for the next older page; supply before_id too.

before_id
string

Oldest returned message ID paired with before. Web IDs must contain 1–19 digits.

Maximum string length: 80

Response

OK

messages
object[]
required
read_version
string
required

Maximum tracked version across the whole thread, including messages outside this page. Opaque decimal string; default 0.

has_more
boolean
required

More older messages remain before this page boundary.