Threads

Get Attachment

CLI:

agentmail threads get-attachment --thread-id <thread_id> --attachment-id <attachment_id>
get/v0/threads/{thread_id}/attachments/{attachment_id}

Request

  • Base URL
    https://api.agentmail.to
  • URL
    https://api.agentmail.to/v0/threads/{thread_id}/attachments/{attachment_id}
  • Auth
    HTTP bearer

Path parameters

thread_idstring required

ID of thread.

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.

Changes

No recorded changes to this operation across all 1 revision of this API.