Run history for one of the caller's workflows.
curl --request GET \
--url https://hiimpria.ai/api/user/agents/workflows/{id}/runs \
--header 'x-access-token: <api-key>'import requests
url = "https://hiimpria.ai/api/user/agents/workflows/{id}/runs"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://hiimpria.ai/api/user/agents/workflows/{id}/runs', 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://hiimpria.ai/api/user/agents/workflows/{id}/runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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://hiimpria.ai/api/user/agents/workflows/{id}/runs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://hiimpria.ai/api/user/agents/workflows/{id}/runs")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/user/agents/workflows/{id}/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"count": 123,
"runs": [
{
"_id": "<string>",
"workflowName": "<string>",
"presetKey": "<string>",
"trigger": "manual",
"outcome": "started",
"sessionId": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"terminalState": "",
"endState": "<string>",
"endedAt": "2023-11-07T05:31:56Z",
"reconciledAt": "2023-11-07T05:31:56Z",
"instructionDelivered": true,
"deliveryState": "n/a",
"deliveryCode": "<string>",
"deliveryMessage": "<string>",
"deliveredAt": "2023-11-07T05:31:56Z",
"stale": true
}
]
}{
"success": false,
"code": "INVALID_NAME",
"message": "<string>"
}User
Run history for one of the caller's workflows.
Newest first. Runs whose session has finished are resolved on read; runs whose session is still going are left open rather than being given an invented ending.
GET
/
api
/
user
/
agents
/
workflows
/
{id}
/
runs
Run history for one of the caller's workflows.
curl --request GET \
--url https://hiimpria.ai/api/user/agents/workflows/{id}/runs \
--header 'x-access-token: <api-key>'import requests
url = "https://hiimpria.ai/api/user/agents/workflows/{id}/runs"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://hiimpria.ai/api/user/agents/workflows/{id}/runs', 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://hiimpria.ai/api/user/agents/workflows/{id}/runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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://hiimpria.ai/api/user/agents/workflows/{id}/runs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://hiimpria.ai/api/user/agents/workflows/{id}/runs")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/user/agents/workflows/{id}/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"count": 123,
"runs": [
{
"_id": "<string>",
"workflowName": "<string>",
"presetKey": "<string>",
"trigger": "manual",
"outcome": "started",
"sessionId": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"terminalState": "",
"endState": "<string>",
"endedAt": "2023-11-07T05:31:56Z",
"reconciledAt": "2023-11-07T05:31:56Z",
"instructionDelivered": true,
"deliveryState": "n/a",
"deliveryCode": "<string>",
"deliveryMessage": "<string>",
"deliveredAt": "2023-11-07T05:31:56Z",
"stale": true
}
]
}{
"success": false,
"code": "INVALID_NAME",
"message": "<string>"
}Was this page helpful?