Verify API key and inspect live unit usage
verify_api_keyVerify that the caller middle.network API key or OAuth token is valid and active, returning key metadata, live daily/monthly unit-cost usage, remaining quota, and rate limits. Takes no parameters ({}); validates the Authorization bearer token from the request header. Use for setup verification, unit-cost usage inspection, or diagnosing HTTP 401 errors; do not use to list probe locations (list_probes) or check caller IP (my_ip). Returns isError=true if key verification fails; requires middle.network auth and uses 0 daily quota units.
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": "verify_api_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Authenticated API key metadata. | |
| usage | No | Live UTC-day and monthly cost-unit usage for this key. | |
| valid | Yes | True when the Bearer API key is active. | |
| limits | Yes | Active rate-limit and quota allowances for this key. |