cloadyDocs
API ReferenceEndpointsWorkspaces

Download an attachment or message

Downloads an attachment, or a whole message as .eml, by the `blobId` runEmailJmap returned, under the file name `name`. The blob must belong to that mailbox. `accept` sets the content type. The caller must be able to read the mailbox: admins read every mailbox, other members the mailboxes assigned to them. An API token needs the `account` capability.

GET
/api/workspaces/{workspaceSlug}/mail/jmap/download/{accountId}/{blobId}/{name}
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
accountId*string
blobId*string
name*string

Query Parameters

accept?string

Content type to send the file with; application/octet-stream when absent

Lengthlength <= 200

Response Body

application/octet-stream

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/workspaces/string/mail/jmap/download/string/string/string"
"string"