Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview

Get detailed execution-log statistics

Aggregates only logs whose parent belongs to the calling credential’s environment.

GET/api/v2/logs/stats
Authorization
AuthorizationBearer token (Anlyon API key) · headerrequired

Workspace API key sent as Authorization: Bearer <key>.

or
better-auth.session_tokenAPI key · cookierequired

Browser session used by dashboard-only operations.

Query parameters
typestring
default: "all"
Allowed:messagescheduleall
startDatestring<date-time>

Start date for filtering (ISO 8601 format)

endDatestring<date-time>

End date for filtering (ISO 8601 format)

Header parameters
X-Request-Idstring

Optional caller correlation ID. Unsafe or oversized values are replaced.

max length 128
Responses
200

Detailed log distributions and duration percentiles returned.

successbooleanrequired
Allowed:true
dataobjectrequired
Show properties
byStatusobjectrequired
byHttpStatusobjectrequired
byErrorCodeobjectrequired
byHourobject[]required
Show properties
Array of object
hourstringrequired
countintegerrequired
min 0
errorsintegerrequired
min 0
avgDurationintegerrequired
min 0
p50Durationintegerrequired
min 0
p95Durationintegerrequired
min 0
p99Durationintegerrequired
min 0
400

Bad Request - Invalid input data

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
401

Unauthorized - Invalid or missing API key

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
403

Authenticated credential lacks the required scope or workspace access.

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
429

Too Many Requests - Rate limit exceeded

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.anlyon.com/api/v2/logs/stats' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "success": true,
  "data": {
    "byStatus": {
      "property1": 0,
      "property2": 0
    },
    "byHttpStatus": {
      "property1": 0,
      "property2": 0
    },
    "byErrorCode": {
      "property1": 0,
      "property2": 0
    },
    "byHour": [
      {
        "hour": "string",
        "count": 0,
        "errors": 0
      }
    ],
    "avgDuration": 0,
    "p50Duration": 0,
    "p95Duration": 0,
    "p99Duration": 0
  }
}