Skip to content

Attachments

Attachments belong to a message. Use these endpoints only for files you expect in a controlled test or workflow.

GET /api/v1/mailboxes/{mailbox_id}/messages/{message_id}/attachments

List attachments stored with a message.

Terminal window
curl https://tempmailhush.com/api/v1/mailboxes/{mailbox_id}/messages/{message_id}/attachments \
-H "X-API-Key: sk-your_api_key"
GET /api/v1/mailboxes/{mailbox_id}/messages/{message_id}/attachments/{attachment_id}

Download one attachment from a message.

Terminal window
curl https://tempmailhush.com/api/v1/mailboxes/{mailbox_id}/messages/{message_id}/attachments/{attachment_id} \
-H "X-API-Key: sk-your_api_key"