Get error stats
Get error stats
GET
/
v3
/
analytics
/
errors
Get error stats
Copy
Ask AI
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));
Copy
Ask AI
{
"byKey": [
{
"count": 123,
"keyId": "<string>",
"keyName": "<string>",
"lastUsed": "<string>",
"errorCount": 123,
"errorRate": 123
}
],
"errors": [
{
"count": 123,
"percentage": 123,
"statusCode": 123,
"type": "add"
}
],
"hourly": [
{
"count": 123,
"hour": "<string>",
"errorCount": 123,
"errorRate": 123
}
],
"pagination": {
"currentPage": 1,
"limit": 10,
"totalItems": 100,
"totalPages": 10
},
"summary": [
{
"errorRate": 123,
"lastRequest": "<string>",
"successRate": 123,
"totalRequests": 123,
"type": "add"
}
]
}
Authorizations
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
.
Was this page helpful?
Get error stats
Copy
Ask AI
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));
Copy
Ask AI
{
"byKey": [
{
"count": 123,
"keyId": "<string>",
"keyName": "<string>",
"lastUsed": "<string>",
"errorCount": 123,
"errorRate": 123
}
],
"errors": [
{
"count": 123,
"percentage": 123,
"statusCode": 123,
"type": "add"
}
],
"hourly": [
{
"count": 123,
"hour": "<string>",
"errorCount": 123,
"errorRate": 123
}
],
"pagination": {
"currentPage": 1,
"limit": 10,
"totalItems": 100,
"totalPages": 10
},
"summary": [
{
"errorRate": 123,
"lastRequest": "<string>",
"successRate": 123,
"totalRequests": 123,
"type": "add"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.