Skip to main content
POST
Delete A2A agent

Restrictions

Usage

  • Soft delete: the agent disappears from list and get immediately, can no longer be dispatched, and its name becomes free again in its scope.
  • Requires edit rights on the agent’s current team: an account-scoped agent (team_id=0) can be changed only by the account owner or an admin, a team agent only by members of that team (owners and admins included only if they belong to it).
  • Returns ResourceNotFound if the agent does not exist or is already deleted.
  • Every call is recorded in the account audit log.

Authorizations

app_key
string
query
required

APP Key created in the Flashduty console under My → APP Key. Send it as the app_key query parameter or in the Fd-App-Key request header. Its effective access is the intersection of the key's permission scope and the creator's current role permissions. Keep it secret.

Body

application/json

A2A agent lookup by ID.

agent_id
string
required

Target agent ID, from the list returned by POST /safari/a2a-agent/list.

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
null

Not returned on success; the body carries only request_id.