Report installed agent skills
curl --request POST \
--url https://api.visiqlabs.com/allow/agents/skills \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "billing-copilot",
"skills": [
{
"name": "refund-policy",
"path": "skills/refund-policy/SKILL.md",
"description": "How to apply the refund policy.",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
}
]
}
'import requests
url = "https://api.visiqlabs.com/allow/agents/skills"
payload = {
"agent_id": "billing-copilot",
"skills": [
{
"name": "refund-policy",
"path": "skills/refund-policy/SKILL.md",
"description": "How to apply the refund policy.",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
}
]
}
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({
agent_id: 'billing-copilot',
skills: [
{
name: 'refund-policy',
path: 'skills/refund-policy/SKILL.md',
description: 'How to apply the refund policy.',
content_hash: '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08'
}
]
})
};
fetch('https://api.visiqlabs.com/allow/agents/skills', 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/agents/skills",
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([
'agent_id' => 'billing-copilot',
'skills' => [
[
'name' => 'refund-policy',
'path' => 'skills/refund-policy/SKILL.md',
'description' => 'How to apply the refund policy.',
'content_hash' => '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08'
]
]
]),
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/agents/skills"
payload := strings.NewReader("{\n \"agent_id\": \"billing-copilot\",\n \"skills\": [\n {\n \"name\": \"refund-policy\",\n \"path\": \"skills/refund-policy/SKILL.md\",\n \"description\": \"How to apply the refund policy.\",\n \"content_hash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\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/agents/skills")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"billing-copilot\",\n \"skills\": [\n {\n \"name\": \"refund-policy\",\n \"path\": \"skills/refund-policy/SKILL.md\",\n \"description\": \"How to apply the refund policy.\",\n \"content_hash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.visiqlabs.com/allow/agents/skills")
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 \"agent_id\": \"billing-copilot\",\n \"skills\": [\n {\n \"name\": \"refund-policy\",\n \"path\": \"skills/refund-policy/SKILL.md\",\n \"description\": \"How to apply the refund policy.\",\n \"content_hash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"agent_id": "billing-copilot",
"status": "recorded",
"registered": 1
}{
"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": "<string>",
"code": "<string>",
"detail": "<string>",
"details": [
{}
]
}{
"error": "rate_limiter_unavailable",
"code": "rate_limiter_unavailable",
"detail": "Rate limiter unavailable, please retry."
}Agents
Report installed agent skills
The harness startup handshake that reports the skills installed for an agent: name, path, description and a SHA-256 of the instruction body. The body itself never leaves the agent. Requires scope rules:evaluate (or allow:write) and permission allow_agents:create.
POST
/
allow
/
agents
/
skills
Report installed agent skills
curl --request POST \
--url https://api.visiqlabs.com/allow/agents/skills \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "billing-copilot",
"skills": [
{
"name": "refund-policy",
"path": "skills/refund-policy/SKILL.md",
"description": "How to apply the refund policy.",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
}
]
}
'import requests
url = "https://api.visiqlabs.com/allow/agents/skills"
payload = {
"agent_id": "billing-copilot",
"skills": [
{
"name": "refund-policy",
"path": "skills/refund-policy/SKILL.md",
"description": "How to apply the refund policy.",
"content_hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
}
]
}
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({
agent_id: 'billing-copilot',
skills: [
{
name: 'refund-policy',
path: 'skills/refund-policy/SKILL.md',
description: 'How to apply the refund policy.',
content_hash: '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08'
}
]
})
};
fetch('https://api.visiqlabs.com/allow/agents/skills', 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/agents/skills",
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([
'agent_id' => 'billing-copilot',
'skills' => [
[
'name' => 'refund-policy',
'path' => 'skills/refund-policy/SKILL.md',
'description' => 'How to apply the refund policy.',
'content_hash' => '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08'
]
]
]),
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/agents/skills"
payload := strings.NewReader("{\n \"agent_id\": \"billing-copilot\",\n \"skills\": [\n {\n \"name\": \"refund-policy\",\n \"path\": \"skills/refund-policy/SKILL.md\",\n \"description\": \"How to apply the refund policy.\",\n \"content_hash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\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/agents/skills")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"billing-copilot\",\n \"skills\": [\n {\n \"name\": \"refund-policy\",\n \"path\": \"skills/refund-policy/SKILL.md\",\n \"description\": \"How to apply the refund policy.\",\n \"content_hash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.visiqlabs.com/allow/agents/skills")
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 \"agent_id\": \"billing-copilot\",\n \"skills\": [\n {\n \"name\": \"refund-policy\",\n \"path\": \"skills/refund-policy/SKILL.md\",\n \"description\": \"How to apply the refund policy.\",\n \"content_hash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"agent_id": "billing-copilot",
"status": "recorded",
"registered": 1
}{
"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": "<string>",
"code": "<string>",
"detail": "<string>",
"details": [
{}
]
}{
"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