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

# Attachments

> Process and download attachments extracted from incoming emails.

# Inbound Attachments

Attachments included with incoming emails are uploaded to secure, encrypted storage and delivered as temporary presigned URLs in the webhook payload.

## Accessing Attached Files

```typescript theme={null}
const attachment = payload.data.attachments[0];
console.log(attachment.filename);    // e.g. "contract.pdf"
console.log(attachment.content_type);// e.g. "application/pdf"
console.log(attachment.size);        // bytes
console.log(attachment.download_url);// Temporary presigned S3 download link
```


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