Skip to main content
GET
FIXED · account A number belongs to an account and agent. On a shared agent always pass that customer’s eligible from_number. NOT OFFERED → do this instead · number Fixed welcome_message, language, general timezone and pickup delay belong to the agent. Use Dynamic greeting and the number’s custom_prompt for its opening. Split agents for different fixed settings. YOU CAN CHANGE · number PATCH fields below. Clearing depends on the field. Null record_call or require_booking_confirmation inherits. Use the number’s voicemail controls. calcom_timezone_override, custom_prompt, voice_id, sms_reply_enabled, sms_prompt, web_prompt, speaking_rate, dtmf_enabled, require_booking_confirmation, record_call, recording_source, voicemail_leave_enabled, voicemail_message. SCOPE · number Import an owned carrier number, assign an agent, edit its channels or remove its Nixflex connection. For a different greeting per business, keep Dynamic greeting on (the default) and put the opening line in that number’s custom_prompt. For example, “Start every call with: Thank you for calling Oak and Stone”. Read the compact AI rules List the public phone numbers owned by the authenticated account.
Method: GET ·
Success: 200 ·
Scope: Owning account
The important part
  • Use E.164 phone numbers as returned by the API.
  • Check assignment and channel switches before choosing a number for work.
Pending imports are hidden. Without limit or cursor the response keeps its original shape. count is returned rows, not total. Paged reads order by created_at DESC NULLS LAST, then phone_number DESC; this is live traversal, not a snapshot.

Authentication

Use Authorization: Bearer KEY_ID:KEY_SECRET for the owning account. An organisation API key has Owner authority. Personal sessions use the role rules documented in Authentication; do not treat a Member session as an API key.

Request fields

Do not send a request body. Returns the numbers owned by your API key. Pending imports are hidden. Both API-added and dashboard-added numbers are included. The dashboard Phone numbers page is unchanged.

Query parameters

Without pagination parameters the existing { phone_numbers, count } envelope stays unchanged. The configured database row cap still applies; there is no guaranteed 1,000-row contract. Use paging to traverse large accounts. count ALWAYS means rows in this response, never the account total. Paged responses add next_cursor (string or null) and has_more (boolean). Keep the account and filters unchanged; pass the cursor unchanged and URL-encoded. Invalid limit, provider or cursor returns 400 invalid_number_query. Numbers are newest first. Paged reads break equal timestamps by phone number descending and put missing timestamps last. Follow next_cursor until null, even if fewer than limit rows arrive. This is a live list, not a snapshot: new imports appear on a fresh traversal; removed rows can disappear between pages. Empty lists return 200 with count 0, not 404. The existing Twilio number SID stays for compatibility. Credentials and internal row/account IDs never appear. source is descriptive api/dashboard (null for unknown legacy origin), not writable and never a permission. See Get phone number for full saved settings and seven switches.

Response fields

200 returns the following shape.

Example request

Production HTTP examples. Replace the placeholder identifiers with resources owned by the account. Set NIXFLEX_API_KEY privately; never print it.

Example response

Illustrative response with placeholder identifiers.

Errors

Branch on error.code, not the wording of error.message. The envelope includes type, code, message, doc_url and details.

Retry and idempotency

Use bounded retries only for temporary read failures. Keep the same filters while paging. See retry rules.

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

Opts into cursor paging; 1–100. Omitted with a cursor defaults to 50.

Required range: 1 <= x <= 100
cursor
string

Opaque next_cursor from the preceding page; keep the same account and filters.

Maximum string length: 1024
agent_id
string

Only numbers assigned to this agent.

Maximum string length: 200

Response

count is this page size. next_cursor and has_more are present only in paged mode.

phone_numbers
object[]
required
count
integer
required
Required range: x >= 0
next_cursor
string | null
has_more
boolean