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

# Create a booking event type



## OpenAPI

````yaml /openapi.yaml post /workspaces/{workspace}/booking-event-types
openapi: 3.1.0
info:
  title: Contact Button API
  version: 1.0.0-alpha.1
  description: >
    API-first management and public agent actions for Contact Buttons and
    button.contact pages.

    API v1 is the first public contract. Existing private legacy API and browser
    workflows remain supported.
  contact:
    name: Contact Button
    url: https://learn.contactbutton.com
servers:
  - url: https://api.contactbutton.com/v1
    description: Production (canonical)
  - url: https://app.contactbutton.com/v1
    description: Backwards-compatible application-domain alias
security:
  - bearerAuth: []
tags:
  - name: Onboarding
    description: Human-verified agent onboarding.
  - name: Workspaces
  - name: Team
  - name: Pages
  - name: Domains
  - name: Buttons
  - name: Forms
  - name: Surveys
  - name: Apps
  - name: Knowledge
  - name: Booking
  - name: Telephony
    description: >-
      Bring-your-own-Telnyx setup, call flows, phone numbers, and voice
      interactions.
  - name: Reviews
    description: >-
      Send consented review requests through workspace-owned email, SMS, and
      WhatsApp channels.
  - name: Commerce
  - name: Engagement inbox
  - name: Public actions
    description: Public, rate-limited actions that may require human confirmation.
paths:
  /workspaces/{workspace}/booking-event-types:
    parameters:
      - $ref: '#/components/parameters/WorkspaceId'
    post:
      tags:
        - Booking
      summary: Create a booking event type
      operationId: createBookingEventType
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BookingEventTypeInput'
      responses:
        '201':
          $ref: '#/components/responses/Data'
components:
  parameters:
    WorkspaceId:
      name: workspace
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    BookingEventTypeInput:
      type: object
      required:
        - name
        - duration_minutes
        - timezone
        - availability
      properties:
        project_id:
          type:
            - string
            - 'null'
          format: uuid
        name:
          type: string
        slug:
          type: string
        description:
          type: string
        duration_minutes:
          type: integer
          minimum: 5
          maximum: 480
        buffer_before_minutes:
          type: integer
          minimum: 0
        buffer_after_minutes:
          type: integer
          minimum: 0
        minimum_notice_minutes:
          type: integer
          minimum: 0
        booking_window_days:
          type: integer
          minimum: 1
          maximum: 365
        timezone:
          type: string
          example: Europe/Amsterdam
        location_type:
          type: string
          enum:
            - phone
            - video
            - in_person
            - custom
        location:
          type: string
        confirmation_mode:
          type: string
          enum:
            - email_otp
            - automatic
          default: email_otp
        availability:
          type: array
          items:
            type: object
            required:
              - day_of_week
              - starts_at
              - ends_at
            properties:
              day_of_week:
                type: integer
                minimum: 1
                maximum: 7
              starts_at:
                type: string
                pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$
              ends_at:
                type: string
                pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$
    DataResponse:
      type: object
      required:
        - data
        - meta
      properties:
        data: {}
        meta:
          type: object
          properties:
            request_id:
              type: string
            next_cursor:
              type:
                - string
                - 'null'
  responses:
    Data:
      description: Successful data envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DataResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum personal access token
      description: >
        A Contact Button scoped bearer key. Send `Authorization: Bearer
        <token>`.

        Token abilities are enforced independently of workspace membership; both
        checks must pass.

        OAuth 2.0 authorization-code flows are not currently available.
      x-contact-button-token-abilities:
        workspaces:read: Read workspaces, teams, domains, settings, and connections.
        workspaces:write: >-
          Create and manage workspaces, teams, domains, settings, and
          connections.
        content:read: Read buttons, forms, lists, pages, booking types, and knowledge.
        content:write: Create, update, publish, and remove content.
        engagements:read: >-
          Read submissions, subscribers, bookings, callbacks, calls, reviews,
          and conversations.
        engagements:manage: Reply to and manage engagement records.
        actions:request: Request protected actions that can still require human confirmation.

````

## Related topics

- [List booking event types](/api-reference/booking/list-booking-event-types.md)
- [List public booking event types](/api-reference/booking/list-public-booking-event-types.md)
- [Bookings and callbacks](/guides/booking-callbacks.md)
- [Request a booking](/api-reference/booking/request-a-booking.md)
- [List available booking slots](/api-reference/booking/list-available-booking-slots.md)
