---
title: "Get attachment options"
method: OPTIONS
path: "/v1/attachments/{attachmentId}/document"
tags: ["v1 - Attachments"]
---

# Get attachment options

`OPTIONS /v1/attachments/{attachmentId}/document`

## Request

- Base URL: `https://light.inc` (the document declares no server; this is the origin it was published from)
- URL: `https://light.inc/v1/attachments/{attachmentId}/document`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Handles CORS preflight requests for attachment document access

## Path parameters

- `attachmentId` string, uuid, required

## Request body

- LightPrincipal
  - `roles` string[]
  - `name` string

## Response `default`

default response

---

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