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

# Create an event type



## OpenAPI

````yaml /openapi.json post /public/v1/scheduling/event-types
openapi: 3.0.0
info:
  title: Hostreach API
  description: >-
    Public REST API for Hostreach.


    Authenticate with an API key via the `X-Api-Key` header or `Authorization:
    Bearer <key>` header.


    Generate API keys from **Settings › Workspace › Acceso API** in the
    dashboard.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.hostreach.io/v1
    description: Production
  - url: http://localhost:3001/v1
    description: Local
security:
  - apiKey: []
tags:
  - name: Identity
    description: Current workspace and usage
  - name: Platforms
    description: Supported real-estate portals and filter schemas
  - name: Extractions
    description: Lead extraction jobs
  - name: Leads
    description: Lead management
  - name: Campaigns
    description: Campaign management
  - name: Messaging
    description: Inbox and WhatsApp conversations
  - name: Templates
    description: WhatsApp message templates
  - name: Accounts
    description: WhatsApp accounts
  - name: Valuations
    description: Property valuations
  - name: Fichas
    description: Property listing sheets
  - name: Scheduling
    description: Calendar and appointments
  - name: Webhooks
    description: Event subscriptions
paths:
  /public/v1/scheduling/event-types:
    post:
      tags:
        - Scheduling
      summary: Create an event type
      operationId: PublicSchedulingController_createEventType
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - ownerAgentUserId
                - name
                - slug
                - durationMin
                - locationMode
              properties:
                ownerAgentUserId:
                  type: string
                  format: uuid
                  description: UUID of the agent (user) who owns this event type.
                agendaId:
                  type: string
                  format: uuid
                  description: >-
                    Existing agenda UUID. If omitted, a new agenda will be
                    created.
                name:
                  type: string
                  description: Display name for the event type.
                  example: Property Tour
                slug:
                  type: string
                  description: >-
                    URL-friendly identifier (lowercase letters, numbers and
                    hyphens).
                  example: property-tour
                description:
                  type: string
                  description: Public description shown on the booking page.
                durationMin:
                  type: integer
                  minimum: 5
                  maximum: 1440
                  description: Duration in minutes.
                  example: 30
                bufferBeforeMin:
                  type: integer
                  minimum: 0
                  default: 0
                  description: Buffer time before the meeting (minutes).
                bufferAfterMin:
                  type: integer
                  minimum: 0
                  default: 0
                  description: Buffer time after the meeting (minutes).
                locationMode:
                  type: string
                  enum:
                    - onsite
                    - call
                    - video
                  description: Meeting location mode.
                  example: onsite
                locationDetails:
                  type: object
                  description: Location details object (format depends on `locationMode`).
                color:
                  type: string
                  description: Hex color for calendar display.
                  example: '#3b82f6'
                visibility:
                  type: string
                  enum:
                    - agent_private
                    - workspace_template
                  default: agent_private
                isActive:
                  type: boolean
                  default: true
                config:
                  type: object
                  description: >-
                    Event type config bundle (questions, reminders, confirmation
                    settings).
                availabilityConfig:
                  type: object
                  description: Availability schedule for this event type.
              example:
                ownerAgentUserId: 3fa85f64-5717-4562-b3fc-2c963f66afa6
                name: Property Tour
                slug: property-tour
                durationMin: 30
                locationMode: onsite
      responses:
        '201':
          description: ''
      security:
        - bearerApiKey: []
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        API key (hr_live_... or hr_test_...). Generate from Settings › Workspace
        › Acceso API.

````