LOOMAL
SDK / API ReferenceLogs

Log Statistics

Get summary statistics for activity logs

Get aggregate statistics for the identity's activity logs.

Request

import { Loomal } from "@loomal/sdk";

const loomal = new Loomal({ apiKey: process.env.LOOMAL_API_KEY! });
const stats = await loomal.logs.stats();
import os
from loomal import Loomal

loomal = Loomal(api_key=os.environ["LOOMAL_API_KEY"])
stats = loomal.logs.stats()
loomal logs stats
logs.stats
curl https://api.loomal.ai/v0/logs/stats \
  -H "Authorization: Bearer loid-your-api-key"

Response 200

{
  "total": 142,
  "today": 12,
  "errors": 3,
  "byCategory": {
    "mail": 98,
    "vault": 30,
    "identity": 8,
    "auth": 6
  }
}

On this page