Skip to main content
GET
Download Attachment
Streams the binary content of a message attachment. Take message_id and attachment_id from the attachments[] array inside message objects returned by Chat Messages. Reference price: $0.005 USD per successful request.

Example

Path parameters and required query parameters are documented in the operation reference. All responses are JSON; attachment download streams binary content.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

message_id
string
required

Message id.

attachment_id
string
required

Attachment id from the message's attachments array.

Query Parameters

account_id
string
required

Connected account id.

Response

Success

object
string