Check prepaid session balance & expiry
get_agent_session_statusCheck remaining USD balance, call count, active status, and expiration timestamp for an x402s_ prepaid session token; returns 404 for unknown or expired tokens.
Instructions
Check remaining USD balance, call count, active status, and ISO expiration timestamp for an existing x402s_... prepaid session token minted via open_agent_session or https://apix402data.com/pay. Pass session_token (required x402s_... string). Returns active, remaining_usd, calls_made, and expires_at; returns HTTP 404/invalid error if the token is unknown or expired. Do not use to create a new session (use open_agent_session). Free and read-only (never consumes free-trial quota).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_token": "<session_token>"
},
"name": "get_agent_session_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_token | Yes | Prepaid x402s_... session token to inspect. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | No | ||
| endpoint | No | ||
| calls_made | No | ||
| expires_at | No | ||
| remaining_usd | No |