Attachments
Get an attachment
Returns metadata for a single attachment, including filename, content type, and size.
Returns metadata for a single attachment, including filename, content type, and size.
Authorization
apiKey x-api-key<token>
In: header
Path Parameters
id*string
Match
^att_[0-9a-hjkmnp-tv-z]{16,24}$Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/attachments/string"{ "id": "string", "messageId": "string", "organizationId": "string", "filename": "string", "contentType": "string", "size": 0, "contentId": "string", "isInline": true, "createdAt": "string"}Get an attachment download URL
Generates a presigned, time-limited download URL for the attachment; expiry is configurable via the expiresIn query parameter.
List message attachments
Returns all attachments for the given message, along with a total count. Use this endpoint to list message attachments through the Samva email API.