Report locally-evaluated decisions
curl --request POST \
--url https://api.visiqlabs.com/allow/telemetry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"decisions": [
{
"decision_id": "3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61",
"agent_id": "billing-copilot",
"target_app": "stripe",
"action": "refund.create",
"decision": "permit",
"reason": "Within refund limit",
"evaluated_at": "2026-09-16T12:00:00Z",
"evaluation_mode": "local"
}
]
}
'import requests
url = "https://api.visiqlabs.com/allow/telemetry"
payload = { "decisions": [
{
"decision_id": "3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61",
"agent_id": "billing-copilot",
"target_app": "stripe",
"action": "refund.create",
"decision": "permit",
"reason": "Within refund limit",
"evaluated_at": "2026-09-16T12:00:00Z",
"evaluation_mode": "local"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
decisions: [
{
decision_id: '3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61',
agent_id: 'billing-copilot',
target_app: 'stripe',
action: 'refund.create',
decision: 'permit',
reason: 'Within refund limit',
evaluated_at: '2026-09-16T12:00:00Z',
evaluation_mode: 'local'
}
]
})
};
fetch('https://api.visiqlabs.com/allow/telemetry', 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.visiqlabs.com/allow/telemetry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'decisions' => [
[
'decision_id' => '3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61',
'agent_id' => 'billing-copilot',
'target_app' => 'stripe',
'action' => 'refund.create',
'decision' => 'permit',
'reason' => 'Within refund limit',
'evaluated_at' => '2026-09-16T12:00:00Z',
'evaluation_mode' => 'local'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.visiqlabs.com/allow/telemetry"
payload := strings.NewReader("{\n \"decisions\": [\n {\n \"decision_id\": \"3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61\",\n \"agent_id\": \"billing-copilot\",\n \"target_app\": \"stripe\",\n \"action\": \"refund.create\",\n \"decision\": \"permit\",\n \"reason\": \"Within refund limit\",\n \"evaluated_at\": \"2026-09-16T12:00:00Z\",\n \"evaluation_mode\": \"local\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.visiqlabs.com/allow/telemetry")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"decisions\": [\n {\n \"decision_id\": \"3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61\",\n \"agent_id\": \"billing-copilot\",\n \"target_app\": \"stripe\",\n \"action\": \"refund.create\",\n \"decision\": \"permit\",\n \"reason\": \"Within refund limit\",\n \"evaluated_at\": \"2026-09-16T12:00:00Z\",\n \"evaluation_mode\": \"local\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.visiqlabs.com/allow/telemetry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"decisions\": [\n {\n \"decision_id\": \"3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61\",\n \"agent_id\": \"billing-copilot\",\n \"target_app\": \"stripe\",\n \"action\": \"refund.create\",\n \"decision\": \"permit\",\n \"reason\": \"Within refund limit\",\n \"evaluated_at\": \"2026-09-16T12:00:00Z\",\n \"evaluation_mode\": \"local\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"received": 1,
"uncovered": 0,
"new_schemas": 0,
"rejected": []
}{
"error": "Invalid request body",
"code": "invalid_request",
"details": [
{
"path": [
"agent_id"
],
"message": "Required"
}
]
}{
"error": "Unauthorized",
"code": "unauthenticated"
}{
"error": "insufficient_scope",
"code": "insufficient_scope",
"detail": "This API key is not authorized for the requested operation."
}{
"error": "rate_limiter_unavailable",
"code": "rate_limiter_unavailable",
"detail": "Rate limiter unavailable, please retry."
}Telemetry
Report locally-evaluated decisions
The SDK batches decisions it evaluated locally (from the rule bundle) and ships them here so they reach the audit log. Each decision is validated on its own: valid items are ingested, malformed items come back in rejected with their index, and the request is a 400 only when every item is invalid. Ingest is idempotent on decision_id. Accepted batches return 202.
POST
/
allow
/
telemetry
Report locally-evaluated decisions
curl --request POST \
--url https://api.visiqlabs.com/allow/telemetry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"decisions": [
{
"decision_id": "3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61",
"agent_id": "billing-copilot",
"target_app": "stripe",
"action": "refund.create",
"decision": "permit",
"reason": "Within refund limit",
"evaluated_at": "2026-09-16T12:00:00Z",
"evaluation_mode": "local"
}
]
}
'import requests
url = "https://api.visiqlabs.com/allow/telemetry"
payload = { "decisions": [
{
"decision_id": "3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61",
"agent_id": "billing-copilot",
"target_app": "stripe",
"action": "refund.create",
"decision": "permit",
"reason": "Within refund limit",
"evaluated_at": "2026-09-16T12:00:00Z",
"evaluation_mode": "local"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
decisions: [
{
decision_id: '3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61',
agent_id: 'billing-copilot',
target_app: 'stripe',
action: 'refund.create',
decision: 'permit',
reason: 'Within refund limit',
evaluated_at: '2026-09-16T12:00:00Z',
evaluation_mode: 'local'
}
]
})
};
fetch('https://api.visiqlabs.com/allow/telemetry', 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.visiqlabs.com/allow/telemetry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'decisions' => [
[
'decision_id' => '3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61',
'agent_id' => 'billing-copilot',
'target_app' => 'stripe',
'action' => 'refund.create',
'decision' => 'permit',
'reason' => 'Within refund limit',
'evaluated_at' => '2026-09-16T12:00:00Z',
'evaluation_mode' => 'local'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.visiqlabs.com/allow/telemetry"
payload := strings.NewReader("{\n \"decisions\": [\n {\n \"decision_id\": \"3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61\",\n \"agent_id\": \"billing-copilot\",\n \"target_app\": \"stripe\",\n \"action\": \"refund.create\",\n \"decision\": \"permit\",\n \"reason\": \"Within refund limit\",\n \"evaluated_at\": \"2026-09-16T12:00:00Z\",\n \"evaluation_mode\": \"local\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.visiqlabs.com/allow/telemetry")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"decisions\": [\n {\n \"decision_id\": \"3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61\",\n \"agent_id\": \"billing-copilot\",\n \"target_app\": \"stripe\",\n \"action\": \"refund.create\",\n \"decision\": \"permit\",\n \"reason\": \"Within refund limit\",\n \"evaluated_at\": \"2026-09-16T12:00:00Z\",\n \"evaluation_mode\": \"local\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.visiqlabs.com/allow/telemetry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"decisions\": [\n {\n \"decision_id\": \"3f0c7e3a-7a55-4a39-9d1c-0b8e2d4f5a61\",\n \"agent_id\": \"billing-copilot\",\n \"target_app\": \"stripe\",\n \"action\": \"refund.create\",\n \"decision\": \"permit\",\n \"reason\": \"Within refund limit\",\n \"evaluated_at\": \"2026-09-16T12:00:00Z\",\n \"evaluation_mode\": \"local\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"received": 1,
"uncovered": 0,
"new_schemas": 0,
"rejected": []
}{
"error": "Invalid request body",
"code": "invalid_request",
"details": [
{
"path": [
"agent_id"
],
"message": "Required"
}
]
}{
"error": "Unauthorized",
"code": "unauthenticated"
}{
"error": "insufficient_scope",
"code": "insufficient_scope",
"detail": "This API key is not authorized for the requested operation."
}{
"error": "rate_limiter_unavailable",
"code": "rate_limiter_unavailable",
"detail": "Rate limiter unavailable, please retry."
}Authorizations
A VisIQ API key presented as Authorization: Bearer vq_prod_.... Mint harness keys under Settings → Harness Keys and API keys under Settings → API Keys in the dashboard.
Body
application/json
Required array length:
1 - 100 elementsShow child attributes
Show child attributes