---
title: "List custom event types."
method: GET
path: "/event_types"
tags: ["AI Assistants"]
---

# List custom event types.

`GET /event_types`

## Request

- Base URL: `https://h2ogpte.genai.h2o.ai/api/v1`
- URL: `https://h2ogpte.genai.h2o.ai/api/v1/event_types`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/h2o/apis/h2ogpte-rest-api/docs/event_types/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists custom event types. Optionally filter by assistant_id to see subscription status.

## Query parameters

- `assistant_id` string, uuid
- `limit` integer
- `offset` integer

## Response `200`

Successful operation

- EventType[]
  - `id` string, uuid
  - `name` string
  - `description` string
  - `payload_schema` object
  - `user_id` string, uuid
  - `subscriber_count` integer
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `default`: Unexpected error

---

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