Skip to content

List attachments for a message (metadata only)​

GET
/api/v1/messages/{id}/attachments

Returns a bare JSON array, in MIME part order. An id that names no stored message is not an error: it answers 200 with [].

Responses​

Attachment metadata, possibly empty. Sent with Cache-Control: private, max-age=31536000, immutable.

application/json
JSON
[
  
{
  
  
"id": "01HZ9RQABCDEFGHJKMNPQRFILE",
  
  
"message_id": "01HZ9RQABCDEFGHJKMNPQRSTUV",
  
  
"filename": "invoice.pdf",
  
  
"content_type": "application/pdf",
  
  
"content_id": "logo@example.com",
  
  
"size": 48321
  
}
]

Samples​

Powered by VitePress OpenAPI

Released under the MIT / Apache 2.0 License.