curl --request POST \
--url 'https://api.flashcat.cloud/safari/a2a-agent/create?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"agent_name": "deploy-bot",
"instructions": "Inspect deployment pipelines and propose rollbacks when a canary fails health checks.",
"card_url": "https://agents.example.com/deploy-bot/card",
"auth_type": "bearer",
"auth_config": {
"token": "sk-agent-token-example-9f2c"
},
"streaming": true,
"team_id": 0,
"environments": [
"env_8s7Hn2kLpQ3xYbVc4Wd2m"
]
}
'import requests
url = "https://api.flashcat.cloud/safari/a2a-agent/create?app_key="
payload = {
"agent_name": "deploy-bot",
"instructions": "Inspect deployment pipelines and propose rollbacks when a canary fails health checks.",
"card_url": "https://agents.example.com/deploy-bot/card",
"auth_type": "bearer",
"auth_config": { "token": "sk-agent-token-example-9f2c" },
"streaming": True,
"team_id": 0,
"environments": ["env_8s7Hn2kLpQ3xYbVc4Wd2m"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
agent_name: 'deploy-bot',
instructions: 'Inspect deployment pipelines and propose rollbacks when a canary fails health checks.',
card_url: 'https://agents.example.com/deploy-bot/card',
auth_type: 'bearer',
auth_config: {token: 'sk-agent-token-example-9f2c'},
streaming: true,
team_id: 0,
environments: ['env_8s7Hn2kLpQ3xYbVc4Wd2m']
})
};
fetch('https://api.flashcat.cloud/safari/a2a-agent/create?app_key=', 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.flashcat.cloud/safari/a2a-agent/create?app_key=",
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_name' => 'deploy-bot',
'instructions' => 'Inspect deployment pipelines and propose rollbacks when a canary fails health checks.',
'card_url' => 'https://agents.example.com/deploy-bot/card',
'auth_type' => 'bearer',
'auth_config' => [
'token' => 'sk-agent-token-example-9f2c'
],
'streaming' => true,
'team_id' => 0,
'environments' => [
'env_8s7Hn2kLpQ3xYbVc4Wd2m'
]
]),
CURLOPT_HTTPHEADER => [
"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.flashcat.cloud/safari/a2a-agent/create?app_key="
payload := strings.NewReader("{\n \"agent_name\": \"deploy-bot\",\n \"instructions\": \"Inspect deployment pipelines and propose rollbacks when a canary fails health checks.\",\n \"card_url\": \"https://agents.example.com/deploy-bot/card\",\n \"auth_type\": \"bearer\",\n \"auth_config\": {\n \"token\": \"sk-agent-token-example-9f2c\"\n },\n \"streaming\": true,\n \"team_id\": 0,\n \"environments\": [\n \"env_8s7Hn2kLpQ3xYbVc4Wd2m\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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.flashcat.cloud/safari/a2a-agent/create?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"agent_name\": \"deploy-bot\",\n \"instructions\": \"Inspect deployment pipelines and propose rollbacks when a canary fails health checks.\",\n \"card_url\": \"https://agents.example.com/deploy-bot/card\",\n \"auth_type\": \"bearer\",\n \"auth_config\": {\n \"token\": \"sk-agent-token-example-9f2c\"\n },\n \"streaming\": true,\n \"team_id\": 0,\n \"environments\": [\n \"env_8s7Hn2kLpQ3xYbVc4Wd2m\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/a2a-agent/create?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_name\": \"deploy-bot\",\n \"instructions\": \"Inspect deployment pipelines and propose rollbacks when a canary fails health checks.\",\n \"card_url\": \"https://agents.example.com/deploy-bot/card\",\n \"auth_type\": \"bearer\",\n \"auth_config\": {\n \"token\": \"sk-agent-token-example-9f2c\"\n },\n \"streaming\": true,\n \"team_id\": 0,\n \"environments\": [\n \"env_8s7Hn2kLpQ3xYbVc4Wd2m\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"agent_id": "a2a_6mWqZ2pK9nLcR3tY8uVb4D"
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter skill_id is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}Create A2A agent
Register a new A2A remote agent from its agent-card URL.
curl --request POST \
--url 'https://api.flashcat.cloud/safari/a2a-agent/create?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"agent_name": "deploy-bot",
"instructions": "Inspect deployment pipelines and propose rollbacks when a canary fails health checks.",
"card_url": "https://agents.example.com/deploy-bot/card",
"auth_type": "bearer",
"auth_config": {
"token": "sk-agent-token-example-9f2c"
},
"streaming": true,
"team_id": 0,
"environments": [
"env_8s7Hn2kLpQ3xYbVc4Wd2m"
]
}
'import requests
url = "https://api.flashcat.cloud/safari/a2a-agent/create?app_key="
payload = {
"agent_name": "deploy-bot",
"instructions": "Inspect deployment pipelines and propose rollbacks when a canary fails health checks.",
"card_url": "https://agents.example.com/deploy-bot/card",
"auth_type": "bearer",
"auth_config": { "token": "sk-agent-token-example-9f2c" },
"streaming": True,
"team_id": 0,
"environments": ["env_8s7Hn2kLpQ3xYbVc4Wd2m"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
agent_name: 'deploy-bot',
instructions: 'Inspect deployment pipelines and propose rollbacks when a canary fails health checks.',
card_url: 'https://agents.example.com/deploy-bot/card',
auth_type: 'bearer',
auth_config: {token: 'sk-agent-token-example-9f2c'},
streaming: true,
team_id: 0,
environments: ['env_8s7Hn2kLpQ3xYbVc4Wd2m']
})
};
fetch('https://api.flashcat.cloud/safari/a2a-agent/create?app_key=', 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.flashcat.cloud/safari/a2a-agent/create?app_key=",
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_name' => 'deploy-bot',
'instructions' => 'Inspect deployment pipelines and propose rollbacks when a canary fails health checks.',
'card_url' => 'https://agents.example.com/deploy-bot/card',
'auth_type' => 'bearer',
'auth_config' => [
'token' => 'sk-agent-token-example-9f2c'
],
'streaming' => true,
'team_id' => 0,
'environments' => [
'env_8s7Hn2kLpQ3xYbVc4Wd2m'
]
]),
CURLOPT_HTTPHEADER => [
"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.flashcat.cloud/safari/a2a-agent/create?app_key="
payload := strings.NewReader("{\n \"agent_name\": \"deploy-bot\",\n \"instructions\": \"Inspect deployment pipelines and propose rollbacks when a canary fails health checks.\",\n \"card_url\": \"https://agents.example.com/deploy-bot/card\",\n \"auth_type\": \"bearer\",\n \"auth_config\": {\n \"token\": \"sk-agent-token-example-9f2c\"\n },\n \"streaming\": true,\n \"team_id\": 0,\n \"environments\": [\n \"env_8s7Hn2kLpQ3xYbVc4Wd2m\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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.flashcat.cloud/safari/a2a-agent/create?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"agent_name\": \"deploy-bot\",\n \"instructions\": \"Inspect deployment pipelines and propose rollbacks when a canary fails health checks.\",\n \"card_url\": \"https://agents.example.com/deploy-bot/card\",\n \"auth_type\": \"bearer\",\n \"auth_config\": {\n \"token\": \"sk-agent-token-example-9f2c\"\n },\n \"streaming\": true,\n \"team_id\": 0,\n \"environments\": [\n \"env_8s7Hn2kLpQ3xYbVc4Wd2m\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/safari/a2a-agent/create?app_key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"agent_name\": \"deploy-bot\",\n \"instructions\": \"Inspect deployment pipelines and propose rollbacks when a canary fails health checks.\",\n \"card_url\": \"https://agents.example.com/deploy-bot/card\",\n \"auth_type\": \"bearer\",\n \"auth_config\": {\n \"token\": \"sk-agent-token-example-9f2c\"\n },\n \"streaming\": true,\n \"team_id\": 0,\n \"environments\": [\n \"env_8s7Hn2kLpQ3xYbVc4Wd2m\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"agent_id": "a2a_6mWqZ2pK9nLcR3tY8uVb4D"
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter skill_id is not valid."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "AccessDenied",
"message": "Access Denied."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}Restrictions
| Aspect | Value |
|---|---|
| Rate limits | 300 requests/minute; 20 requests/second per account |
| Permissions | Agent Manage (ai-sre) |
Usage
instructionsis required: a Markdown document with optionalsummaryfrontmatter and a non-empty body, at most 51,200 bytes. The deprecateddescriptionfield is still accepted; if both are sent they must match exactly.agent_namemust not contain@or begeneral/explore(reserved by built-in agents), and must be unique within its scope (account-wide or one team); violations returnInvalidParameter.card_urlmust be an absolutehttp/httpsURL with a host. When an execution environment for the agent is online, the server fetches the agent card through it (acard_urlwith no path gets/.well-known/agent-card.jsonappended) and rejects a card that is not valid JSON or declares no A2A 1.x interface with protocol bindingJSONRPCorHTTP+JSON; an unreachable card, a non-2xx response, or no online environment does not block the call.auth_type=bearersendsauth_config.tokenasAuthorization: Bearer <token>;auth_type=api_keysendsauth_config.api_keyin the header named byauth_config.header; withnoneor an empty value no shared credential header is sent.- Each
environmentsentry must becloudor the ID of a BYOC runner that is account-scoped or belongs to one of the caller’s teams; duplicates are dropped and an empty string is rejected. Omitted or empty means all environments. - Creating into a team (
team_id > 0) requires the caller to belong to that team; only the account owner or an admin may create at account scope (team_id=0). - A new agent starts with
status=enabled. - Every call is recorded in the account audit log.
Authorizations
Body
Registration parameters for a new A2A agent.
Natural-language instructions for the remote agent: a Markdown document with optional summary frontmatter and a non-empty body, at most 50 KiB (51200 bytes). Required — a deprecated description field is still accepted for legacy clients and, if both are sent, must exactly match instructions.
51200Authentication used to reach the remote agent with a shared credential:
none: no credential header.api_key: sendsauth_config.api_keyin the header named byauth_config.header.bearer: sendsAuthorization: Bearer <auth_config.token>.
When omitted the value is stored as an empty string, which behaves like none.
none, api_key, bearer Who supplies the credential:
shared(default; an empty value behaves the same): one credential stored on the agent (auth_type+auth_config) is used for every caller.per_user_secret: each user stores their own secret, sent in the header named bysecret_schema.header_name.per_user_oauth: each user completes their own OAuth authorization; discovery and client registration run on first use.
per_user_secret requires secret_schema with a non-empty header_name; any other value returns InvalidParameter.
shared, per_user_secret, per_user_oauth Response
Success
Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.
Was this page helpful?