> ## Documentation Index
> Fetch the complete documentation index at: https://docs.imperial.gay/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Access URL (Private)

> Create a short-lived access URL for a private upload

## Request

### Headers

<ParamField header="Authorization" type="string" required>
  Your API key in the format: `Bearer imperial_live_xxxxxxxxxxxxx`
</ParamField>

### Path Parameters

<ParamField path="id" type="string" required>
  Upload ID
</ParamField>

## Response

<ResponseField name="accessUrl" type="string">
  A short-lived URL that can be viewed even if the upload is Private
</ResponseField>

<ResponseField name="expiresAt" type="string|null">
  ISO timestamp when the URL expires (or `null` if not private)
</ResponseField>

## Example

```bash theme={null}
curl -X POST "https://api.imperial.gay/images/6987cd047baba11ee0f66d98/access-url" \
  -H "Authorization: Bearer imperial_live_xxxxxxxxxxxxx"
```
