Get Attachment

**CLI:** ```bash agentmail inboxes:messages get-attachment --inbox-id <inbox_id> --message-id <message_id> --attachment-id <attachment_id> ```

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

inbox_idstringRequired
The ID of the inbox.
message_idstringRequired
ID of message.
attachment_idstringRequired
ID of attachment.

Response

This endpoint returns an object.
attachment_idstring
ID of attachment.
sizeinteger
Size of attachment in bytes.
download_urlstring
URL to download the attachment.
expires_atdatetime
Time at which the download URL expires.
filenamestring
Filename of attachment.
content_typestring
Content type of attachment.
content_dispositionenum
Content disposition of attachment.
Allowed values:
content_idstring
Content ID of attachment.

Errors

404
Not Found Error