Ritto Mail Docs

/emails/{id}/attachments/{attachment_id}

GET
/emails/{id}/attachments/{attachment_id}

Path Parameters

id*string
Formatuuid
attachment_id*string

Attachment id from the list

Length1 <= length <= 64

Response Body

One attachment, file bytes inline as base64

application/json
  1. response
object*"attachment"
Value in"attachment"
id*string

Attachment id: stable for this email, derived from its position in the send

Formatuuid
filename*string
size*integer

Decoded file size in bytes

content_type*string

Media type given at send (application/octet-stream if none)

content_disposition*"attachment"
Value in"attachment"
content_id*unknown

Always null: inline (cid) attachments are not supported

content*string

File bytes, base64-encoded

download_url*unknown

Always null: the file is returned inline in content instead of a signed link

expires_at*unknown
Example Request
curl -X GET 'https://api.ritto.email/emails/497f6eca-6276-4993-bfeb-53cbbbba6f08/attachments/string'
Example Response
{  "object": "attachment",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "filename": "string",  "size": 0,  "content_type": "string",  "content_disposition": "attachment",  "content_id": null,  "content": "string",  "download_url": null,  "expires_at": null}