Skip to content

Retrieve attachment metadata

Request

Returns metadata for a file uploaded in a message, including its name, type, and size.

Security
BearerAuth
Headers
X-Affiliate-Idintegerrequired

Include here your Affiliate identifier number

Bodyapplication/json
conversationstringrequired

The unique identifier of the conversation that includes the attachment.

accommodationstringrequired

The unique identifier of the property associated with the conversation.

attachmentstringrequired

The unique identifier of the attachment whose metadata is being requested.

curl -i -X POST \
  https://demandapi.booking.com/3.1/messages/attachments/metadata \
  -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"
  }'

Responses

Successful response.

Bodyapplication/json
request_idstring

Uniquely identifies the request. Please provide this identifier when contacting support.

dataobject
Response
{ "request_id": "fec1a9bb-9c85-42fc-a109-3707e1ed4de7", "data": { "metadata": {} } }