Metrics endpoint is a 404 error code
# support
m
Hello, my endpoint GET "metrics" does not work now, but worked during many months before. Is it a bug from your servers or this endpoint were deleted ? If deleted, what can i use to see the same informations ?
v
The
/metrics
endpoint has been removed and replaced by the
/analytics
endpoint.
To get similar information, use a POST request to
/analytics
with your queries. Here’s a quick example:
Copy code
bash
curl -X POST https://api.vapi.ai/analytics \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "queries": [
      {
        "table": "call",
        "name": "name",
        "operations": [
          { "operation": "sum", "column": "id" }
        ]
      }
    ]
  }'
Update your integration to use this endpoint for metrics and analytics data. Sources: - [Changelog February 10, 2025](https://docs.vapi.ai/changelog/2025/2/10) - [Analytics API Reference](https://docs.vapi.ai/api-reference/analytics/get)
k
The old GET /metrics endpoint is deprecated; use the POST /analytics endpoint with a query in the request body to get the same metrics now..
v
The GET
/metrics
endpoint has been removed.
To get the same information, use the POST
/analytics
endpoint with your query in the request body. Here’s a quick example:
Copy code
bash
curl -X POST https://api.vapi.ai/analytics \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "queries": [
      {
        "table": "call",
        "name": "name",
        "operations": [
          { "operation": "sum", "column": "id" }
        ]
      }
    ]
  }'
Update your integration to use this endpoint for metrics and analytics data. For more details, see the [Analytics API Reference](https://docs.vapi.ai/api-reference/analytics/get). Sources: - [Changelog February 10, 2025](https://docs.vapi.ai/changelog/2025/2/10) - [Analytics API Reference](https://docs.vapi.ai/api-reference/analytics/get)
2 Views