Console Logs API

The Console Logs API is a secure REST API that provides console logs.

Get console logs for a specific solve.

get

Retrieves console logs for a specific rule solve identified by its correlationId. The correlationId can be obtained from the X-Correlation-Id response header of the Rule Solver API. Logs are only generated when the solve is run in debug mode (e.g., using the X-Debug: true header).

Authorizations
Path parameters
correlationIdstring · uuidRequired

The unique identifier for a rule solve.

Example: a1b2c3d4-e5f6-7g8h-9i0j-1k2l3m4n5o6p
Responses
200

Console logs retrieved successfully.

application/json
get
GET /consoleLogs/{correlationId} HTTP/1.1
Host: api.decisionrules.io
Authorization: Bearer ApiKey
Accept: */*
[
  {
    "_id": "text",
    "apiKey": {
      "created": "2025-08-22T14:31:34.315Z",
      "type": "text",
      "key": "text",
      "id": "text",
      "name": "text"
    },
    "id": "text",
    "time": "2025-08-22T14:31:34.315Z",
    "logs": [
      {
        "timestamp": "2025-08-22T14:31:34.315Z",
        "level": "text",
        "message": "text"
      }
    ],
    "baseId": "text",
    "input": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "output": [
      {
        "prices": {
          "finalPrice": 1,
          "crudePrice": 1
        },
        "message": "text"
      }
    ],
    "correlationId": "123e4567-e89b-12d3-a456-426614174000"
  }
]

Last updated

Was this helpful?