Skip to main content
POST
/
branches
/
{branchId}
/
storage
/
presign
/
download
Generate presigned download URL
curl --request POST \
  --url https://api.specular.dev/branches/{branchId}/storage/presign/download \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>"
}
'
{
  "url": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication with API key (format: Bearer sk_xxx)

Path Parameters

branchId
string
required

Body

application/json
key
string
required

File key/path

Response

Presigned URL generated

Presigned URL generated

url
string
expiresAt
string<date-time>