Workflow API
All Looply Workflow related API endpoints
triggerWorkflow
POST
https://api.looply.io/v2/workflows/triggerworkflow/{workflow_id}/{workflow_version}
The triggerWorkflow
endpoint initiates the execution of a specified workflow. When called, this endpoint triggers the workflow process, allowing you to automate various tasks and operations defined within the workflow. This endpoint can receive a JSON body payload to be passed to the workflow execution. A looply_execution_id
will be returned on successful trigger of the workflow.
AWS IP address for whitelisting Looply API calls: 52.208.220.68
Path Parameters
workflow_id*
string
id of the workflow
workflow_version
string
version of the workflow
Headers
x-api-key*
string
Looply API Key
resumeWorkflow
POST
https://api.looply.io/v2/workflows/resumeWorkflow/{process_id}
Manually resume workflows depending on the process_id supplied. Resuming a workflow can contain any JSON stringified body payload, source
is the only protected attribute.
Path Parameters
process_id*
string
process_id
supplied to the triggerworkflow
or the looply_execution_id
if you did not supply one.
Headers
x-api-key*
string
Looply API Key
Request Body
payload*
object
Payload for workflow
payload.source*
string
Source of request - must be either SAP
or TEAMS
Example Body
terminateWorkflow
POST
https://api.looply.io/v2/workflows/terminateWorkflow/{process_id}
Terminate an ongoing execution of your workflow - supports providing a termination reason.
Path Parameters
process_id*
string
process_id
supplied to the triggerworkflow
or the looply_execution_id
if you did not supply one.
Headers
x-api-key*
string
Looply API Key
Request Body
payload*
object
Payload for workflow
payload.termination_reason
string
Optional reason for termination - defaults to "Workflow execution terminated by user."
Example Body
toggleScheduledWorkflow
POST
https://api.looply.io/v2/workflows/toggleScheduledWorkflow
Pause and resume scheduled workflows.
Headers
x-api-key
string
Looply API Key
Request Body
workflow_id
String
id of the workflow
workflow_version
Number
version of the workflow
action
String
PAUSE
or PLAY
Example Payload:
getWorkflowExecutionById
GET
https://api.looply.io/v2/workflows/getWorkflowExecutionById
Returns the current state and logs for the workflow execution.
Query Parameters
workflow_id*
String
Id of the workflow
workflow_execution_id*
String
Id for the workflow execution
Headers
x-api-key*
String
Looply API Key
Example Payload:
getWorkflowExecutionHistory
GET
https://api.looply.io/v2/workflows/getWorkflowExecutionHistory
Returns a list of workflow executions. Will return a lastKey
attribute. Use this to get the next page of data.
Limit can be added to the request, 30 is the max.
Query Parameters
workflow_id*
string
id of the workflow
limit
string
Number of items to return per page. Defaults to 20
workflow_execution_id
string
Pagination Key from the lastKey
attribute.
Headers
x-api-key*
string
Looply API Key
Example Payload:
getOrganizationExecutions
GET
https://api.looply.io/v2/workflows/getOrganizationExecutions
Returns a list of all the workflow executions for an organization. Will return a lastKey
attribute. Use this to get the next page of data.
Limit can be added to the request, 30 is the max.
Query Parameters
limit
string
Number of items to return per page. Defaults to 20
workflow_id
string
Pagination Key from the lastKey
attribute
workflow_execution_id
string
Pagination Key from the lastKey
attribute
Example Payload:
getWorkflowById
GET
https://api.looply.io/v2/workflows/getWorkflowById
Returns all data for a Looply Workflow
Query Parameters
workflow_id*
string
Id for the workflow
workflow_version*
string
Version of the workflow
Headers
x-api-key*
string
Looply API Key
Example Payload:
getOrganizationWorkflows
GET
https://api.looply.io/v2/workflows/getOrganizationWorkflows
Returns a list organization workflows. Will return a lastKey
attribute. Use this to get the next page of data.
Limit can be added to the request, 30 is the max.
Query Parameters
limit
string
Number of items to return per page. Default 20
workflow_id
string
Pagination Key from the lastKey
attribute.
workflow_version
string
Pagination Key from the lastKey
attribute.
Headers
x-api-key*
string
Looply API Key
Example Payload:
getWorkflowSchemaById
GET
https://api.looply.io/v2/workflows/getWorkflowSchemaById
Returns the data schema for a workflow
Query Parameters
workflow_id*
string
Id of the workflow
workflow_version*
string
Version of the workflow
Headers
x-api-key*
string
Looply API Key
Example Payload:
Last updated