---
ai:
  exclude: true
search:
  exclude: true
  tags:
    - Logs
    - GET
seo:
  description: >-
    Returns message (event-webhook delivery) logs in one redacted,… Reference
    for the GET /api/v2/logs endpoint in the Anlyon API: earlier namespaces.
  noindex: true
sidebar:
  label: Query unified execution logs
  badge: GET
title: Query unified execution logs
type: openapi-operation
---
Returns message (event-webhook delivery) 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`

**Responses**

- `200` — Redacted unified execution logs returned with pagination and aggregate statistics.
- `400` — Bad Request - Invalid input data
- `401` — Unauthorized - Invalid or missing API key
- `403` — Authenticated credential lacks the required scope or workspace access.
- `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).

Response example, 200:

```json
{
  "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"
    }
  ],
  "pagination": {
    "total": 0,
    "page": 1,
    "limit": 1,
    "totalPages": 0,
    "hasMore": true
  },
  "stats": {
    "totalSuccess": 0,
    "totalError": 0,
    "totalRetry": 0,
    "avgDuration": 0,
    "errorRate": 0
  }
}
```

Response example, 400:

```json
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid request data",
    "details": {
      "url": "Invalid URL format"
    }
  }
}
```

Response example, 401:

```json
{
  "success": false,
  "error": {
    "code": "AUTHENTICATION_ERROR",
    "message": "Invalid or missing API key"
  }
}
```

Response example, 429:

```json
{
  "success": false,
  "error": {
    "code": "RATE_LIMIT_EXCEEDED",
    "message": "Rate limit exceeded. Please try again later."
  }
}
```
