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

Get schedule statistics

Counts schedules in the calling credential’s environment. A key may only name its own environment; a session caller that names none reads the whole workspace.

GET/api/v2/analytics/schedules
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
environmentIdstring<uuid>
Header parameters
X-Request-Idstring

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

max length 128
Responses
200

Schedule statistics and chart projections returned.

successbooleanrequired
Allowed:true
dataScheduleAnalyticsrequired
Show properties
totalSchedulesintegerrequired
min 0
activeSchedulesintegerrequired
min 0
pausedSchedulesintegerrequired
min 0
chartsAnalyticsChartsrequired

Chart-library-ready projections of the canonical data payload.

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/analytics/schedules' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "success": true,
  "data": {
    "totalSchedules": 0,
    "activeSchedules": 0,
    "pausedSchedules": 0
  },
  "charts": {}
}