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

Get cross-product analytics overview

Returns reliability, usage, and attention signals across the workspace’s products.

GET/api/v2/analytics/overview
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
startDatestring<date-time>

Start date for filtering (ISO 8601 format)

endDatestring<date-time>

End date for filtering (ISO 8601 format)

granularitystring
default: "day"
Allowed:hourdayweekmonth
environmentIdstring<uuid>

Optional environment scope for session-authenticated requests.

limitinteger
min 1 · max 100 · default: 10
Header parameters
X-Request-Idstring

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

max length 128
Responses
200

Cross-product workspace analytics returned.

successbooleanrequired
Allowed:true
dataAnalyticsOverviewDatarequired
Show properties
rangeAnalyticsRangeMetadatarequired
Show properties
startDatestring<date-time>required
endDatestring<date-time>required
granularitystringrequired
Allowed:hourdayweekmonth
truncatedbooleanrequired

True when the requested range exceeded plan retention.

retentionDaysinteger | nullrequired

Null means unlimited retention.

min 1
scopeAnalyticsScopeMetadatarequired
Show properties
workspaceIdstring<uuid>required
environmentIdstring<uuid> | nullrequired
summaryobjectrequired
Show properties
agentRunsintegerrequired
min 0
agentRunSuccessRatenumberrequired
min 0 · max 100
messagesDeliveredintegerrequired
min 0
messageSuccessRatenumberrequired
min 0 · max 100
actionInvocationsintegerrequired
min 0
actionSuccessRatenumberrequired
min 0 · max 100
pendingApprovalsintegerrequired
min 0
usageobjectrequired
seriesAnalyticsUsage[]required
Show properties
Array of AnalyticsUsage
datestring<date>required
messagesPublishedintegerrequired
min 0
messagesDeliveredintegerrequired
min 0
messagesFailedintegerrequired
min 0
bandwidthBytesintegerrequired
min 0
eventPublishesintegerrequired
min 0
actionInvokesintegerrequired
min 0
attentionobject[]required
Show properties
Array of object
productstringrequired
Allowed:agentsdeliveryactionsapprovals
labelstringrequired
countintegerrequired
min 0
hrefstringrequired
400

Bad Request - Invalid input data

successbooleanrequired
requestIdstringrequired

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

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
fixErrorFix

How to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.

Show properties
summarystringrequired

One sentence that says what to do.

commandstring

An exact anlyon CLI command that fixes it. Absent when no command does.

urlstring<uri>

An absolute console link where a person fixes it.

docsstring<uri>

A docs page that explains it.

401

Unauthorized - Invalid or missing API key

successbooleanrequired
requestIdstringrequired

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

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
fixErrorFix

How to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.

Show properties
summarystringrequired

One sentence that says what to do.

commandstring

An exact anlyon CLI command that fixes it. Absent when no command does.

urlstring<uri>

An absolute console link where a person fixes it.

docsstring<uri>

A docs page that explains it.

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
fixErrorFix

How to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.

Show properties
summarystringrequired

One sentence that says what to do.

commandstring

An exact anlyon CLI command that fixes it. Absent when no command does.

urlstring<uri>

An absolute console link where a person fixes it.

docsstring<uri>

A docs page that explains it.

429

Too Many Requests - Rate limit exceeded. A workspace's API requests are limited per minute and per UTC clock hour by plan; Retry-After says when to try again, and an hourly refusal names the limit and when the count resets. Successful responses carry the same limits in X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (the minute) and X-RateLimit-Limit-Hour, X-RateLimit-Remaining-Hour, X-RateLimit-Reset-Hour (the hour).

successbooleanrequired
requestIdstringrequired

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

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
fixErrorFix

How to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.

Show properties
summarystringrequired

One sentence that says what to do.

commandstring

An exact anlyon CLI command that fixes it. Absent when no command does.

urlstring<uri>

An absolute console link where a person fixes it.

docsstring<uri>

A docs page that explains it.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.anlyon.com/api/v2/analytics/overview' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "success": true,
  "data": {
    "range": {
      "startDate": "2019-08-24T14:15:22Z",
      "endDate": "2019-08-24T14:15:22Z",
      "granularity": "hour",
      "truncated": true,
      "retentionDays": 1
    },
    "scope": {
      "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c",
      "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563"
    },
    "summary": {
      "agentRuns": 0,
      "agentRunSuccessRate": 0,
      "messagesDelivered": 0,
      "messageSuccessRate": 0,
      "actionInvocations": 0,
      "actionSuccessRate": 0,
      "pendingApprovals": 0
    },
    "usage": {},
    "series": [
      {
        "date": "2026-07-13",
        "messagesPublished": 500,
        "messagesDelivered": 480,
        "messagesFailed": 20,
        "bandwidthBytes": 1048576,
        "eventPublishes": 76,
        "actionInvokes": 44
      }
    ],
    "attention": [
      {
        "product": "agents",
        "label": "string",
        "count": 0,
        "href": "string"
      }
    ]
  }
}

Was this page helpful?