Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Account-scoped paths take the Account SID as AccountSid: pass the same AC… value the credentials use.
- Paths end in .json; leave it off and the API answers XML.
- Lists page by PageSize (max 1000) and PageToken; follow next_page_uri from the answer rather than building the token.
- Dates in list filters are GMT YYYY-MM-DD; DateSent< and DateSent> give a range.
Endpoints
List messages
Get a message
List calls
List your phone numbers
List usage records
Get account balance
- May lag recent charges; subaccounts carry no balance.
Look up a phone number
- The basic lookup with no Fields is free; every data package in Fields is billed.