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": "deploy-bot",
  "card_url": "https://agents.example.com/deploy-bot/card",
  "auth_type": "bearer",
  "streaming": true,
  "team_id": 0
}
'
{
  "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
  "data": {
    "agent_id": "a2a_6mWqZ2pK9nLcR3tY8uVb4D"
  }
}

Restrictions

AspectValue
Rate limits1,000 requests/minute; 50 requests/second per account
PermissionsAgent Manage (ai-sre)

Usage

  • card_url must resolve to a valid agent card; an unreachable or invalid card returns InvalidParameter.
  • Every call is recorded in the account audit log.

Authorizations

app_key
string
query
required

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

Body

application/json

Registration parameters for a new A2A agent.

agent_name
string
required

Agent display name.

Maximum string length: 128
card_url
string
required

URL of the remote agent card.

description
string

Agent description.

Maximum string length: 2000
auth_type
string

Authentication type for the remote agent.

auth_config
object

Authentication config key-values.

streaming
boolean

Whether the remote agent supports streaming.

team_id
integer<int64>

Team scope: 0 = account-wide; >0 = team.

auth_mode
string

Authentication mode: shared (default), per_user_secret, or per_user_oauth.

secret_schema
string

JSON secret schema; required when auth_mode=per_user_secret.

oauth_metadata
string

JSON OAuth metadata; reserved for 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.

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

Result of registering an A2A agent.