Reveal a retained cognition value
curl --request POST \
--url https://api.visiqlabs.com/allow/cognition/reveal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event_id": "6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10",
"field": "content"
}
'import requests
url = "https://api.visiqlabs.com/allow/cognition/reveal"
payload = {
"event_id": "6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10",
"field": "content"
}
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({event_id: '6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10', field: 'content'})
};
fetch('https://api.visiqlabs.com/allow/cognition/reveal', 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/cognition/reveal",
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([
'event_id' => '6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10',
'field' => 'content'
]),
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/cognition/reveal"
payload := strings.NewReader("{\n \"event_id\": \"6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10\",\n \"field\": \"content\"\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/cognition/reveal")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"event_id\": \"6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10\",\n \"field\": \"content\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.visiqlabs.com/allow/cognition/reveal")
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 \"event_id\": \"6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10\",\n \"field\": \"content\"\n}"
response = http.request(request)
puts response.read_body{
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": "content",
"value": "<unknown>"
}{
"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": "Rule not found",
"code": "not_found"
}{
"error": "rate_limiter_unavailable",
"code": "rate_limiter_unavailable",
"detail": "Rate limiter unavailable, please retry."
}Cognition
Reveal a retained cognition value
Decrypts one retained raw value (beat content, tool arguments or a spawn prompt) and records an audit event for the reveal. Pass either the opaque token shown in the dashboard or an explicit event_id and field. Returns 404 when the organization does not retain raw content. Requires permission payloads:unmask.
POST
/
allow
/
cognition
/
reveal
Reveal a retained cognition value
curl --request POST \
--url https://api.visiqlabs.com/allow/cognition/reveal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event_id": "6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10",
"field": "content"
}
'import requests
url = "https://api.visiqlabs.com/allow/cognition/reveal"
payload = {
"event_id": "6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10",
"field": "content"
}
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({event_id: '6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10', field: 'content'})
};
fetch('https://api.visiqlabs.com/allow/cognition/reveal', 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/cognition/reveal",
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([
'event_id' => '6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10',
'field' => 'content'
]),
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/cognition/reveal"
payload := strings.NewReader("{\n \"event_id\": \"6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10\",\n \"field\": \"content\"\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/cognition/reveal")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"event_id\": \"6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10\",\n \"field\": \"content\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.visiqlabs.com/allow/cognition/reveal")
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 \"event_id\": \"6b1e9a52-2f3c-4c55-9a0e-7d1f3b2c4e10\",\n \"field\": \"content\"\n}"
response = http.request(request)
puts response.read_body{
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": "content",
"value": "<unknown>"
}{
"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": "Rule not found",
"code": "not_found"
}{
"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
- Option 1
- Option 2
Required string length:
1 - 512