v1

latestOpenAPI 3.0.1raw.githubusercontent.com2026-04-2099201202.6 KB
Drafts

Get Attachment

CLI:

agentmail drafts get-attachment --draft-id <draft_id> --attachment-id <attachment_id>
get/v0/drafts/{draft_id}/attachments/{attachment_id}

Path parameters

draft_idstring required

ID of draft.

attachment_idstring required

ID of attachment.

Response

attachment_idstring required

ID of attachment.

filenamestring

Filename of attachment.

sizeinteger required

Size of attachment in bytes.

content_typestring

Content type of attachment.

content_disposition'inline' | 'attachment'

Content disposition of attachment.

content_idstring

Content ID of attachment.

download_urlstring required

URL to download the attachment.

expires_atstring date-time required

Time at which the download URL expires.