Workflow API
Workflow related endpoints, from the Trigger to the Results
triggerworkflow/{workflow_id}/{workflow_version}
POST
https://api.looply.io/v1/workflows/triggerworkflow/{workflow_id}/{workflow_version}
You can supply any (although not required) JSON stringified body to this request. This will return a looply_execution_id
which can be used to get more information on this Looply Workflow.
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 | Your API Key |
{action}/{process_id}
POST
https://api.looply.io/v1/workflows/{action}/{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.
More actions to come...
Path Parameters
Name | Type | Description |
---|---|---|
action* | String |
|
process_id* | String | Process ID supplied to the |
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | Your API Key |
Request Body
Name | Type | Description |
---|---|---|
source | String | Allowed sources |
toggleScheduledWorkflow
POST
https://api.looply.io/v1/workflows/toggleScheduledWorkflow
Pause and resume scheduled workflows.
Headers
Name | Type | Description |
---|---|---|
x-api-key | String | Your 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/v1/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 | Your API Key |
Example Payload:
getWorkflowExecutionHistory
GET
https://api.looply.io/v1/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. Default 20 |
workflow_execution_id | String | Pagination Key from the |
Headers
Name | Type | Description |
---|---|---|
x-api-key* | String | Your API Key |
Example Payload:
getOrganizationExecutions
GET
https://api.looply.io/v1/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. Default 20 |
workflow_id | String | Pagination Key from the |
workflow_execution_id | String | Pagination Key from the |
Example Payload:
getWorkflowById
GET
https://api.looply.io/v1/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 | Your API Key |
Example Payload:
getOrganizationWorkflows
GET
https://api.looply.io/v1/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 | Your API Key |
Example Payload:
getWorkflowSchemaById
GET
https://api.looply.io/v1/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 | Your API Key |
Example Payload:
Last updated