Automation — API Reference

Run, pause, or stop automation workflows

10 endpoints across 2 tags.

Workflows

GET /automation-brain/diagrams — Get list of workflows

/api-reference/automation#tag/Workflows/operation/getPaginatedDiagrams

Retrieve a paginated list of workflows.


API consumers: Synerise User, Workspace (Business Profile)

API key permission required: AUTOMATON_BRAIN_DIAGRAM_LIST_READ

User role permission required: automation_2_journeys: read

Parameters

NameInTypeRequiredDescription
pagequerynumberoptionalThe selected page
limitquerynumberoptionalSelected page
statusqueryenum<"All", "Recent", "Draft", "Pending", …>optionalFilter workflows by status
sortqueryenum<"Author", "Name", "CreatedTime", "UpdatedTime", …>optionalSort workflows by a property value
sortByquerystringoptionalSort workflows clause
orderqueryenum<"Asc", "Desc">optionalSorting order
searchquerystringoptionalA string to search for in workflow names and email addresses of authors. Workflows that don't match the search aren't returned at all.
directoryIdquerystringoptionalUUID of the directory

Responses

StatusDescription
200 application/jsonA page of workflows
400 application/jsonBad request: input data missing or malformed
401 application/jsonUnauthorized: wrong consumer scope; token missing/expired/invalid; invalid API key; etc.
403 application/jsonForbidden; insufficient permissions
404 application/jsonResource not found

Example request (cURL)

curl --request GET \
  --url 'https://api.synerise.com/automation-brain/diagrams?page=SOME_NUMBER_VALUE&limit=SOME_NUMBER_VALUE&status=SOME_STRING_VALUE&sort=SOME_STRING_VALUE&sortBy=createdTime%3Adesc&order=SOME_STRING_VALUE&search=SOME_STRING_VALUE&directoryId=SOME_STRING_VALUE' \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

GET /automation-brain/v2/diagrams — Get list of workflows

/api-reference/automation#tag/Workflows/operation/getPaginatedDiagramsV2

Retrieve a paginated list of workflows.


API consumers: Synerise User, Workspace (Business Profile)

API key permission required: AUTOMATON_BRAIN_DIAGRAM_LIST_READ

User role permission required: automation_2_journeys: read

Parameters

NameInTypeRequiredDescription
pagequerynumberoptionalThe selected page
limitquerynumberoptionalSelected page
statusqueryenum<"All", "Recent", "Draft", "Pending", …>optionalFilter workflows by status
sortqueryenum<"Author", "Name", "CreatedTime", "UpdatedTime", …>optionalSort workflows by a property value
sortByquerystringoptionalSort workflows clause
orderqueryenum<"Asc", "Desc">optionalSorting order
searchquerystringoptionalA string to search for in workflow names and email addresses of authors. Workflows that don't match the search aren't returned at all.
directoryIdquerystringoptionalUUID of the directory
tagsquerystringoptional

Responses

StatusDescription
200 application/jsonA page of workflows
400 application/jsonBad request: input data missing or malformed
401 application/jsonUnauthorized: wrong consumer scope; token missing/expired/invalid; invalid API key; etc.
403 application/jsonForbidden; insufficient permissions
404 application/jsonResource not found

Example request (cURL)

curl --request GET \
  --url 'https://api.synerise.com/automation-brain/v2/diagrams?page=SOME_NUMBER_VALUE&limit=SOME_NUMBER_VALUE&status=SOME_STRING_VALUE&sort=SOME_STRING_VALUE&sortBy=createdTime%3Adesc&order=SOME_STRING_VALUE&search=SOME_STRING_VALUE&directoryId=SOME_STRING_VALUE&tags=SOME_STRING_VALUE' \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

POST /automation-brain/diagrams/{diagramId}/run — Run/resume workflow

/api-reference/automation#tag/Workflows/operation/runAutomationDiagram

Run a or resume workflow.


API consumers: Synerise User, Workspace (Business Profile)

API key permission required: AUTOMATON_BRAIN_DIAGRAM_EXECUTE

User role permission required: automation_2_journeys: execute

Parameters

NameInTypeRequiredDescription
diagramIdpathstringrequiredUUID of the workflow/diagram.

