# Get a download URL for an attachment

`GET /v1/attachments/{id}/download-url`

A signed URL valid for an hour, usable without a session (e.g. in <img src>).

Scope: `docs:read`.

## Request

```bash
curl "https://api.lydie.co/v1/attachments/01JCQ3V5MZ8G4ZK2X7T9R6N1PB/download-url" \
  -H "Authorization: Bearer $LYDIE_TOKEN"
```

## Path parameters

- `id` (ULID, required)

## Response

- `url` (string, required)
- `expiresAt` (timestamp, required)

```json
{
  "url": "string",
  "expiresAt": "2026-11-12T09:30:00.000Z"
}
```

Errors use the envelope described at https://developers.lydie.co/errors.md.
