const url = 'https://api.supermemory.ai/v3/analytics/logs';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
{
"logs": [
"<any>"
],
"pagination": {
"currentPage": 1,
"limit": 10,
"totalItems": 100,
"totalPages": 10
}
}
Get logs
const url = 'https://api.supermemory.ai/v3/analytics/logs';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}, body: undefined};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
{
"logs": [
"<any>"
],
"pagination": {
"currentPage": 1,
"limit": 10,
"totalItems": 100,
"totalPages": 10
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Logs
The response is of type object
.
Was this page helpful?