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
Name | Type | Description |
---|---|---|
workflow_id* | string | id of the workflow |
workflow_version | string | version of the workflow |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
process_id* | string |
|
Headers
Name | Type | Description |
---|---|---|
x-api-key* | string | Looply API Key |
Request Body
Name | Type | Description |
---|---|---|
payload* | object | Payload for workflow |
payload.source* | string | Source of request - must be either |
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
Name | Type | Description |
---|---|---|
process_id* | string |
|
Headers
Name | Type | Description |
---|---|---|
x-api-key* | string | Looply API Key |
Request Body
Name | Type | Description |
---|---|---|
payload* | object | Payload for workflow |
payload.termination_reason | string | Optional reason for termination - defaults to |
Example Body
toggleScheduledWorkflow
POST
https://api.looply.io/v2/workflows/toggleScheduledWorkflow
Pause and resume scheduled workflows.
Headers
Name | Type | Description |
---|---|---|
x-api-key | string | Looply API Key |
Request Body
Name | Type | Description |
---|---|---|
workflow_id | String | id of the workflow |
workflow_version | Number | version of the workflow |
action | String |
|
Example Payload:
getWorkflowExecutionById
GET
https://api.looply.io/v2/workflows/getWorkflowExecutionById
Returns the current state and logs for the workflow execution.
Query Parameters
Name | Type | Description |
---|---|---|
workflow_id* | String | Id of the workflow |
workflow_execution_id* | String | Id for the workflow execution |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
workflow_id* | string | id of the workflow |
limit | string | Number of items to return per page. Defaults to |
workflow_execution_id | string | Pagination Key from the |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
limit | string | Number of items to return per page. Defaults to |
workflow_id | string | Pagination Key from the |
workflow_execution_id | string | Pagination Key from the |
Example Payload:
getWorkflowById
GET
https://api.looply.io/v2/workflows/getWorkflowById
Returns all data for a Looply Workflow
Query Parameters
Name | Type | Description |
---|---|---|
workflow_id* | string | Id for the workflow |
workflow_version* | string | Version of the workflow |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
limit | string | Number of items to return per page. Default 20 |
workflow_id | string | Pagination Key from the |
workflow_version | string | Pagination Key from the |
Headers
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
workflow_id* | string | Id of the workflow |
workflow_version* | string | Version of the workflow |
Headers
Name | Type | Description |
---|---|---|
x-api-key* | string | Looply API Key |
Example Payload:
Last updated