Mint Asset URLs
Mint short-lived presigned URLs for a document’s figure crops.
Supply the figure ids (regions[].figure_id) to mint URLs for. When batch
requested, each item degrades on its own: a figure with no crop does not fail
the whole request.
Path parameters
collection_name
document_id
Request
This endpoint expects an object.
asset_ids
Figure ids to mint URLs for, from regions[].figure_id. Stable and safe to store, unlike the URLs they mint. Up to 100; duplicates each return their own item.
ttl_seconds
How long each URL stays valid, in seconds. Default 900 (15 min); min 60, max 604800 (7 days).
Response
Successful Response
collection_name
document_id
asset_urls
expires_at
Earliest expiry across all signed items, so a client can schedule a single refresh instead of one timer per image. Null when nothing was signed.
expires_in_seconds
Same deadline as a duration. Provided because browser clocks are routinely wrong, which makes an absolute-only expiry unreliable.
signed_count
warnings
Errors
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error