List the caller's saved agent workflows.
curl --request GET \
--url https://hiimpria.ai/api/user/agents/workflows \
--header 'x-access-token: <api-key>'import requests
url = "https://hiimpria.ai/api/user/agents/workflows"
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', 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",
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"
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")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/user/agents/workflows")
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,
"workflows": [
{
"_id": "<string>",
"name": "<string>",
"presetKey": "<string>",
"presetName": "<string>",
"instruction": "<string>",
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"lastRunAt": "2023-11-07T05:31:56Z",
"lastRunOutcome": "<string>",
"lastSessionId": "<string>",
"available": true,
"missingCapabilities": [
"<string>"
],
"unavailableReason": "<string>",
"presetEnabled": true,
"presetExists": true
}
]
}User
List the caller's saved agent workflows.
Returns only workflows created by the caller within their own institution. Rows whose catalogue preset has been removed, disabled or whose runtime capabilities are missing are still LISTED and annotated, never hidden.
GET
/
api
/
user
/
agents
/
workflows
List the caller's saved agent workflows.
curl --request GET \
--url https://hiimpria.ai/api/user/agents/workflows \
--header 'x-access-token: <api-key>'import requests
url = "https://hiimpria.ai/api/user/agents/workflows"
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', 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",
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"
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")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/user/agents/workflows")
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,
"workflows": [
{
"_id": "<string>",
"name": "<string>",
"presetKey": "<string>",
"presetName": "<string>",
"instruction": "<string>",
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"lastRunAt": "2023-11-07T05:31:56Z",
"lastRunOutcome": "<string>",
"lastSessionId": "<string>",
"available": true,
"missingCapabilities": [
"<string>"
],
"unavailableReason": "<string>",
"presetEnabled": true,
"presetExists": true
}
]
}Was this page helpful?