Skip to main content
GET
/
api
/
automations
/
{automationId}
/
runs
/
{runId}
Get automation run
curl --request GET \
  --url https://app.outlit.ai/api/automations/{automationId}/runs/{runId} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://app.outlit.ai/api/automations/{automationId}/runs/{runId}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://app.outlit.ai/api/automations/{automationId}/runs/{runId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://app.outlit.ai/api/automations/{automationId}/runs/{runId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://app.outlit.ai/api/automations/{automationId}/runs/{runId}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://app.outlit.ai/api/automations/{automationId}/runs/{runId}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.outlit.ai/api/automations/{automationId}/runs/{runId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "ok": true,
  "commandId": "<string>",
  "commandVersion": 123,
  "correlationId": "<string>",
  "result": {
    "operationId": "<string>",
    "status": "<string>",
    "resources": [
      {
        "type": "<string>",
        "id": "<string>"
      }
    ],
    "data": {
      "run": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "automationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "dedupeKey": "<string>",
        "eventProcessedId": "<string>",
        "eventName": "<string>",
        "eventOccurredAt": "2023-11-07T05:31:56Z",
        "matchedAt": "2023-11-07T05:31:56Z",
        "destinationCount": 1,
        "acceptedDestinationCount": 1,
        "failedDestinationCount": 1,
        "agentRunId": "<string>",
        "skipReason": "<string>",
        "errorCode": "<string>",
        "errorMessage": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "deliveries": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "sourceId": "<string>",
            "automationRunId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "agentOutputId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "destinationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "providerEventId": "<string>",
            "queuedAt": "2023-11-07T05:31:56Z",
            "enqueueAttemptCount": 1,
            "lastEnqueueAttemptAt": "2023-11-07T05:31:56Z",
            "publishedAt": "2023-11-07T05:31:56Z",
            "errorCode": "<string>",
            "errorMessage": "<string>",
            "createdAt": "2023-11-07T05:31:56Z",
            "updatedAt": "2023-11-07T05:31:56Z"
          }
        ],
        "occurrences": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "signalId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "subjectId": "<string>",
            "customerId": "<string>",
            "occurredAt": "2023-11-07T05:31:56Z",
            "detectedAt": "2023-11-07T05:31:56Z",
            "createdAt": "2023-11-07T05:31:56Z",
            "updatedAt": "2023-11-07T05:31:56Z"
          }
        ]
      }
    },
    "warnings": [
      "<string>"
    ],
    "auditId": "<string>"
  }
}
{
"ok": true,
"commandId": "<string>",
"commandVersion": 2,
"error": {
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"details": {}
}
}
{
"error": "Invalid credentials"
}
{
"ok": true,
"commandId": "<string>",
"commandVersion": 2,
"error": {
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"details": {}
}
}
{
"ok": true,
"commandId": "<string>",
"commandVersion": 2,
"error": {
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"details": {}
}
}
{
"error": "Internal server error"
}
{
"ok": true,
"commandId": "<string>",
"commandVersion": 2,
"error": {
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"details": {}
}
}

Authorizations

Authorization
string
header
required

Outlit API key using the Bearer ok_... format.

Path Parameters

automationId
string<uuid>
required

Automation ID.

runId
string<uuid>
required

Automation run ID.

Response

Automation run details were returned.

ok
boolean
required
commandId
string
required
Allowed value: "automation.run.get"
commandVersion
integer
required
correlationId
string
required
result
object
required