Workflows
List workflow checkpoints awaiting input
Lists pending checkpoints across the tenant’s non-archived goals.
GET
/
api
/
v1
/
tenant
/
automation
/
checkpoints
List workflow checkpoints awaiting input
curl --request GET \
--url https://api.costgraph.ai/api/v1/tenant/automation/checkpoints \
--header 'Authorization: <api-key>' \
--header 'X-CostGraph-Tenant-ID: <x-costgraph-tenant-id>'import requests
url = "https://api.costgraph.ai/api/v1/tenant/automation/checkpoints"
headers = {
"X-CostGraph-Tenant-ID": "<x-costgraph-tenant-id>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-CostGraph-Tenant-ID': '<x-costgraph-tenant-id>', Authorization: '<api-key>'}
};
fetch('https://api.costgraph.ai/api/v1/tenant/automation/checkpoints', 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://api.costgraph.ai/api/v1/tenant/automation/checkpoints",
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: <api-key>",
"X-CostGraph-Tenant-ID: <x-costgraph-tenant-id>"
],
]);
$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://api.costgraph.ai/api/v1/tenant/automation/checkpoints"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-CostGraph-Tenant-ID", "<x-costgraph-tenant-id>")
req.Header.Add("Authorization", "<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://api.costgraph.ai/api/v1/tenant/automation/checkpoints")
.header("X-CostGraph-Tenant-ID", "<x-costgraph-tenant-id>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.costgraph.ai/api/v1/tenant/automation/checkpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-CostGraph-Tenant-ID"] = '<x-costgraph-tenant-id>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "some message",
"status": "success",
"data": [
{
"checkpoint_id": "<string>",
"created_at": "<string>",
"goal_id": "<string>",
"goal_name": "<string>",
"node_id": "<string>",
"options": [
"<string>"
],
"prompt": "<string>",
"run_id": "<string>",
"status": "pending",
"type": "context",
"version": 123,
"blocker": {
"kind": "connection_missing",
"message": "<string>",
"provider": "<string>",
"retryable": true,
"capabilityId": "<string>",
"code": "<string>",
"connectionId": "<string>",
"operation": "<string>",
"remediation": {
"kind": "reconnect",
"instructions": "<string>",
"url": "<string>"
}
},
"effect": {
"effect_hash": "<string>",
"effective_risk_tier": 123,
"estimated_cost_cents": 123,
"canonical_input": {},
"capability_connection_id": "<string>",
"capability_id": "<string>",
"capability_version": "<string>",
"categories": [
"<string>"
],
"connection_id": "<string>",
"effect_bundle_id": "<string>",
"effect_segment_id": "<string>",
"effects": "<array>",
"financial_impacts": [
{
"asOf": "<string>",
"basis": "<string>",
"currency": "<string>",
"kind": "recurring_savings",
"sourceObservationId": "<string>",
"amountCents": 123,
"confidence": 123,
"monthlyCents": 123,
"sourceRecommendationId": "<string>"
}
],
"preconditions": [
{}
],
"recovery": {},
"segment_hash": "<string>",
"summary": "<string>",
"targets": [
{}
],
"verification": {}
},
"expires_at": "<string>"
}
]
}{
"message": "some message",
"status": "error"
}Was this page helpful?
⌘I
List workflow checkpoints awaiting input
curl --request GET \
--url https://api.costgraph.ai/api/v1/tenant/automation/checkpoints \
--header 'Authorization: <api-key>' \
--header 'X-CostGraph-Tenant-ID: <x-costgraph-tenant-id>'import requests
url = "https://api.costgraph.ai/api/v1/tenant/automation/checkpoints"
headers = {
"X-CostGraph-Tenant-ID": "<x-costgraph-tenant-id>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-CostGraph-Tenant-ID': '<x-costgraph-tenant-id>', Authorization: '<api-key>'}
};
fetch('https://api.costgraph.ai/api/v1/tenant/automation/checkpoints', 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://api.costgraph.ai/api/v1/tenant/automation/checkpoints",
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: <api-key>",
"X-CostGraph-Tenant-ID: <x-costgraph-tenant-id>"
],
]);
$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://api.costgraph.ai/api/v1/tenant/automation/checkpoints"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-CostGraph-Tenant-ID", "<x-costgraph-tenant-id>")
req.Header.Add("Authorization", "<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://api.costgraph.ai/api/v1/tenant/automation/checkpoints")
.header("X-CostGraph-Tenant-ID", "<x-costgraph-tenant-id>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.costgraph.ai/api/v1/tenant/automation/checkpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-CostGraph-Tenant-ID"] = '<x-costgraph-tenant-id>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "some message",
"status": "success",
"data": [
{
"checkpoint_id": "<string>",
"created_at": "<string>",
"goal_id": "<string>",
"goal_name": "<string>",
"node_id": "<string>",
"options": [
"<string>"
],
"prompt": "<string>",
"run_id": "<string>",
"status": "pending",
"type": "context",
"version": 123,
"blocker": {
"kind": "connection_missing",
"message": "<string>",
"provider": "<string>",
"retryable": true,
"capabilityId": "<string>",
"code": "<string>",
"connectionId": "<string>",
"operation": "<string>",
"remediation": {
"kind": "reconnect",
"instructions": "<string>",
"url": "<string>"
}
},
"effect": {
"effect_hash": "<string>",
"effective_risk_tier": 123,
"estimated_cost_cents": 123,
"canonical_input": {},
"capability_connection_id": "<string>",
"capability_id": "<string>",
"capability_version": "<string>",
"categories": [
"<string>"
],
"connection_id": "<string>",
"effect_bundle_id": "<string>",
"effect_segment_id": "<string>",
"effects": "<array>",
"financial_impacts": [
{
"asOf": "<string>",
"basis": "<string>",
"currency": "<string>",
"kind": "recurring_savings",
"sourceObservationId": "<string>",
"amountCents": 123,
"confidence": 123,
"monthlyCents": 123,
"sourceRecommendationId": "<string>"
}
],
"preconditions": [
{}
],
"recovery": {},
"segment_hash": "<string>",
"summary": "<string>",
"targets": [
{}
],
"verification": {}
},
"expires_at": "<string>"
}
]
}{
"message": "some message",
"status": "error"
}