Executions

An execution is a single run of an app, it contains the inputs, outputs, and status of the run, and can be used to check the status of the run.

Retrieve an execution

get

Returns the execution with the given uuid. You can use this endpoint to check the status of the execution.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
execution_uuidstringRequired

The execution uuid

Responses
chevron-right
200

Execution found

application/json
get
/public_api/airops_apps/executions/{execution_uuid}

Execute

post

This endpoint allows you to execute an app. You can use this endpoint to execute an app and get the output of the execution.

Preconditions: the app must be published.

This endpoint executes the app immediately and returns the result, unless you are at your current capacity, or your app takes more than 10 minutes to run, in which case it will fail.

If you want to execute an app asynchronously, use the async_execute endpoint.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
app_uuidstringRequired

The app uuid

Body
version_slugintegerOptional

The version of the app (will use the default version if not provided)

Example: 12
inputsobjectRequired

The inputs of the app

Example: {"name":"John Doe"}
Responses
chevron-right
200

Execution created

application/json
post
/public_api/airops_apps/{app_uuid}/execute

Async Execute

post

This endpoint allows you to execute an app asynchronously. You can use this endpoint to execute an app and get the execution id to check the status of the execution.

Preconditions: the app must be published.

Executions created through this endpoint will be queued and executed at your workspace's capacity.

If you want to execute an app immediately, use the execute endpoint.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
app_uuidstringRequired

The app uuid, you can find the app uuid by going to the App => Integrate

Body
version_slugintegerOptional

The version of the app (will use the default version if not provided)

Example: 12
inputsobjectRequired

The inputs of the app

Example: {"name":"John Doe"}
Responses
chevron-right
200

Execution created

application/json
post
/public_api/airops_apps/{app_uuid}/async_execute

Execute Workflow Definition

post

This endpoint allows you to execute a workflow definition. You can use this endpoint to execute a workflow definition and get the execution id to check the status of the execution.

Preconditions: the app must be published.

This endpoint executes the app immediately and returns the result, unless you are at your current capacity, or your app takes more than 10 minutes to run, in which case it will fail.

If you want to execute an app asynchronously, use the async_execute_definition endpoint.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
app_uuidstringRequired

The app uuid

Body
inputsobjectRequired

The inputs of the workflow

Example: {"name":"John Doe"}
Responses
chevron-right
200

Execution created

application/json
post
/public_api/airops_apps/{app_uuid}/execute_definition

Async Execute Workflow Definition

post

This endpoint allows you to execute a workflow definition asynchronously. You can use this endpoint to execute a workflow definition and get the execution id to check the status of the execution.

Preconditions: the app must be published.

Executions created through this endpoint will be queued and executed at your workspace's capacity.

If you want to execute a workflow definition immediately, use the execute_definition endpoint.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
app_uuidstringRequired

The app uuid, you can find the app uuid by going to the App => Integrate

Body
inputsobjectRequired

The inputs of the workflow

Example: {"name":"John Doe"}
Responses
chevron-right
200

Execution created

application/json
post
/public_api/airops_apps/{app_uuid}/async_execute_definition

Webhook Async Execute

post

This endpoint allows you to execute an app asynchronously as a webhook for an external service.

The payload of the request will be mapped to the first input of your app.

Preconditions: the app must be published.

More information on how to use this endpoint can be found herearrow-up-right.

Path parameters
app_uuidstringRequired

The app uuid, you can find the app uuid by going to the App => Integrate

Query parameters
auth_tokenstringRequired

Your workspace API key

Example: 23iu3h23-34n43yib4-3243n34b4-34n434h
Body
version_slugintegerOptional

The version of the app (will use the default version if not provided)

Example: 12
inputsobjectRequired

The inputs of the app

Example: {"name":"John Doe"}
Responses
chevron-right
200

Execution created

application/json
post
/public_api/airops_apps/{app_uuid}/webhook_async_execute

Cancel an execution

patch

This endpoint allows you to cancel an execution.

Preconditions: the execution must be in the pending or running status.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
execution_uuidstringRequired

The execution uuid

Responses
patch
/public_api/airops_apps/executions/{execution_uuid}/cancel

No content

Retry an execution

post

This endpoint allows you to retry an execution from the last failed step.

Preconditions: the execution must be in the error status.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
execution_uuidstringRequired

The execution uuid

Responses
post
/public_api/airops_apps/executions/{execution_uuid}/retry

No content

Rate an execution

patch

This endpoint allows you to rate an execution.

Preconditions: the execution must be in the success status.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
execution_uuidstringRequired

The execution uuid

Body
feedbackstring · enumRequired

The feedback of the execution

Example: positivePossible values:
Responses
patch
/public_api/airops_apps/executions/{execution_uuid}/feedback

No content

Retrieve all executions for an Airops app

get

Returns all the executions for a given Airops app. You can use this endpoint to check the status/input/output of all the executions.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
airops_app_idintegerRequired

The Airops app ID to fetch executions from

cursorstringOptional

The cursor value to use for pagination

itemsinteger · min: 1 · max: 100Optional

The amount of items to fetch

Example: 10
Responses
chevron-right
200

Executions found

application/json
get
/public_api/airops_apps/:airops_app_id/executions

Last updated

Was this helpful?