Skip to main content
POST
Error
Creates a new local calendar event. Use this endpoint for scheduling automation and imports that already know the target calendar.
Required API key scope: calendar:create.

Body parameters

string
required
UUID of the calendar where the event should be created.
string
Event title. Empty titles are allowed.
string
required
ISO 8601 datetime for the event start.
string
required
ISO 8601 datetime for the event end.
boolean
Whether this is an all-day event.
string
Event location.
string
Meeting or conference URL.
string
Internal notes for the event.
integer
Reminder offset in minutes. The maximum value is 10080.
array
Attendee objects for the event.

Example body

Response

Returns the created calendar event with the same shape as List events.

Authorizations

Authorization
string
header
default:phk_your_api_key
required

Paste your Pharen API key without the Bearer prefix.

Body

application/json
calendar_id
string<uuid>
required
starts_at
string<date-time>
required
ends_at
string<date-time>
required
title
string
is_all_day
boolean
location
string
conference_url
string<uri>
notes
string
reminder_minutes_before_start
integer
Required range: 0 <= x <= 10080
attendees
object[]

Response

Calendar event created.

id
string<uuid>
calendar_id
string<uuid>
title
string
Example:

"Quarterly planning"

starts_at
string<date-time>
ends_at
string<date-time>
is_all_day
boolean
location
string
conference_url
string<uri>
attendees
object[]