> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Twilio messages, calls and daily usage

> Mount bounded read-only Twilio sources for one account.

Follow the [REST mounting guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind).
Use one mount per mode. Pass as `receivers.provider` a receiver bound with
`providerEndpoint(mode, "https://api.twilio.com", path, auth, data)`
from `@bijectionhq/app-rest`. For Basic header auth, seal the Base64 encoding
of the read-authorized API key SID and its secret separated by a colon.
Bind the same `data` label as `data` and to the receiver.

Use the account SID from the path as `selection` in each mode. Replace
`ACCOUNT_SID` in the following paths with that account's SID.

| Mode | Path | Key |
| - | - | - |
| `twilio.messages.observations` | `/2010-04-01/Accounts/ACCOUNT_SID/Messages.json` | Message SID |
| `twilio.calls.observations` | `/2010-04-01/Accounts/ACCOUNT_SID/Calls.json` | Call SID |
| `twilio.usage.days.observations` | `/2010-04-01/Accounts/ACCOUNT_SID/Usage/Records/Daily.json` | JSON tuple of account SID, category and day |

For messages or calls, initialize with the chosen mode and limit.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "twilio.messages.observations",
  selection: "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", limit: 10 } }
```

Daily usage also takes one category and an inclusive interval of up to 31
dates. Set the page limit to cover the interval.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "twilio.usage.days.observations",
  selection: "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", collection: "calls",
  start: "2026-10-01", end: "2026-10-31", limit: 31 } }
```

Each page carries up to 100 records and 36 KiB. The app follows the provider's
`PageToken` on the same account and collection path and restarts the walk at the end.
Provider omissions leave earlier observations in place. Subject to Twilio's
retention, messages may include message text and calls include call metadata.
Only the list endpoints are called.

[Messages](https://www.twilio.com/docs/messaging/api/message-resource) · [Calls](https://www.twilio.com/docs/voice/api/call-resource) · [Usage Records](https://www.twilio.com/docs/usage/api/usage-record)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.