---
title: "Retrieve attachment metadata"
method: POST
path: "/messages/attachments/metadata"
tags: ["Attachments"]
---

# Retrieve attachment metadata

`POST /messages/attachments/metadata`

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

## Headers

- `X-Affiliate-Id` integer, required

## Request body

- object
  - `conversation` string, required — The unique identifier of the conversation that includes the attachment.
  - `accommodation` string, required — The unique identifier of the property associated with the conversation.
  - `attachment` string, required — The unique identifier of the attachment whose metadata is being requested.

## Response `200`

Successful response.

- object
  - `request_id` string — Uniquely identifies the request. Please provide this identifier when contacting support.
  - `data` object
    - `metadata` object
      - `file_size` integer — The size of the attachment (up to 1MB)
      - `file_name` string — Original name of the file, including extension.
      - `file_type` string — MIME type of the file (e.g., image/jpeg).

---

[API](https://skmtc.net/booking/apis/booking-com-demand-api.md) · [All operations](https://skmtc.net/booking/apis/booking-com-demand-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/booking/booking-com-demand-api/revisions/e5f3dccae7ca/schema)
