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

Query unified execution logs

Returns message and schedule logs in one redacted, page-paginated timeline within the calling credential’s environment. Logs without a surviving environment-owned parent are omitted.

GET/api/v2/logs
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
statusstring

Comma-separated status names.

max length 500
startDatestring<date-time>

Start date for filtering (ISO 8601 format)

endDatestring<date-time>

End date for filtering (ISO 8601 format)

httpStatusstring

Comma-separated three-digit HTTP statuses.

matches ^\\d{3}(,\\s*\\d{3})*$
minDurationinteger
min 0
maxDurationinteger
min 0
urlstring
max length 2048
messageIdstring
max length 200
scheduleIdstring
max length 200
errorCodestring
max length 200
searchstring
max length 1000
sortBystring
default: "timestamp"
Allowed:timestampdurationstatushttpStatus
sortOrderstring
default: "desc"
Allowed:ascdesc
pageinteger
min 1 · default: 1
limitinteger
min 1 · max 100 · default: 50
Header parameters
X-Request-Idstring

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

max length 128
Responses
200

Redacted unified execution logs returned with pagination and aggregate statistics.

successbooleanrequired
Allowed:true
dataUnifiedExecutionLog[]required
Show properties
Array of UnifiedExecutionLog
idstring<uuid>required
typestringrequired
Allowed:messageschedule
entityIdstringrequired
statusstringrequired
timestampstring<date-time>required
durationinteger | null
min 0
attemptNumberinteger | null
min 0
requestUrlstring<uri> | null
requestMethodstring | null
requestHeadersRedactedHeaders | null

Header map. Authorization, cookie, proxy-authorization, set-cookie, and x-api-key values are replaced with [REDACTED].

requestBodyany | null
responseStatusinteger | null
responseHeadersRedactedHeaders | null

Header map. Authorization, cookie, proxy-authorization, set-cookie, and x-api-key values are replaced with [REDACTED].

responseBodystring | null
errorMessagestring | null
errorCodestring | null
createdMessageIdstring | null
nextScheduledAtstring<date-time> | null
executedAtstring<date-time> | null
paginationOffsetPaginationrequired
Show properties
totalintegerrequired
min 0
pageintegerrequired
min 1
limitintegerrequired
min 1
totalPagesintegerrequired
min 0
hasMorebooleanrequired
statsBasicExecutionLogStatsrequired
Show properties
totalSuccessintegerrequired
min 0
totalErrorintegerrequired
min 0
totalRetryintegerrequired
min 0
avgDurationintegerrequired
min 0
errorRatenumberrequired
min 0 · max 100
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' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "success": true,
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "type": "message",
      "entityId": "string",
      "status": "string",
      "timestamp": "2019-08-24T14:15:22Z",
      "duration": 0,
      "attemptNumber": 0,
      "requestUrl": "http://example.com",
      "requestMethod": "string",
      "requestHeaders": {},
      "requestBody": null,
      "responseStatus": 0,
      "responseHeaders": {},
      "responseBody": "string",
      "errorMessage": "string",
      "errorCode": "string",
      "createdMessageId": "string",
      "nextScheduledAt": "2019-08-24T14:15:22Z",
      "executedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "total": 0,
    "page": 1,
    "limit": 1,
    "totalPages": 0,
    "hasMore": true
  },
  "stats": {
    "totalSuccess": 0,
    "totalError": 0,
    "totalRetry": 0,
    "avgDuration": 0,
    "errorRate": 0
  }
}