# Create an event

`POST /onair.event.create`

## Description

Creates a new On-Air event. The calendar host must be a member of the organization.
When using a personal access token, `calendarHostEmail` must match the authenticated user.

Optionally provide display hosts in the `hosts` array. Display hosts appear on
the event page and are independent of the calendar host.

**Access:** Organization and Personal.

**Required scope:** `onair:write`

---

**OpenAPI Spec:** [onair.json](https://developer.ro.am/onair.json)

## Authentication

```
Authorization: Bearer YOUR_API_KEY
```

## Request Body

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `title` | string | Yes | Title of the event. |
| `description` | string | No | Description of the event. |
| `calendarHostEmail` | string | Yes | Email of the calendar host who manages invites and reminders. Must be a member of the organization. Personal tokens can only specify the authenticated user's email. |
| `hosts` | object[] | No | Display hosts shown on the event page (maximum 6). Optional — if omitted, no display hosts are added. |
| `start` | string | Yes | Start time of the event (RFC 3339). |
| `end` | string | Yes | End time of the event (RFC 3339). |
| `timeZone` | string | Yes | IANA time zone identifier (e.g. `America/New_York`). |
| `enableSEO` | boolean | No | Whether the event page is indexed by search engines. |
| `autoAdmit` | boolean | No | Whether guests are automatically admitted when they join. |
| `disableRSVP` | boolean | No | Whether RSVPs are disabled for this event. |

**hosts** (array item):

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | string | No | Display name of the host. |
| `imageUrl` | string | No | URL of the host's profile image. From API version `2026-08-25` must be a Roam-hosted avatar URL from [`/asset.create`](/docs/api/asset-create) with `purpose: "avatar"`, or a legacy `/card-images/` or  |

### Example Request

```json
{
  "title": "Q1 All Hands",
  "description": "Quarterly company all-hands meeting",
  "calendarHostEmail": "jane@example.com",
  "hosts": [
    {
      "name": "Jane Smith",
      "imageUrl": "https://ro.am/assets/9b1c2d3e-4f50-6a7b-8c9d-0e1f2a3b4c5d/content/avatar.webp"
    }
  ],
  "start": "2026-04-01T14:00:00Z",
  "end": "2026-04-01T15:00:00Z",
  "timeZone": "America/New_York",
  "enableSEO": true,
  "autoAdmit": false,
  "disableRSVP": false
}
```

## Responses

### 200 - The created event.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | string | Yes | Unique identifier of the event. |
| `title` | string | Yes | Title of the event. |
| `description` | string | No | Description of the event. |
| `slug` | string | Yes | URL-friendly slug for the event. |
| `start` | string | Yes | Start time of the event (RFC 3339). |
| `end` | string | Yes | End time of the event (RFC 3339). |
| `timeZone` | string | Yes | IANA time zone identifier (e.g. `America/New_York`). |
| `eventPageUrl` | string | Yes | Public URL of the event page. |
| `joinLinkUrl` | string | No | URL for joining the event. |
| `enableSEO` | boolean | Yes | Whether the event page is indexed by search engines. |
| `autoAdmit` | boolean | Yes | Whether guests are automatically admitted when they join. |
| `disableRSVP` | boolean | Yes | Whether RSVPs are disabled for this event. |
| `hosts` | OnAirHost[] | Yes | List of hosts for the event. |

**OnAirHost** (array item):

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | string | Yes | Unique identifier of the host. |
| `name` | string | No | Display name of the host. |
| `imageUrl` | string | No | URL of the host's profile image. From API version `2026-08-25`, write paths require a Roam-hosted avatar URL from [`/asset.create`](/docs/api/asset-create) with `purpose: "avatar"`, or a legacy `/card |

### 400 - Bad request.

### 401 - Presented invalid authentication credentials.

### 500 - An internal error occurred.

---

*Machine-readable API documentation.*
*Full documentation: https://developer.ro.am/docs/onair-api/onair-event-create*
