---
title: "Retrieves metadata about an attachment without downloading its content."
method: GET
path: "/api/attachments/{attachmentId}/metadata"
tags: ["Attachments"]
---

# Retrieves metadata about an attachment without downloading its content.

`GET /api/attachments/{attachmentId}/metadata`

## Request

- Base URL: `https://app.airfocus.com`
- URL: `https://app.airfocus.com/api/attachments/{attachmentId}/metadata`
- Auth: HTTP bearer

Returns the file name, content type, and creation timestamp of an attachment. Useful for clients that need to inspect an attachment (or one of its image derivations) without transferring the payload.

## Path parameters

- `attachmentId` string, uuid, required

## Query parameters

- `width` integer
- `height` integer

## Response `200`

- AttachmentMetadataResponse
  - `contentType` string, required
  - `createdAt` string, date-time, required
  - `fileName` string, required

## Other responses

- `400`: If path parameters are invalid or resource does not exist.
- `default`: If any other error happens.

---

[API](https://skmtc.dev/airfocus/apis/airfocus-api.md) · [All operations](https://skmtc.dev/airfocus/apis/airfocus-api/llms.txt) · [OpenAPI document](https://skmtc.dev/airfocus/apis/airfocus-api/revisions/fc9ccaa2ec6d?raw)
