drafts

CLI:

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

Request

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

Path parameters

draft_idstring required

ID of draft.

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 drafts added

    • info

      api tag Drafts 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