Image URLs
An image field takes a URL string. gotoHuman downloads the file and stores a copy on our CDN.Multiple images (list field)
To show several images, use a list field whose item template contains one image field. Scalar list — each array element is an image URL:Video URLs
A video field also takes a URL string. Videos are downloaded and cached on our CDN the same way as images.Base64-encoded images
Send a base64 string as the image field value and setisBase64 in that field’s request config. Both raw base64 and data-URL form (data:image/jpeg;base64,...) are supported.
isBase64 under listItemConfig for the image child field (use the child field’s id from your item template):
Base64 images are replaced with the CDN URL when the request is ingested. URL-based images keep the original URL in
data and expose the CDN URL via fileCache in the response webhook (see below).File uploads (binary)
Upload binary files before creating a review request: Endpoint:https://api.gotohuman.com/uploadFilesMethod:
POSTHeaders:
x-api-key: <your API key>Content-Type:
multipart/form-data
Upload files as form fields. Optionally include a config form field with image resize options (see Image editing below).
Response:
downloadURL values in your review request data. Maximum file size is 20 MB.
Image editing
Apply on-the-fly resizing and cropping when images are cached. Use this when downstream steps (for example video generation from a reference image) or publish targets (for example social media) need a specific size or aspect ratio. Pass resize options underconfig.fields.<fieldId>.transform:
transform shape under listItemConfig for the image child field:
width,height: Target dimensions in pixelsfit: How to fit the image —cover,contain,fill,inside,outsideposition: Position when usingcoverorcontain—top,right top,right,right bottom,bottom,left bottom,left,left top,centrebackground: Background color forcontainfit (e.g."#ffffff","red",{r: 255, g: 0, b: 0, alpha: 1})withoutEnlargement: Boolean to prevent upscalingwithoutReduction: Boolean to prevent downscaling
CDN URLs in webhooks
When a review is completed, the response webhook includes your field values inreviewResult.data. For URL-based images and videos, the original URL is kept in data and the CDN URL is provided in a top-level fileCache map:
fileCache to get the persistent CDN URL for approved workflow steps.