GET
/
v3
/
analytics
/
errors
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.supermemory.ai/v3/analytics/errors', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
{
  "errors": [
    {
      "type": "add",
      "statusCode": 123,
      "count": 123,
      "percentage": 123
    }
  ],
  "summary": [
    {
      "type": "add",
      "totalRequests": 123,
      "successRate": 123,
      "errorRate": 123,
      "lastRequest": "<string>"
    }
  ],
  "hourly": [
    {
      "hour": "<string>",
      "count": 123,
      "errorRate": 123,
      "errorCount": 123
    }
  ],
  "byKey": [
    {
      "keyId": "<string>",
      "keyName": "<string>",
      "count": 123,
      "lastUsed": "<string>",
      "errorRate": 123,
      "errorCount": 123
    }
  ],
  "pagination": {
    "currentPage": 1,
    "totalPages": 10,
    "limit": 10,
    "totalItems": 100
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json

Error stats

The response is of type object.