# Twilio

> Connect Twilio to sanda: what to prepare, the fields the connection form asks for, and how its data lands in your warehouse.

## Connect Twilio

:::steps
1. **Open the catalogue.** In the console, go to **Data · Connections** and press **New connection**.
2. **Choose Twilio.** It is listed under product and operations; you can also search for it by name.
3. **Fill in the form.** Enter the fields below. Credentials go straight to sanda’s sync engine and are never stored in sanda’s database.
4. **Choose what to sync.** Pick the streams you want, and a sync mode for each. See [choose what to sync](https://docs.sanda-os.com.au/connections/choose-streams).
5. **Run the first sync.** sanda tests the connection, then lands each stream as a table in your warehouse.
:::

## Configuration fields

What the connection form asks for. Required fields are marked; the rest are optional.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| **Account ID** | string, secret | Yes | Twilio account SID. |
| **Auth Token** | string, secret | Yes | Twilio Auth Token. |
| **Replication Start Date** | string | Yes | UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated. |
| **Lookback window** | integer | No | How far into the past to look for records. (in minutes). Default `0`. |
| **Number of concurrent threads** | integer | No | The number of worker threads to use for the sync. Default `3`. |
| **Slice Step Duration** | string | No | The time window size for each data slice when syncing incremental streams. Smaller windows may help avoid timeouts for accounts with large data volumes. One of `P1D`, `P1W`, `P1M`, `P1Y`. Default `P1M`. |

## Related

:::links
- [Sync modes](https://docs.sanda-os.com.au/connections/sync-modes): How sanda reads each stream on every run.
- [Sync schedules](https://docs.sanda-os.com.au/connections/schedules): How often a connection runs.
- [Allowlist sanda’s address](https://docs.sanda-os.com.au/connections/allowlist): For a system behind a firewall.
- [Troubleshoot connections](https://docs.sanda-os.com.au/connections/troubleshooting): What an error means and how to fix it.
:::
