---
title: "Metadata and download URL"
method: GET
path: "/attachments/{id}"
tags: ["Attachments"]
---

# Metadata and download URL

`GET /attachments/{id}`

## Request

- Base URL: `https://sending.dev/api/v1`
- URL: `https://sending.dev/api/v1/attachments/{id}`
- Auth: HTTP bearer

Attachment metadata + signed download URL (15 minutes). Required scope: `email:send` or `inbox:send`. An attachment uploaded once is reused across sends: pass `attachments: [{ id }]` to `/emails`, `/messages`, `/campaigns` or `/inboxes/{id}/send`.

## Path parameters

- `id` string, required: Attachment ID.

## Response `200`

Attachment with signed download URL.

- AttachmentDownload
  - `attachment` Attachment, required
    - `id` string, uuid, required
    - `filename` string, required
    - `contentType` string, required
    - `size` integer, required: File size in bytes.
    - `status` 'pending' | 'ready', required: `pending` until the signed upload is confirmed.
    - `createdAt` string, date-time, required
  - `downloadUrl` string, required: Signed download URL (15 minutes).

## Other responses

- `401`: Missing or invalid token.
- `403`: Insufficient scope.
- `404`: Resource not found.

---

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