Request body

application/json · automation-brain-DiagramActionRequest

FieldTypeRequiredDescription
scheduleActionenum<"On", "Off", "NoAction">optional

Responses

StatusDescription
200 text/plainWorkflow run/resumed or was already running
400 application/jsonSee error message for details
401 application/jsonUnauthorized: wrong consumer scope; token missing/expired/invalid; invalid API key; etc.
403 application/jsonForbidden; insufficient permissions
404 application/jsonResource not found

Example request (cURL)

curl --request POST \
  --url https://api.synerise.com/automation-brain/diagrams/%7BdiagramId%7D/run \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"scheduleAction":"On"}'

POST /automation-brain/diagrams/{diagramId}/pause — Pause workflow

/api-reference/automation#tag/Workflows/operation/pauseAutomationDiagram

Pause a workflow.


API consumers: Synerise User, Workspace (Business Profile)

API key permission required: AUTOMATON_BRAIN_DIAGRAM_EXECUTE

User role permission required: automation_2_journeys: execute

Parameters

NameInTypeRequiredDescription
diagramIdpathstringrequiredUUID of the workflow/diagram.

Request body

application/json · automation-brain-DiagramActionRequest

FieldTypeRequiredDescription
scheduleActionenum<"On", "Off", "NoAction">optional

Responses

StatusDescription
200 text/plainDiagram paused or was already paused
400 application/jsonSee error message for details
401 application/jsonUnauthorized: wrong consumer scope; token missing/expired/invalid; invalid API key; etc.
403 application/jsonForbidden; insufficient permissions
404 application/jsonResource not found

Example request (cURL)

curl --request POST \
  --url https://api.synerise.com/automation-brain/diagrams/%7BdiagramId%7D/pause \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"scheduleAction":"On"}'

POST /automation-brain/diagrams/{diagramId}/stop — Stop workflow

/api-reference/automation#tag/Workflows/operation/stopAutomationDiagram

Stop a workflow.

WARNING: A stopped workflow can't be restarted.


API consumers: Synerise User, Workspace (Business Profile)

API key permission required: AUTOMATON_BRAIN_DIAGRAM_EXECUTE

User role permission required: automation_2_journeys: execute

Parameters

NameInTypeRequiredDescription
diagramIdpathstringrequiredUUID of the workflow/diagram.

Responses

StatusDescription
200 text/plainWorkflow stopped or was already stopped
400 application/jsonSee error message for details
401 application/jsonUnauthorized: wrong consumer scope; token missing/expired/invalid; invalid API key; etc.
403 application/jsonForbidden; insufficient permissions
404 application/jsonResource not found

Example request (cURL)

curl --request POST \
  --url https://api.synerise.com/automation-brain/diagrams/%7BdiagramId%7D/stop \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

POST /automation-brain/diagrams/{diagramId}/schedule-on — Enable schedule for workflow

/api-reference/automation#tag/Workflows/operation/scheduleOnAutomationDiagram

Enable schedule for workflow.


API consumers: Synerise User, Workspace (Business Profile)

API key permission required: AUTOMATON_BRAIN_DIAGRAM_EXECUTE

User role permission required: automation_2_journeys: execute

Parameters

NameInTypeRequiredDescription
diagramIdpathstringrequiredUUID of the workflow/diagram.

Responses

StatusDescription
200 text/plainWorkflow scheduled or was already scheduled
400 application/jsonSee error message for details
401 application/jsonUnauthorized: wrong consumer scope; token missing/expired/invalid; invalid API key; etc.
403 application/jsonForbidden; insufficient permissions
404 application/jsonResource not found

Example request (cURL)

curl --request POST \
  --url https://api.synerise.com/automation-brain/diagrams/%7BdiagramId%7D/schedule-on \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

POST /automation-brain/diagrams/{diagramId}/schedule-off — Disable schedule for workflow

/api-reference/automation#tag/Workflows/operation/scheduleOffAutomationDiagram

Disable schedule for workflow.


API consumers: Synerise User, Workspace (Business Profile)

API key permission required: AUTOMATON_BRAIN_DIAGRAM_EXECUTE

User role permission required: automation_2_journeys: execute

Parameters

