Retrieve hosted MCP endpoint usage for a project
What the project's hosted MCP endpoint has served over the last `days` (default 30, max 90): tool calls, calls that returned an error, calls turned away by the rate limit, mean upstream latency, and a per-tool breakdown. The same numbers the console shows next to the endpoint URL. Zeroes when the endpoint is off or unused.
What the project's hosted MCP endpoint has served over the last days (default 30, max 90): tool calls, calls that returned an error, calls turned away by the rate limit, mean upstream latency, and a per-tool breakdown. The same numbers the console shows next to the endpoint URL. Zeroes when the endpoint is off or unused.
Authorization
apiKey API key from the console, ak_....
In: header
Path Parameters
Query Parameters
Window in days, 1 to 90.
1 <= value <= 9030Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/projects/string/mcp_usage"{ "object": "mcp_usage", "project_id": "string", "mcp_url": "string", "days": 0, "calls": 0, "errors": 0, "rate_limited": 0, "avg_duration_ms": 0, "by_tool": [ { "tool": "string", "calls": 0, "errors": 0 } ]}