Mail

Download an attachment

Streams one attachment. Subject to the documented proxy size cap.

GET /v1/messages/:id/attachments/:part

Permission

The key must be granted mail.messages.read

A key without it gets 403 insufficient_scope, with the missing permission named in details.

Returns the file itself, not JSON, with the attachment's own content type. Always served as a download rather than inline, so HTML someone was emailed cannot render on this origin.

Path parameters

Field Type Description
id required string The message.
part required string The part_id from the attachment list.

Request

curl https://api.veruapis.com/v1/messages/:id/attachments/:part \
  -H "Authorization: Bearer vak_live_..."

Response

{
  "data": { ... },
  "meta": { "request_id": "req_01j8z9...", "timestamp": "2026-09-02T10:00:00Z" }
}

A worked example for this endpoint has not been written yet.

Errors

Every failure uses the same shape, with a stable string code you can branch on. See the error reference.

Related

GET /v1/messages/:id/attachments/:part

id
part
Runs the real request against your own workspace. The key is used once and never stored.