---
title: "Download one sent email attachment"
method: GET
path: "/sent-emails/{id}/attachments/{part_index}"
tags: ["Sending"]
---

# Download one sent email attachment

`GET /sent-emails/{id}/attachments/{part_index}`

## Request

- Base URL: `https://api.primitive.dev/v1`
- URL: `https://api.primitive.dev/v1/sent-emails/{id}/attachments/{part_index}`
- Auth: HTTP bearer

Returns the original decoded bytes of one retained attachment. Authenticate with an organization API key, an authorized organization OAuth token, or an address-bound agent connection key. Connected agents can read only their own outgoing sender attachments. Function credentials and download query tokens are not supported. Duplicate filenames are distinguished by part_index. The part limit is 31457280 bytes; the complete archive must fit 67108864 compressed and decoded bytes and 1024 entries including metadata. Metadata headers are limited to 16384 bytes each and 262144 bytes total; resolved archive paths are limited to 4096 UTF-8 bytes. Preparation has a 15-second deadline. A small part in an oversized archive can exceed these limits. This does not parse interactions or certify sender identity. Discarded content is unavailable.

## Response `200`

Original decoded attachment bytes

## Other responses

- `400`: Invalid request parameters
- `401`: Invalid or missing API key
- `403`: Authenticated caller lacks permission for the operation
- `404`: Resource not found
- `409`: attachment_changed: email attachment metadata changed during the read. Refresh email detail before retrying.
- `410`: content_discarded: email content has been discarded or discard is requested.
- `413`: attachment_limit_exceeded: the part or archive exceeds a documented resource limit. Retrying this content will not help.
- `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.
- `502`: attachment_integrity_failed: retained content failed archive, part digest or structure verification.
- `503`: attachment_not_ready: archive materialization is pending; or attachment_storage_unavailable: storage is temporarily unavailable. Retry-After advises when to retry.

## Changes

> 32 revisions in range; 1 not diffed.

- **2026-10-21** `0360ea8d4f3d`: 130 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`
  - …126 more
- **2026-10-21** `5279a7bed7ac`: 110 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`
  - …106 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/primitive/apis/primitive-api/changes/sent-emails/:id/attachments/:part_index/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)