NameInTypeRequiredDescription
diagramIdpathstringrequiredUUID of the workflow/diagram.

Responses

StatusDescription
200 text/plainWorkflow unscheduled or was already unscheduled
400 application/jsonSee error message for details
401 application/jsonUnauthorized: wrong consumer scope; token missing/expired/invalid; invalid API key; etc.
403 application/jsonForbidden; insufficient permissions
404 application/jsonResource not found

Example request (cURL)

curl --request POST \
  --url https://api.synerise.com/automation-brain/diagrams/%7BdiagramId%7D/schedule-off \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

GET /automation-brain/diagrams/{diagramId}/statistics — Get workflow statistics with node details

/api-reference/automation#tag/Workflows/operation/getDiagramStatistics

Retrieve workflow execution statistics, including node statistics and metadata (name, type).


API consumers: Synerise User, Workspace (Business Profile)

API key permission required: AUTOMATION_STATS_READ

User role permission required: automation_2_journeys: read

Parameters

NameInTypeRequiredDescription
diagramIdpathstringrequiredUUID of the workflow/diagram.
timePeriodqueryenum<"currentHour", "currentDay", "previousHour", "previousDay">optionalTime period for the statistics

Responses

StatusDescription
200 application/jsonDiagram statistics with node info
400 application/jsonSee error message for details
403Insufficient permissions to perform this action
404Diagram not found

Example request (cURL)

curl --request GET \
  --url 'https://api.synerise.com/automation-brain/diagrams/%7BdiagramId%7D/statistics?timePeriod=SOME_STRING_VALUE' \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

GET /automation-brain/diagrams/{diagramId}/blocks/{blockId}/statistics — Get node statistics

/api-reference/automation#tag/Workflows/operation/getBlockStatistics

Retrieve execution statistics for a single block enriched with block metadata (name, type).


API consumers: Synerise User, Workspace (Business Profile)

API key permission required: AUTOMATION_STATS_READ

User role permission required: automation_2_journeys: read

Parameters

NameInTypeRequiredDescription
diagramIdpathstringrequiredUUID of the workflow/diagram.
blockIdpathstringrequiredUUID of the node
timePeriodqueryenum<"currentHour", "currentDay", "previousHour", "previousDay">optionalTime period for statistics

Responses

StatusDescription
200 application/jsonBlock statistics with block info
400 application/jsonSee error message for details
403Insufficient permissions to perform this action
404Diagram or block not found

Example request (cURL)

curl --request GET \
  --url 'https://api.synerise.com/automation-brain/diagrams/%7BdiagramId%7D/blocks/%7BblockId%7D/statistics?timePeriod=SOME_STRING_VALUE' \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

Data Processing Job Logs

GET /morph/logs/automation/{automationWorkflowId}/last-run/with-stages — Get last log with stages

/api-reference/automation#tag/Data-Processing-Job-Logs/operation/getExtendedInfoAboutLastRun

Retrieve the status of a workflow's last run and its stages.

The workflow must contain at least one of the following nodes:

  • Any Data Transformation node
  • Any node that pulls data into a workflow (for example local file, SFTP, Azure Blob Storage)
  • Any node that pushes data out of the workflow (for example SFTP, Pub/Sub)
  • Any node that imports data into Synerise

API consumers: Synerise User, Workspace (Business Profile)

API key permission required: MORPH_JOBS_READ

User role permission required: automation_2_journeys: read

Parameters

NameInTypeRequiredDescription
automationWorkflowIdpathstringrequireddiagramId of the workflow to fetch last job from
limitquerynumberoptionalThe maximum number of log lines in each stage

Responses

StatusDescription
200 application/jsonInformation about last data transformation journey status
401 application/jsonUnauthorized: wrong consumer scope; token missing/expired/invalid; invalid API key; etc.
403 application/jsonForbidden; insufficient permissions
404 application/json workflow doesn't exist; no journeys exist for a workflow; workflow doesn't contain any of the required nodes (returns a "no journeys found" error)

Example request (cURL)

curl --request GET \
  --url 'https://api.synerise.com/morph/logs/automation/%7BautomationWorkflowId%7D/last-run/with-stages?limit=SOME_NUMBER_VALUE' \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

Back to all API categories