# Reference Session Attachments

Source: https://agenta.ai/docs/reference/api/reference-session-attachments

`POST /sessions/attachments/reference`

Base URL: `https://us.cloud.agenta.ai/api` (US cloud), `https://eu.cloud.agenta.ai/api` (EU cloud) or `$AGENTA_HOST/api` (self-hosted). Authentication: `Authorization: ApiKey YOUR_API_KEY`.

Reference Session Attachments

## Request body schema

Content type: `application/json` (required)

- `session_id` (string, required)
- `attachment_ids` (array of string (uuid), required)

## Response schemas

### 200: Successful Response

- `count` (integer) Default: `0`.
- `attachments` (array of object)
  - `attachment_id` (string (uuid), required)
  - `filename` (string, required)
  - `media_type` (string, required)
  - `size` (integer, required)
  - `created_at` (string (date-time), required)

### 422: Validation Error

- `detail` (array of object)
  - `loc` (array of string | integer, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (Context)
