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 a filtered call-history envelope with matching totals. History includes failed starts and omits transcripts, event data, extracted data and recording URLs.
Method: GET ·
Success: 200 ·
Scope: Owning account
The important part
  • Keep the same filters while paging through history.
  • Unknown outcome and missing analysis must stay unknown in your UI.

Authentication

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

Request fields

Do not send a request body. Order is created_at descending, nulls last, then row ID descending. The cursor binds the account, filters and first-page time boundary. Send only cursor and optional limit for the next page. Stop when has_more is false and next_cursor is null; stop on a repeated cursor. This is not a frozen database snapshot: later updates and deletion can change results. The default period is the preceding 30 days. Cost sums include only known values; cost_unknown counts rows excluded from that sum. Null success is not a failed call. outcome=failed selects failed starts; their IDs can begin failed:. A retained call_summary can still be present, so treat the result as private account data. For recording availability and temporary download access, use Get a call recording.

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

Raw HTTP base URL: https://api.nixflex.com/v1. Node and Python SDK base URL: https://api.nixflex.com. The SDK adds /v1. Keep NIXFLEX_API_KEY in your private process environment. The shell examples use Bash syntax. SDK and CLI examples require Node/CLI 0.11.0 or later and Python 0.4.0 or later.

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.

Query Parameters

limit
integer
default:50

Strict integer page size; signs, fractions and leading zeros are refused.

Required range: 1 <= x <= 200
offset
integer
default:0

Offset for the first page only. Prefer the returned cursor for continuation.

Required range: 0 <= x <= 1000000
cursor
string

Opaque continuation cursor, up to 4096 characters. With cursor, send only limit; do not repeat filters or a nonzero offset.

Maximum string length: 4096
direction
enum<string>
default:all

Filter by direction.

Available options:
all,
inbound,
outbound,
web
source
enum<string>
default:all

Filter by source.

Available options:
all,
campaign,
web,
test,
other
outcome
enum<string>
default:all

Filter by outcome.

Available options:
all,
successful,
unsuccessful,
unknown,
failed
period
enum<string>
default:month

UTC time range: today starts at UTC midnight; week is the preceding 7 days; month the preceding 30 days.

Available options:
all,
today,
week,
month
agent
string
default:all

Agent ID, or all. This is agent, not agent_id.

Maximum string length: 200
number
string
default:all

Business number, or all; use + in E.164 and encode it in the query.

Maximum string length: 80

Trimmed literal search in caller name, call ID and phone numbers. Control characters are invalid.

Maximum string length: 120
since
string<date-time>

Optional ISO timestamp with a time zone. Overrides the period start; must not be after until.

Maximum string length: 40
until
string<date-time>

Optional ISO timestamp with a time zone; defaults to request time.

Maximum string length: 40

Response

OK

data
object[]
required

Page of matching retained call metadata.

totals
object
required
filters
object
required
limit
integer
required

Applied page limit.

offset
integer
required

Applied offset; zero during cursor continuation.

has_more
boolean
required

Whether another page exists.

next_cursor
string | null
required

Opaque continuation, or null at the end.