Skip to main content

AI Run Service

The AI run resource holds the record of each Fusion AI playbook run: its status, the steps it took, their checks and approvals, and the tokens it used. Runs are written by Fusion AI as a task runs; you can read them but not change them. See Running tasks.

AI Run REST API​

The AI Run REST API is accessed through the following URL:

https://api.opendatadsl.com/api/airun

Runs belong to your tenant.

MethodPathExampleDescription
GETGet the build information for this service
GET{release}v1List playbook runs
GET{release}/{key}v1/6721f0c2a4b9e85d3c0f1a77Retrieve a run
DELETE{release}/{key}v1/6721f0c2a4b9e85d3c0f1a77Delete a run record, if your policies allow it (the FusionAIRuns policy installed with Fusion AI is read only)

A POST to this service is always rejected: runs are written by the Fusion AI backend.

Entities​

Run​

NameDescriptionType
_idUnique id for the runString
playbookThe id of the playbook that was runString
userThe person who started the runString
statusrunning, awaiting_approval, done, failed, rejected, cancelled or stoppedString
modeinteractive or backgroundString
stepsEach step's result, checks, approvals and errorObject[]
outputsThe outputs of the runObject
tokensThe billed tokens the run usedInteger
maxTokensThe most tokens the run was allowedInteger
errorWhy a failed or stopped run endedString
scheduledFromFor a scheduled run: the task it was copied fromString
_createdWhen the run startedDateTime

Examples​

### Failed runs this month
GET https://api.opendatadsl.com/api/airun/v1
?_filter={"status":"failed"}
&_sort={"_created":-1}
Authorization: Bearer {{token}}