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

# Create Real Time Booking Action

### Authorizations

<ParamField header="Authorization" type="string" required>
  Enter your Bearer token.
</ParamField>

### Request Body

<ParamField body="name" type="string" required>
  Action display name.
</ParamField>

<ParamField body="description" type="string" required>
  Action purpose.
</ParamField>

<ParamField body="action_timing" type="string" required>
  `"DURING"` | `"AFTER"` | `"BEFORE"`
</ParamField>

<ParamField body="type" type="string" required>
  Action type: `"APPOINTMENT"`
</ParamField>

<ParamField body="webhook" type="object" required>
  Booking configuration.

  <ParamField body="email" type="string" required>
    Google Calendar email.
  </ParamField>

  <ParamField body="type" type="string" required>
    `"google"` or `"outlook"`
  </ParamField>

  <ParamField body="user_id" type="string" required>
    The UUID of the user.
  </ParamField>

  <ParamField body="mandatory" type="boolean">
    Require confirmation.
  </ParamField>

  <ParamField body="timezone" type="string">
    IANA timezone.
  </ParamField>

  <ParamField body="buffer_time" type="integer">
    Minutes between bookings.
  </ParamField>

  <ParamField body="booking_timings" type="object">
    Weekly availability.

    <ParamField body="monday" type="object">
      Monday schedule (e.g. `{"start_time": "09:00", "end_time": "17:00"}`)
    </ParamField>
  </ParamField>

  <ParamField body="round_robin_emails" type="string[]" default={[]}>
    List of email addresses for distribution. Leave as `[]` for none.
  </ParamField>
</ParamField>

### Response

**201 Created** - Action created successfully

<ResponseField name="ctx_id" type="string">Request context ID</ResponseField>

<ResponseField name="data" type="object">
  <ResponseField name="action_id" type="string">New action ID</ResponseField>
  <ResponseField name="name" type="string">Action name</ResponseField>
</ResponseField>
