threads

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

Response with status 200

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

Signed HTTPS CDN URL to download the attachment bytes. Retrieve a fresh URL when needed rather than storing it permanently.

text_urlstring

Signed HTTPS CDN URL to download extracted plain text, when available. Omitted when no extracted text is available. Expires at the same time as download_url.

expires_atstring date-time required

Time at which download_url and text_url (when present) expire. Retrieve the attachment again to obtain fresh URLs.

Changes

    • info

      the endpoint scheme security Bearer was added to the API

    • info

      the endpoint scheme security BearerAuth was removed from the API

    • info

      api tag threads added

    • info

      api tag Threads removed

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status