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

# List Event Types

> The events you can subscribe to, and the permission each needs.

See [Events](https://api-docs.nowbookit.com/platform/webhooks/events.md) for what each event's request contains.


## OpenAPI

````yaml platform/webhooks/openapi.json GET /webhooks/events
openapi: 3.0.4
info:
  title: NowBookIt Webhooks API
  description: >-
    Manage the webhooks that send a venue's booking and gift card events to your
    system.
  version: v1
  contact:
    email: platform.integrations@nowbookit.com
servers:
  - url: https://platform.uat.nowbookit.com/api/comms
    description: UAT
  - url: https://platform.nowbookit.com/api/comms
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Webhooks
    description: Webhook management.
paths:
  /webhooks/events:
    get:
      tags:
        - Webhooks
      summary: List event types
      description: >-
        The events you can subscribe to, and the API key permission each one
        needs.
      operationId: listWebhookEvents
      responses:
        '200':
          description: The event catalogue.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEventsResponse'
              example:
                events:
                  - eventType: booking.created
                    permission: reservations:read
                    description: >-
                      A booking is created. A deposit booking is created once
                      its payment is complete.
                  - eventType: giftcard.redeemed
                    permission: giftcards:read
                    description: Some or all of a gift card is redeemed.
        '401':
          description: Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: UnauthorisedError
                message: Invalid API key
                requestId: 8f14e45f-ceea-4c6f-8f89-example
        '403':
          description: Insufficient permissions for this operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: AppError
                message: Insufficient permissions for this operation.
                requestId: 8f14e45f-ceea-4c6f-8f89-example
        '404':
          description: Webhooks aren't switched on for this organisation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: AppError
                message: Webhooks aren't switched on for this organisation.
                requestId: 8f14e45f-ceea-4c6f-8f89-example
components:
  schemas:
    WebhookEventsResponse:
      type: object
      properties:
        events:
          type: array
          items:
            $ref: '#/components/schemas/WebhookEvent'
      required:
        - events
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: >-
            Error class name, e.g. `UnauthorisedError`, `ValidationError`,
            `AppError`.
          example: AppError
        message:
          type: string
          description: What went wrong, described in plain language.
          example: No webhook with that id at this venue.
        requestId:
          type: string
          description: >-
            A unique reference for this request, handy if you contact support
            about it.
          example: 8f14e45f-ceea-4c6f-8f89-example
      required:
        - code
        - message
        - requestId
    WebhookEvent:
      type: object
      properties:
        eventType:
          type: string
          enum:
            - booking.created
            - booking.updated
            - booking.seated
            - booking.finished
            - booking.cancelled
            - giftcard.created
            - giftcard.updated
            - giftcard.cancelled
            - giftcard.redeemed
        permission:
          type: string
          description: The API key permission needed to receive it.
          example: reservations:read
        description:
          type: string
      required:
        - eventType
        - permission
        - description
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key, with the `webhooks:manage` permission. See
        [Authorization](/platform/authorization).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.