For the complete documentation index, see llms.txt. This page is also available as Markdown.

Workflow API

All Looply Workflow related API endpoints

triggerWorkflow

POSThttps://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

Query String Parameters

Name
Type
Description

profile

string

name of environment variable profile (see Environment Variables & Profiles)

Headers

Name
Type
Description

x-api-key*

string

Looply API Key

{
	"message": "success",
	"looply_execution_id": "****",
	// Optional: only included in response when a profile is specified
	"profile": "prod"
}

Serverside issue with this endpoint

{
    "message": "something went wrong"
}

Workflow ID is missing from the request path

{
    "message": "incorrect workflow id"
}

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

process_id supplied to the triggerworkflow or the looply_execution_id if you did not supply one.

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 SAP or TEAMS

Example Body

A workflow execution could not be found with the specified process ID for your organization.

EXECUTION_NOT_FOUND

The API key provided is missing or invalid and access has been denied

Workflow execution could not be resumed due to a conflict.

EXECUTION_IN_PROGRESS

An execution with this process ID is in progress and cannot be resumed right now - this may be that your workflow execution has not yet reached it's wait state or moved past it.

NO_RESUMABLE_EXECUTION

All workflow executions with this process ID have completed and cannot be resumed.

ALREADY_RESTARTED

This workflow execution has just recently restarted with the provided resume token.

A server error has occurred preventing this workflow from being resumed. Contact Looply Support.

WORKFLOW_RESTART_FAILED

We were unable to restart your workflow due to a fatal server error.

MISSING_RESUME_TOKEN

We were unable to restart your workflow due to an error with your execution resume token.

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

process_id supplied to the triggerworkflowor the looply_execution_id if you did not supply one.

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 "Workflow execution terminated by user."

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

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

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 20

workflow_execution_id

string

Pagination Key from the lastKey attribute.

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 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

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 lastKey attribute.

workflow_version

string

Pagination Key from the lastKey attribute.

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:

getAppUserInstallationStatus

GET https://api.looply.io/v2/workflows/getAppUserInstallationStatus

Returns information for if the specified user has an app installed within your organisation

Query Parameters

Name
Type
Description

email*

string

Email address of user

app_id*

string

ID of the app

Headers

Name
Type
Description

x-api-key*

string

Looply API Key

Example Payload:

Example Response

Example Response

Example Response

Last updated