Get Message Attachment¶
Retrieving a Message Attachment¶
This endpoint allows you to read the attachment of a message as binary content.
Required scope
Value | Description |
---|---|
open:ticket-messages-seller:read |
Allows read access to API resources. |
Request parameters
Field | Type | Description | Required |
---|---|---|---|
ticket_uuid |
string | Key to identify the ticket. | Yes |
message_uuid |
string | Key to identify the message. | Yes |
attachment_uuid |
string | Key to identify the attachment. | Yes |
Request:
curl -X 'GET' \
'https://api.magalu.com/seller/v0/tickets/{ticket_uuid}/messages/
{message_uuid}/attachments/{attachment_uuid}' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <Access Token>' \
-H 'Content-Type: application/json' \
Response:
The binary file will be returned as a response, with the correct header according to the file type.
Return codes
Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |