Download

Access presigned URLs for downloading input or processed images. These endpoints allow you to securely retrieve the input or the processed image with an expiring URL.

Download Output

get

A presigned download link to the image is provided in the response, as well as an expiration time (in Unix time). If the image is not ready, this request will fail with a conflict error. Images are stored for 7 days after the image has been processed.

Authorizations
X-API-KeystringRequired

Authentication via the Topaz generated key in the X-API-Key header.

Path parameters
process_idstring · uuidRequired

The UUID of the image processing job.

Responses
chevron-right
200

Presigned download URL

application/json
download_urlstringRequired

The presigned URL for downloading the image. This URL is temporary and will expire after 1 hour.

Example: https://<...>/d7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b?<presigned_headers>
head_urlstringRequired

The presigned URL for fetching the metadata of the image's file. Useful for retrieving the image's size before download. This URL is temporary and will expire after 1 hour.

Example: https://<...>/d7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b?<presigned_headers>
expiryintegerRequired

The expiration time (in Unix epoch) of the presigned download link, set as 1 hour after download link generation. After this time, the link will no longer be valid.

Example: 1617220000
get
/download/{process_id}

Download Input

get

A presigned download link to the input image is provided in the response, as well as an expiration time (in Unix time). Input images are stored for 7 days after the image has been uploaded.

Authorizations
X-API-KeystringRequired

Authentication via the Topaz generated key in the X-API-Key header.

Path parameters
process_idstring · uuidRequired

The UUID of the image processing job.

Responses
chevron-right
200

Presigned download URL

application/json
download_urlstringRequired

The presigned URL for downloading the image. This URL is temporary and will expire after 1 hour.

Example: https://<...>/d7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b?<presigned_headers>
head_urlstringRequired

The presigned URL for fetching the metadata of the image's file. Useful for retrieving the image's size before download. This URL is temporary and will expire after 1 hour.

Example: https://<...>/d7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b?<presigned_headers>
expiryintegerRequired

The expiration time (in Unix epoch) of the presigned download link, set as 1 hour after download link generation. After this time, the link will no longer be valid.

Example: 1617220000
get
/download/input/{process_id}

Last updated