Skip to main content
POST
https://api.imperial.gay
/
images
/
:id
/
access-url
Create Access URL (Private)
curl --request POST \
  --url https://api.imperial.gay/images/:id/access-url \
  --header 'Authorization: <authorization>'
{
  "accessUrl": "<string>",
  "expiresAt": {}
}

Request

Headers

Authorization
string
required
Your API key in the format: Bearer imperial_live_xxxxxxxxxxxxx

Path Parameters

id
string
required
Upload ID

Response

accessUrl
string
A short-lived URL that can be viewed even if the upload is Private
expiresAt
string|null
ISO timestamp when the URL expires (or null if not private)

Example

curl -X POST "https://api.imperial.gay/images/6987cd047baba11ee0f66d98/access-url" \
  -H "Authorization: Bearer imperial_live_xxxxxxxxxxxxx"