---
title: "Get one stored email attachment by id, returning metadata plus the attachment bytes as base64."
method: GET
path: "/v1/email/attachments/{attachment_id}"
tags: ["email"]
---

# Get one stored email attachment by id, returning metadata plus the attachment bytes as base64.

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

## Request

- Base URL: `https://api.kody.codes`
- URL: `https://api.kody.codes/v1/email/attachments/{attachment_id}`
- Auth: HTTP bearer

Get one stored email attachment by id, returning metadata plus the attachment bytes as base64.

Org permission: `email:read`.

## Path parameters

- `attachment_id` string, required

## Response `200`

Success.

- object
  - `id` string, required
  - `message_id` string, required
  - `filename` string, nullable, required
  - `content_type` string, nullable, required
  - `content_id` string, nullable, required
  - `disposition` string, nullable, required
  - `size` number, required
  - `data_base64` string, required

## Other responses

- `400`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `401`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `403`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `404`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `409`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `413`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `429`: Too many requests (edge IP/token limit) or an entitlement / plan-cap limit. Wait at least `Retry-After` seconds before retrying.
- `500`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `503`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `default`: Error envelope `{ "error": { "code", "message", "details"? } }`.

---

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