Aller au contenu

Images

Ce contenu n’est pas encore disponible dans votre langue.

Upload images to AutoRetouch before creating workflow executions. Uploaded images are identified by their content hash (SHA256).

Upload an image file to receive a content hash for use in workflow executions.

POST https://api.autoretouch.com/upload
ParameterTypeRequiredDescription
organizationstringRecommendedOrganization ID to upload to

Multipart form data with:

FieldTypeRequiredDescription
filefileYesImage file to upload
filesizeintegerNoFile size in bytes (recommended)
  • Supported formats: JPEG, PNG, TIFF, WebP
  • Maximum resolution: 10,000 x 10,000 pixels
  • Images larger than 4,096 x 4,096 pixels will be scaled down
Terminal window
curl -X POST "https://api.autoretouch.com/upload?organization={organizationId}" \
-H "Authorization: Bearer {accessToken}" \
-F "file=@image.jpg"

Returns the content hash as plain text:

d4d4a63a03c9543f4f21d474500a95d7bb5704c83c139ddc6e005eaba6d54b22

For high-volume processing:

  • Upload images in parallel (concurrent requests)
  • Separate upload from execution creation
  • The upload endpoint may validate file content before returning, which can slow sequential uploads

Check if an image with a specific content hash has already been uploaded.

HEAD https://api.autoretouch.com/upload
ParameterTypeRequiredDescription
contentHashstringYesSHA256 hash of the image content
organizationstringRecommendedOrganization ID
Terminal window
curl -I "https://api.autoretouch.com/upload?contentHash={contentHash}&organization={organizationId}" \
-H "Authorization: Bearer {accessToken}"
StatusDescription
200 OKImage exists and is available
404 Not FoundImage has not been uploaded or has been removed

Use this endpoint to avoid re-uploading images you’ve already uploaded. This is especially useful when retrying failed executions or reprocessing images.