curl --request GET \
--url "https://api.nixflex.com/v1/calls?limit=25&offset=0" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const client = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl,maxRetries:0});
const result = await client.calls.list({limit:25,offset:0});
// Handle result privately; do not log secrets or call content.
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
with Nixflex(os.environ["NIXFLEX_API_KEY"], base_url=base_url,max_retries=0) as client:
result = client.calls.list(limit=25,offset=0)
# AsyncNixflex supports the same calls with await (and async with).
nixflex calls list --limit 25 --offset 0 --base-url https://api.nixflex.com --json
[]
Calls
List calls
Read the original call list as a bare array, newest creation time first. Use the documented filters and page limits.
GET
/
calls
curl --request GET \
--url "https://api.nixflex.com/v1/calls?limit=25&offset=0" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const client = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl,maxRetries:0});
const result = await client.calls.list({limit:25,offset:0});
// Handle result privately; do not log secrets or call content.
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
with Nixflex(os.environ["NIXFLEX_API_KEY"], base_url=base_url,max_retries=0) as client:
result = client.calls.list(limit=25,offset=0)
# AsyncNixflex supports the same calls with await (and async with).
nixflex calls list --limit 25 --offset 0 --base-url https://api.nixflex.com --json
[]
FIXED · account Inbox number discovery is account-wide. Filter threads by channel and number, and call history by number.
Do not send a request body.
Legacy mode ignores unsupported filters such as agent_id. It has no total or next_cursor. Increase offset by the returned length and stop on an empty/short page within the 200-row cap. Offset reads are not a frozen snapshot; concurrent writes can shift rows. Legacy responses can contain retained transcript/recording fields, so handle them as private account data.
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 the original call list as a bare array, newest creation time first. Use the history operation when you need filters, totals, failed-start entries or cursor paging.
Method: GET ·
Success: 200 ·
Scope: Owning account
The important part
- Use the documented filters and page limits.
- A call row can exist before analysis, recording and booking work finishes.
Authentication
SendAuthorization: Bearer KEY_ID:KEY_SECRET using the owning account’s server-side credential.
Request fields
| Field | Type | Required | Default | Limits and meaning |
|---|---|---|---|---|
limit (query) | integer | No | 50 | Positive parsed integer, capped at 200. Missing, zero, negative or unparseable values use 50. Minimum 1. Maximum 200. |
offset (query) | integer | No | 0 | Parsed offset. Missing, negative or unparseable values use zero. Minimum 0. |
view (query) | string | No | Omitted | history selects the history envelope and its different filtering rules. Other values keep the original array. |
Response fields
200 OK returns the shape below. Nullable fields can be unknown or unset; do not turn null into zero or false.
| Field | Type | Meaning |
|---|---|---|
[] | array of object | Legacy list response. |
[].call_id | string | Call identifier. Failed starts can use the failed: prefix. |
[].id | string | Row ID of this call record (UUID) when present. Use call_id to identify the call in requests. Format: uuid. |
[].agent_id | string or null | Agent identifier, if retained. |
[].from_number | string or null | Origin number, if retained. |
[].to_number | string or null | Destination number, if retained. |
[].call_type | string or null | Call channel/type, such as inbound, outbound or web. |
[].call_direction | string or null | Direction recorded for the call. |
[].call_status | string or null | Recorded lifecycle state; unknown future states must be tolerated. |
[].duration_ms | integer or null | Connected duration in milliseconds; not elapsed ringing time or proof of billed time. |
[].created_at | string or null | Creation time when retained. Format: date-time. |
[].start_timestamp | integer or null | Start time in Unix milliseconds. |
[].end_timestamp | integer or null | End time in Unix milliseconds. |
[].answered_at | integer or null | Answer time in Unix milliseconds, when known. |
[].ended_reason | string or null | Recorded end/failure reason. A null value is unknown, not success. |
[].call_successful | boolean or null | Assessment of success. Null means unknown. |
[].caller_sentiment | string or null | Post-call sentiment, if retained. |
[].cost | number or null | Stored cost value. Null must remain unknown. |
[].charged_minutes | number or null | Stored charged-minute value, when known. |
[].campaign_id | string or null | Associated campaign, if any. |
[].test_requested_by | string or null | Retained test source marker, if any. |
[].caller_name | string or null | Caller name, if retained. |
[].payload_deleted_at | string or null | Time content was erased. Format: date-time. |
[].payload_deleted_reason | string or null | Recorded erasure reason. |
[].payload_in_own_storage | boolean or null | Whether payload was stored in account-connected storage; its current contents are not inspected. |
[].call_retention_days | integer or null | Retention policy recorded for this call. |
[].payload_scheduled_for_deletion | boolean | Content is hidden while deletion processing finishes. |
[].call_summary | string or null | Retained summary; can be absent or null. |
[].transcript | string or null | Retained transcript; hidden/erased content is null. |
[].extracted_data | legacy value | Retained extracted JSON data, or null. |
[].call_events | legacy value | Retained event JSON data, or null. |
[].recording_url | string or null | Older recording pointer. Prefer the recording endpoint; detail view always returns null. |
[].recording_status | string | Recording availability state when supplied. |
[].recording_endpoint | string or null | Optional API path for a recording read; not itself a download URL. |
[].recording_availability | string or null | Stored recording processing state. |
[].recording_availability_reason | string or null | Stored recording processing reason. |
data | array of object | Page of matching retained call metadata. |
data[].call_id | string | Call identifier. Failed starts can use the failed: prefix. |
data[].id | string | Row ID of this call record (UUID) when present. Use call_id to identify the call in requests. Format: uuid. |
data[].agent_id | string or null | Agent identifier, if retained. |
data[].from_number | string or null | Origin number, if retained. |
data[].to_number | string or null | Destination number, if retained. |
data[].call_type | string or null | Call channel/type, such as inbound, outbound or web. |
data[].call_direction | string or null | Direction recorded for the call. |
data[].call_status | string or null | Recorded lifecycle state; unknown future states must be tolerated. |
data[].duration_ms | integer or null | Connected duration in milliseconds; not elapsed ringing time or proof of billed time. |
data[].created_at | string or null | Creation time when retained. Format: date-time. |
data[].start_timestamp | integer or null | Start time in Unix milliseconds. |
data[].end_timestamp | integer or null | End time in Unix milliseconds. |
data[].answered_at | integer or null | Answer time in Unix milliseconds, when known. |
data[].ended_reason | string or null | Recorded end/failure reason. A null value is unknown, not success. |
data[].call_successful | boolean or null | Assessment of success. Null means unknown. |
data[].caller_sentiment | string or null | Post-call sentiment, if retained. |
data[].cost | number or null | Stored cost value. Null must remain unknown. |
data[].charged_minutes | number or null | Stored charged-minute value, when known. |
data[].campaign_id | string or null | Associated campaign, if any. |
data[].test_requested_by | string or null | Retained test source marker, if any. |
data[].caller_name | string or null | Caller name, if retained. |
data[].payload_deleted_at | string or null | Time content was erased. Format: date-time. |
data[].payload_deleted_reason | string or null | Recorded erasure reason. |
data[].payload_in_own_storage | boolean or null | Whether payload was stored in account-connected storage; its current contents are not inspected. |
data[].call_retention_days | integer or null | Retention policy recorded for this call. |
data[].payload_scheduled_for_deletion | boolean | Content is hidden while deletion processing finishes. |
data[].call_summary | string or null | Retained summary; can be absent or null. |
data[].recording_availability | string or null | Stored recording processing state. |
data[].recording_availability_reason | string or null | Stored recording processing reason. |
totals | object | Saved value. |
totals.total | integer | All matching retained rows, not just this page. Minimum 0. |
totals.minutes | number | Sum of nonnegative connected durations divided by 60,000. |
totals.cost | number | Sum of known stored costs; unknown costs are counted separately. |
totals.cost_unknown | integer | Matching rows whose cost is unknown. Minimum 0. |
totals.successful | integer | Matching rows whose success flag is true. Minimum 0. |
filters | object | Saved value. |
filters.direction | string | Filter by direction. Allowed: "all", "inbound", "outbound", "web". |
filters.source | string | Filter by source. Allowed: "all", "campaign", "web", "test", "other". |
filters.outcome | string | Filter by outcome. Allowed: "all", "successful", "unsuccessful", "unknown", "failed". |
filters.period | string | UTC time range: today starts at UTC midnight; week is the preceding 7 days; month the preceding 30 days. Allowed: "all", "today", "week", "month". |
filters.agent | string | Agent ID, or all. This is agent, not agent_id. Maximum 200 characters. |
filters.number | string | Business number, or all; use + in E.164 and encode it in the query. Maximum 80 characters. |
filters.search | string | Trimmed literal search in caller name, call ID and phone numbers. Control characters are invalid. Maximum 120 characters. |
filters.since | string or null | Optional ISO timestamp with a time zone. Overrides the period start; must not be after until. Maximum 40 characters. Format: date-time. |
filters.until | string | Optional ISO timestamp with a time zone; defaults to request time. Maximum 40 characters. Format: date-time. |
limit | integer | Applied page limit. |
offset | integer | Applied offset; zero during cursor continuation. |
has_more | boolean | Whether another page exists. |
next_cursor | string or null | Opaque continuation, or null at the end. |
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.
curl --request GET \
--url "https://api.nixflex.com/v1/calls?limit=25&offset=0" \
--header "Authorization: Bearer $NIXFLEX_API_KEY"
import Nixflex from 'nixflex';
const baseUrl = 'https://api.nixflex.com';
const client = new Nixflex({apiKey:process.env.NIXFLEX_API_KEY,baseUrl,maxRetries:0});
const result = await client.calls.list({limit:25,offset:0});
// Handle result privately; do not log secrets or call content.
import os, json
from pathlib import Path
from nixflex import Nixflex
base_url = "https://api.nixflex.com"
with Nixflex(os.environ["NIXFLEX_API_KEY"], base_url=base_url,max_retries=0) as client:
result = client.calls.list(limit=25,offset=0)
# AsyncNixflex supports the same calls with await (and async with).
nixflex calls list --limit 25 --offset 0 --base-url https://api.nixflex.com --json
Example response
Illustrative200 response. Identifiers and values are examples; some optional or compatibility fields are omitted.
[]
Errors
Failures return anerror 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.
| Status | Code | Meaning | What to do |
|---|---|---|---|
| 400 | invalid_call_history | A history-mode query is invalid. | Use the history filter/cursor rules when view=history. |
| 500 | server_error | Legacy call rows could not be read. | Retry a bounded read after recovery. |
| 503 | call_data_unavailable | History data could not be confirmed. | Retry the read; do not turn the failure into an empty page. |
| 401 | unauthorized | The credential is missing or invalid. | Check the full account credential. |
| 429 | rate_limit_exceeded | The account request limit was reached. | Wait for Retry-After. Reconcile uncertain writes before resending. |
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.Related endpoints
Authorizations
Query Parameters
Response
OK
- object[]
- object
Legacy call rows can include additional fields. Availability varies with retention and lifecycle.