API REFERENCES/Version 3.1//
- Download a message attachment
Upload an attachment
Retrieve attachment metadata
Download a message attach...
Retrieves a file that was attached to a message. The response includes the file's content as a base64-encoded string.
Security
BearerAuth
- Production environmenthttps://demandapi.booking.com/3.1/messages/attachments/download
- Sandbox environmenthttps://demandapi-sandbox.booking.com/3.1/messages/attachments/download
curl -i -X POST \
https://demandapi.booking.com/3.1/messages/attachments/download \
-H 'Authorization: Bearer <YOUR_string_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Affiliate-Id: 0' \
-d '{
"conversation": "8586a789-44f4-5521-9f27-f5efd097cba6",
"accommodation": "6819547",
"attachment": "9635be40-1dc6-11f0-8893-0130f0cdef6d"
}'Response
{ "request_id": "773e2c0d-1ab3-449b-b88a-3d6b5ce09ae7", "data": { "conversation": "8586a789-44f4-5521-9f27-f5efd097cba6", "file_content": "/9j/4AAQSkZJRgABAQACWAJYAAD/2wCEAAgGBgc..." } }