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

# Email

> Index your email history in an AI Search collection.

The `email` source indexes your account's email history.

## Where this data comes from

Email records are produced by the [Telnyx Email API](https://developers.telnyx.com/docs/messaging/email/overview.md): mail your account sends and receives through it becomes the email history this source indexes.

## Attach the Source

```bash theme={null}
curl -X POST https://api.telnyx.com/v2/ai/collections/{uuid}/sources \
  -H "Authorization: Bearer $TELNYX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "source_type": "email" }'
```

There is no per-source configuration. Narrow searches to email with `sources=email` -- see [Search](https://developers.telnyx.com/docs/ai-search/searching.md).

***

See all source types on the [Sources overview](https://developers.telnyx.com/docs/ai-search/sources.md).
