---
title: "Subscribe to live event logs"
method: POST
path: "/event/log/subscribe"
tags: ["Event"]
---

# Subscribe to live event logs

`POST /event/log/subscribe`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/event/log/subscribe`
- Auth: HTTP bearer

Subscribe to receive real-time event logs as they are generated. This
endpoint returns a streaming response that continuously delivers events
as they occur in your account. The connection remains open until the
client closes it or an error occurs.

This is useful for:
- Real-time monitoring dashboards
- Live debugging and troubleshooting
- Building reactive integrations
- Streaming event data to external systems

For historical event data, use the `/event/log/list` endpoint instead.

## Request body

- object
  - `historyLength` integer: Number of recent historical events to replay before subscribing to live updates. When provided, the subscriber will first receive up to this many recent events that were logged before the subscription started. This is useful for catching up on events that may have occurred during connection setup.

## Response `200`

Successfully subscribed to event logs

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
