> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whatabot.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Session Events

> Get error logs and events for a specific session.

Retrieve the error logs and events that occurred during a session execution. Useful for debugging flow issues.

<ParamField header="X-Api-Key" type="string" required>
  Your API key (prefixed with `wh_`).
</ParamField>

<ParamField path="sessionId" type="string" required>
  The UUID of the session log.
</ParamField>

<RequestExample>
  ```bash theme={null}
  curl -X GET https://api.whatabot.app/api/v1/sessions/logs/{sessionId}/events \
    -H "X-Api-Key: wh_your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "id": "evt-uuid-001",
      "nodeId": "node-uuid-123",
      "nodeType": "APIRequest",
      "severity": "error",
      "error": "Request timeout after 10000ms",
      "breadcrumb": ["start", "message-1", "api-request-1"],
      "context": null,
      "occurredAt": "2025-01-15T10:31:05.000Z"
    }
  ]
  ```
</ResponseExample>
