---
title: "Export AI chatbot events"
method: GET
path: "/api/sites/{id}/ai-chatbots/export"
tags: ["Sites"]
---

# Export AI chatbot events

`GET /api/sites/{id}/ai-chatbots/export`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/api/sites/{id}/ai-chatbots/export`
- Auth: one of:
  - API key in cookie `hk_token`
  - HTTP bearer
  - API key in header `X-API-Key`

Exports AI chatbot instrumentation events for the selected site and date range in csv/xlsx/parquet/json/ndjson. Optional scope filters restrict the export to a single provider, bot, surface, or model. Repeatable hit-dimension filters restrict the export to matching audience sessions.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `from` string, date-time
- `to` string, date-time
- `format` 'xlsx' | 'csv' | 'parquet' | 'json' | 'ndjson'
- `filter` string
- `scope_key` 'provider' | 'bot_id' | 'surface' | 'model'
- `scope_value` string

## Response `200`

Export file stream

---

[API](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api.md) · [All operations](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/revisions/bb2df36ab2a4?raw)
