Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Every path is under /v1. Lists of numbers, agents, conversations and calls page by limit (max 100, default 20) and offset (max 10000).
  • Message lists page by cursor: pass the previous response’s nextCursor as cursor; it wins over before/after.
  • Field names are camelCase on most endpoints, but Send Message takes snake_case (agent_id, to_number).
  • Every endpoint accepts an optional X-Sub-Account-Id header to act on a sub-account.

Endpoints

List phone numbers

Get messages for a number

List conversations

Get a conversation’s messages

List calls

Get a call

Get a call transcript

Get account usage