Skip to content

Create Download Url

POST
/v1/documents/{doc_id}/download-url
curl --request POST \
--url https://api.uavcrew.ai/v1/documents/example/download-url \
--header 'Authorization: Bearer <token>'

Mint a short-lived download URL for a document owned by the caller’s tenant.

404 if the document doesn’t exist or belongs to another org/tenant (indistinguishable on purpose), 410 if it has expired.

doc_id
required
Doc Id
string

Successful Response

Media typeapplication/json

Example generated

example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}