GET
/
logs
/
trace
/
{traceId}
Get logs by trace ID
curl --request GET \
  --url https://localhost:5000/logs/trace/{traceId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Trace logs retrieved successfully",
  "data": {
    "traceId": "<string>",
    "count": 123,
    "logs": [
      {
        "_id": "<string>",
        "scenarioId": "<string>",
        "stepId": "<string>",
        "traceId": "<string>",
        "simTimestamp": 123,
        "level": "INFO",
        "action": {
          "type": "<string>",
          "description": "<string>"
        },
        "actor": {
          "type": "<string>",
          "id": "<string>"
        },
        "payload": {},
        "stateDiff": {
          "before": {},
          "after": {},
          "changes": [
            "<string>"
          ]
        },
        "createdAt": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

traceId
string
required

Trace ID

Response

Trace logs retrieved successfully

success
boolean
Example:

true

message
string
Example:

"Trace logs retrieved successfully"

data
object