---
title: "Download sent email attachments"
method: GET
path: "/sent-emails/{id}/attachments.tar.gz"
tags: ["Sending"]
---

# Download sent email attachments

`GET /sent-emails/{id}/attachments.tar.gz`

## Request

- Base URL: `https://api.primitive.dev/v1`
- URL: `https://api.primitive.dev/v1/sent-emails/{id}/attachments.tar.gz`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `token`

Downloads retained inline attachments as a gzip-compressed tar archive. Authenticate with an organization API key, an authorized organization OAuth token, or a signed sent-attachment download token. Address-bound agent connection keys and Function credentials are not permitted. Archive member names match attachments[].tar_path in sent-email detail. Legacy sends may have no archive; offloaded payload files are not included. Discarded content cannot be downloaded.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `token` string

## Response `200`

Retained inline attachments archive

## Other responses

- `400`: Invalid request parameters
- `401`: Invalid or missing API key
- `403`: Authenticated caller lacks permission for the operation
- `404`: Resource not found
- `410`: Email content has been discarded.
- `429`: Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.
- `500`: The retained attachment archive could not be retrieved or verified.

## Changes

> 32 revisions in range; 1 not diffed.

- **2026-10-21** `0360ea8d4f3d`: 91 warning
  - added the new `agent_changed` enum value to the `error/code` response property for the response status `400`
  - added the new `agent_changed` enum value to the `error/code` response property for the response status `401`
  - added the new `agent_changed` enum value to the `error/code` response property for the response status `403`
  - added the new `agent_changed` enum value to the `error/code` response property for the response status `404`
  - …87 more
- **2026-10-21** `5279a7bed7ac`: 77 warning
  - added the new `archive_busy` enum value to the `error/code` response property for the response status `400`
  - added the new `archive_busy` enum value to the `error/code` response property for the response status `401`
  - added the new `archive_busy` enum value to the `error/code` response property for the response status `403`
  - added the new `archive_busy` enum value to the `error/code` response property for the response status `404`
  - …73 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/primitive/apis/primitive-api/changes/sent-emails/:id/attachments.tar.gz/get.md)

---

[API](https://skmtc.dev/primitive/apis/primitive-api.md) - [All operations](https://skmtc.dev/primitive/apis/primitive-api/llms.txt) - [OpenAPI document](https://skmtc.dev/primitive/apis/primitive-api/revisions/bce409c97acb?raw)
