List Delegated Subagent Keys
x402_list_delegate_keysList delegated subagent policy records (sbd_* IDs governing sbk_* spend keys) with caps, allowlists, expiry, and live spend usage. Use this to audit subagents or check the 50-active-key limit; do not use for account state (x402_get_account) or statements (x402_export_statement). Parameters: status="active" requires non-revoked + unexpired ttl_hours; "expired" matches unrevoked keys past ttl_hours; supply spend_key/header (mismatch -> HTTP 400; delegate sees only itself). Behavior: zero charge; unpaginated newest-first list (<= 50 active plus history), HTTP 401 invalid/revoked key, 120 req/min/IP.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x402_list_delegate_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Optional lifecycle status filter: "all" (default, every key), "active" (non-revoked and unexpired), "revoked", or "expired". | |
| spend_key | No | Stripe-funded master or delegated subagent spend key (format: sbk_<43+ chars>). Optional when the caller supplies the x-atlas-spend-key HTTP header. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the delegated keys listing succeeded. | |
| key_role | No | Authority tier of the caller key. | |
| delegates | No | Delegated subagent key records with policy caps and real-time spend usage. | |
| account_id | No | Account identifier owning the delegated keys. | |
| total_count | No | Total delegated keys recorded on the account across all statuses. | |
| active_count | No | Count of currently active (non-revoked, unexpired) delegated keys. | |
| returned_count | No | Number of delegated keys returned after applying any status filter. |