---
title: "Get a registration attachment"
canonical: "https://bird.com/docs/api/reference/get-compliance-attachment"
---

# Get a registration attachment

`GET /v1/compliance/attachments/{attachment_id}`

Downloads the raw bytes of a registration attachment, returned with its own content type and a Content-Disposition header carrying its filename.

## Code samples

**TypeScript**

```ts
const file = await bird.complianceAttachments.get("tca_01krdgeqcxet5s7t44vh8rt9mg");
console.log(file.filename, file.contentType, file.data.length);
```

Examples: [TypeScript](/docs/api/reference/get-compliance-attachment.ts.md) · [Python](/docs/api/reference/get-compliance-attachment.py.md) · [Go](/docs/api/reference/get-compliance-attachment.go.md) · [PHP](/docs/api/reference/get-compliance-attachment.php.md) · [CLI](/docs/api/reference/get-compliance-attachment.cli.md) · [MCP](/docs/api/reference/get-compliance-attachment.mcp.md) · [cURL](/docs/api/reference/get-compliance-attachment.curl.md)

## Path parameters

- `attachment_id` (string): Attachment ID.

## Related resources

- [Should I use a Bird SDK or call the API directly?](/explained/platform/should-i-use-an-sdk-or-call-the-api-directly) (answer)
- [Build your first integration](/learn/paths/integration) (course)
- [Send your first email](/docs/get-started/send-your-first-email) (docs)

[Get an implementation brief](/learn/workspace?topic=api-basics)
