Skip to main content
POST
/
safari
/
a2a-agent
/
create
Create A2A agent
curl --request POST \
  --url 'https://api.flashcat.cloud/safari/a2a-agent/create?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_name": "Network Diagnostics Agent",
  "card_url": "https://agents.example.com/network-diag/.well-known/agent.json",
  "description": "Runs traceroute and BGP-path analysis for network incidents.",
  "auth_type": "bearer",
  "auth_config": {
    "token": "secret"
  },
  "streaming": true,
  "team_id": 0
}
'
{
  "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
  "data": {
    "agent_id": "a2a_9d4c1f60b3a2"
  }
}

Restrictions

AspectValue
Rate limits1,000 requests/minute; 50 requests/second per account
PermissionsNone — any valid app_key can call this operation

Usage

  • The agent card at card_url is fetched and validated; an unreachable card returns InvalidParameter.
  • Every call is recorded in the account’s audit log.

Authorizations

app_key
string
query
required

App key issued from the Flashduty console under Account → APP Keys. Required on every public API call.

Body

application/json

Configuration for a new A2A agent.

agent_name
string
required

Display name of the agent.

Maximum string length: 128
card_url
string
required

URL of the agent's published A2A agent card.

description
string

What this agent does and when to delegate to it.

auth_type
string

Authentication scheme used when calling the agent.

auth_config
object

Authentication parameters keyed by name.

streaming
boolean

Whether the agent supports streaming responses.

team_id
integer<int64>

Owning team for the new agent; 0 for account scope.

auth_mode
string

Credential model; defaults to shared.

secret_schema
string

JSON schema of the per-user secret; required when auth_mode is per_user_secret.

oauth_metadata
string

OAuth metadata JSON; reserved for OAuth-based auth.

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.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

Error payload inside the response envelope. Present only on non-2xx responses.

data
object

Identifier of the newly created A2A agent.