Skip to content

Workflows

Workflows define how images are processed. Each workflow contains a series of components (input, processing steps, export) and has a price in credits.

Get all saved workflows for an organization.

GET https://api.autoretouch.com/v1/workflow
ParameterTypeDefaultDescription
organizationstring-Organization ID (recommended)
limitinteger50Maximum results per page
offsetinteger0Number of results to skip
Terminal window
curl -X GET "https://api.autoretouch.com/v1/workflow?organization={organizationId}&limit=50&offset=0" \
-H "Authorization: Bearer {accessToken}"
{
"entries": [
{
"id": "a0f0b604-85c0-45fd-85cf-4428bb3941ba",
"version": "cd1be60e-6574-44aa-b1cf-f49f9028d56d",
"name": "Background Removal",
"date": "2020-03-13T09:26:37.705284Z",
"author": {
"id": "google-oauth2|123456789",
"firstName": null,
"lastName": null,
"email": null
},
"workflowComponents": [
{
"type": "input",
"label": "input",
"settings": {}
},
{
"type": "export",
"label": "export",
"settings": {}
}
],
"executionPrice": 10
}
],
"total": 1
}
FieldTypeDescription
entriesarrayList of workflows
totalintegerTotal number of workflows
FieldTypeDescription
idstringWorkflow ID (UUID)
versionstringCurrent workflow version ID
namestringDisplay name
datestringLast modified timestamp (ISO 8601)
authorobjectCreator information
workflowComponentsarrayList of processing components
executionPriceintegerCost in credits per execution

Get details of a specific workflow including all component settings.

GET https://api.autoretouch.com/v1/workflow/{workflowId}
ParameterTypeDescription
workflowIdstringWorkflow ID
ParameterTypeDescription
organizationstringOrganization ID (recommended)
Terminal window
curl -X GET "https://api.autoretouch.com/v1/workflow/{workflowId}?organization={organizationId}" \
-H "Authorization: Bearer {accessToken}"
{
"id": "a0f0b604-85c0-45fd-85cf-4428bb3941ba",
"version": "cd1be60e-6574-44aa-b1cf-f49f9028d56d",
"name": "Background Removal",
"date": "2020-03-13T09:26:37.705284Z",
"author": {
"id": "google-oauth2|123456789",
"firstName": null,
"lastName": null,
"email": null
},
"workflowComponents": [
{
"type": "input",
"label": "input",
"settings": {}
},
{
"type": "export",
"label": "export",
"settings": {
"targetFormat": "PNG",
"targetMode": "RGBA"
}
}
],
"executionPrice": 10
}

Each workflow contains a sequence of components:

TypeDescription
inputImage input configuration
exportOutput format settings (PNG, JPEG, etc.)
Other typesProcessing components (background removal, color correction, etc.)

The settings object within each component contains component-specific configuration.

Workflow not found or you don’t have access:

{
"timestamp": "2020-09-07T13:09:37.000+00:00",
"status": 404,
"error": "Not Found",
"message": "",
"path": "/v1/workflow/invalid-id"
}