Get a realm's agent card
Returns the realm’s A2A agent card (name, URL, protocol version, skills). Public; cached for 60 seconds. Only realms with A2A turned on have one.
No authentication: anyone can call this. Card only for realms with A2A enabled.
GET
/
a2a
/
o
/
{org}
/
r
/
{slug}
/
.well-known
/
agent-card.json
Get a realm's agent card
curl --request GET \
--url https://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.jsonimport requests
url = "https://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json', 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://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json",
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://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json"
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://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json")
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{
"ok": true,
"name": "Production",
"description": "CliqHub realm agent for acme.production",
"url": "https://api.cliqhub.io/a2a/o/acme/r/production/send",
"version": "1.0.0",
"protocolVersion": "0.3.0",
"skills": [
{
"id": "acme/code-review",
"name": "code-review",
"description": "Reviews a pull request and posts findings."
}
]
}{
"ok": false,
"error": "A2A is not enabled for realm 'production'",
"code": "not_found"
}{
"ok": false,
"error": "Internal server error",
"code": "internal_error"
}⌘I
Get a realm's agent card
curl --request GET \
--url https://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.jsonimport requests
url = "https://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json', 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://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json",
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://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json"
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://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/a2a/o/{org}/r/{slug}/.well-known/agent-card.json")
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{
"ok": true,
"name": "Production",
"description": "CliqHub realm agent for acme.production",
"url": "https://api.cliqhub.io/a2a/o/acme/r/production/send",
"version": "1.0.0",
"protocolVersion": "0.3.0",
"skills": [
{
"id": "acme/code-review",
"name": "code-review",
"description": "Reviews a pull request and posts findings."
}
]
}{
"ok": false,
"error": "A2A is not enabled for realm 'production'",
"code": "not_found"
}{
"ok": false,
"error": "Internal server error",
"code": "internal_error"
}