Capability documents
Get the share link
Returns the public link to the agent’s capability document, and whether it’s currently enabled. Anyone with the link can read the document without signing in, so treat it like a password. Answers 404 until a document has been generated. Requires agents:manage.
GET
/
core
/
agents
/
{agent_id}
/
capability-document
/
share
Get the share link
curl --request GET \
--url https://api.anyreach.ai/core/agents/{agent_id}/capability-document/shareimport requests
url = "https://api.anyreach.ai/core/agents/{agent_id}/capability-document/share"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.anyreach.ai/core/agents/{agent_id}/capability-document/share', 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.anyreach.ai/core/agents/{agent_id}/capability-document/share",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.anyreach.ai/core/agents/{agent_id}/capability-document/share"
req, _ := http.NewRequest("GET", url, nil)
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.anyreach.ai/core/agents/{agent_id}/capability-document/share")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anyreach.ai/core/agents/{agent_id}/capability-document/share")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"url": "https://example.com/resource",
"is_public": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}⌘I
Get the share link
curl --request GET \
--url https://api.anyreach.ai/core/agents/{agent_id}/capability-document/shareimport requests
url = "https://api.anyreach.ai/core/agents/{agent_id}/capability-document/share"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.anyreach.ai/core/agents/{agent_id}/capability-document/share', 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.anyreach.ai/core/agents/{agent_id}/capability-document/share",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.anyreach.ai/core/agents/{agent_id}/capability-document/share"
req, _ := http.NewRequest("GET", url, nil)
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.anyreach.ai/core/agents/{agent_id}/capability-document/share")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anyreach.ai/core/agents/{agent_id}/capability-document/share")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"url": "https://example.com/resource",
"is_public": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}
