External calendars
Imported iCal calendars, for syncing bookings with platforms like Airbnb or Booking.com
The external calendar object
Attributes
iduuidUnique identifier
created_atread-onlytimestamp with time zoneCreation timestamp
updated_atread-onlytimestamp with time zone | nullTimestamp at which the calendar last received new events
activeread-onlybooleanWhether the calendar is synced, i.e. it is not deactivated
deactivated_attimestamp with time zone | nullTimestamp at which the import was deactivated
deactivated_reasonExternalCalendarDeactivatedReason | nullWhy the import was deactivated: by hand, or because it kept failing
errortext | nullError message if the calendar could not be synced
error_notified_attimestamp with time zone | nullTimestamp at which admins were notified of the current failure
etagtext | nullETag of the last synced feed, sent as If-None-Match
event_status_syncEventStatusSyncHow to treat incoming events
failing_sincetimestamp with time zone | nullTimestamp of the first failed sync since the last successful one
ical_urltextURL of the iCal feed
last_modifiedtext | nullLast-Modified of the last synced feed, sent as If-Modified-Since
last_syncedtimestamp with time zone | nullTimestamp at which the calendar was last synced
nametextName of the calendar
sync_requested_attimestamp with time zoneTimestamp at which a sync was last requested
time_offsetint32Time offset of the calendar in hours
tldtextTop-level domain of the iCal feed URL
Related resources
Embed related resources in the response with the select parameter, for example select=*,products!product_id(*). Resources related through more than one column need the column as a hint, like table!column(*).
calendar_events(*)arrayThe calendar events referencing this external calendar through calendar_events.calendar_id.
{
"id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-11-14T14:43:42.005Z",
"updated_at": "2026-11-14T14:43:42.005Z",
"active": false,
"deactivated_at": "2026-11-14T14:43:42.005Z",
"deactivated_reason": "manual",
"error": "",
"error_notified_at": "2026-11-14T14:43:42.005Z",
"etag": "",
"event_status_sync": "import",
"failing_since": "2026-11-14T14:43:42.005Z",
"ical_url": "https://example.com",
"last_modified": "",
"last_synced": "2026-11-14T14:43:42.005Z",
"name": "Nameless iCal import",
"sync_requested_at": "2026-11-14T14:43:42.005Z",
"time_offset": 0,
"tld": ""
}curl "https://api.bookingmood.com/v1/external_calendars?limit=10&select=*,products!product_id(*),calendar_events(*)" \
-H "Authorization: Bearer YOUR_API_KEY"List external calendars
Requiresproducts:read
Filters
idFilter<uuid>Unique identifier
created_atFilter<timestamp with time zone>Creation timestamp
updated_atFilter<timestamp with time zone | null>Timestamp at which the calendar last received new events
activeFilter<boolean>Whether the calendar is synced, i.e. it is not deactivated
deactivated_atFilter<timestamp with time zone | null>Timestamp at which the import was deactivated
deactivated_reasonFilter<ExternalCalendarDeactivatedReason | null>Why the import was deactivated: by hand, or because it kept failing
errorFilter<text | null>Error message if the calendar could not be synced
error_notified_atFilter<timestamp with time zone | null>Timestamp at which admins were notified of the current failure
etagFilter<text | null>ETag of the last synced feed, sent as If-None-Match
event_status_syncFilter<EventStatusSync>How to treat incoming events
failing_sinceFilter<timestamp with time zone | null>Timestamp of the first failed sync since the last successful one
ical_urlFilter<text>URL of the iCal feed
last_modifiedFilter<text | null>Last-Modified of the last synced feed, sent as If-Modified-Since
last_syncedFilter<timestamp with time zone | null>Timestamp at which the calendar was last synced
nameFilter<text>Name of the calendar
sync_requested_atFilter<timestamp with time zone>Timestamp at which a sync was last requested
time_offsetFilter<int32>Time offset of the calendar in hours
tldFilter<text>Top-level domain of the iCal feed URL
Responses
200A list of external calendars with the selected columns
206Partial Content
400The request is malformed, for example an unknown column or an invalid filter.
401The API key is missing or invalid.
403The API key or access token doesn't have the scope this request needs.
429The API key made more requests per minute than its rate limit allows. Retry after the number of seconds in the `Retry-After` header.
code, message, details and hint. See the introduction for more on errors.curl "https://api.bookingmood.com/v1/external_calendars?select=*&limit=10" \
-H "Authorization: Bearer YOUR_API_KEY"[
{
"id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-11-14T14:43:42.005Z",
"updated_at": "2026-11-14T14:43:42.005Z",
"active": false,
"deactivated_at": "2026-11-14T14:43:42.005Z",
"deactivated_reason": "manual",
"error": "",
"error_notified_at": "2026-11-14T14:43:42.005Z",
"etag": "",
"event_status_sync": "import",
"failing_since": "2026-11-14T14:43:42.005Z",
"ical_url": "https://example.com",
"last_modified": "",
"last_synced": "2026-11-14T14:43:42.005Z",
"name": "Nameless iCal import",
"sync_requested_at": "2026-11-14T14:43:42.005Z",
"time_offset": 0,
"tld": ""
}
]Create external calendars
Requiresproducts:write
Body
Partial<ExternalCalendar> | Array<Partial<ExternalCalendar>>Read-only attributes are set by the database and can't be written.
Responses
201The newly created external calendars with the selected columns
400The request is malformed, for example an unknown column, an invalid filter or an invalid body.
401The API key is missing or invalid.
403The API key or access token doesn't have the scope this request needs, or no permission for this change, for example when writing rows of another organization.
409The change conflicts with existing data, for example a duplicate key or a reference to a row that does not exist.
429The API key made more requests per minute than its rate limit allows. Retry after the number of seconds in the `Retry-After` header.
code, message, details and hint. See the introduction for more on errors.curl "https://api.bookingmood.com/v1/external_calendars" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"product_id": "00000000-0000-0000-0000-000000000000",
"event_status_sync": "import",
"ical_url": "https://example.com",
"name": "Nameless iCal import",
"sync_requested_at": "2026-11-14T14:43:42.005Z",
"time_offset": 0,
"tld": ""
}'[
{
"id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-11-14T14:43:42.005Z",
"updated_at": "2026-11-14T14:43:42.005Z",
"active": false,
"deactivated_at": "2026-11-14T14:43:42.005Z",
"deactivated_reason": "manual",
"error": "",
"error_notified_at": "2026-11-14T14:43:42.005Z",
"etag": "",
"event_status_sync": "import",
"failing_since": "2026-11-14T14:43:42.005Z",
"ical_url": "https://example.com",
"last_modified": "",
"last_synced": "2026-11-14T14:43:42.005Z",
"name": "Nameless iCal import",
"sync_requested_at": "2026-11-14T14:43:42.005Z",
"time_offset": 0,
"tld": ""
}
]Delete external calendars
Requiresproducts:write
Filters
Without filters, this request deletes all external calendars you have access to. Always filter on at least one column, e.g. id=eq.{id}.
idFilter<uuid>Unique identifier
created_atFilter<timestamp with time zone>Creation timestamp
updated_atFilter<timestamp with time zone | null>Timestamp at which the calendar last received new events
activeFilter<boolean>Whether the calendar is synced, i.e. it is not deactivated
deactivated_atFilter<timestamp with time zone | null>Timestamp at which the import was deactivated
deactivated_reasonFilter<ExternalCalendarDeactivatedReason | null>Why the import was deactivated: by hand, or because it kept failing
errorFilter<text | null>Error message if the calendar could not be synced
error_notified_atFilter<timestamp with time zone | null>Timestamp at which admins were notified of the current failure
etagFilter<text | null>ETag of the last synced feed, sent as If-None-Match
event_status_syncFilter<EventStatusSync>How to treat incoming events
failing_sinceFilter<timestamp with time zone | null>Timestamp of the first failed sync since the last successful one
ical_urlFilter<text>URL of the iCal feed
last_modifiedFilter<text | null>Last-Modified of the last synced feed, sent as If-Modified-Since
last_syncedFilter<timestamp with time zone | null>Timestamp at which the calendar was last synced
nameFilter<text>Name of the calendar
sync_requested_atFilter<timestamp with time zone>Timestamp at which a sync was last requested
time_offsetFilter<int32>Time offset of the calendar in hours
tldFilter<text>Top-level domain of the iCal feed URL
Responses
200The deleted external calendars with the selected columns. Returns 204 without a body when sending the header Prefer: return=minimal.
400The request is malformed, for example an unknown column or an invalid filter.
401The API key is missing or invalid.
403The API key or access token doesn't have the scope this request needs, or no permission for this change, for example when writing rows of another organization.
429The API key made more requests per minute than its rate limit allows. Retry after the number of seconds in the `Retry-After` header.
code, message, details and hint. See the introduction for more on errors.curl -X DELETE "https://api.bookingmood.com/v1/external_calendars?id=eq.00000000-0000-0000-0000-000000000000" \
-H "Authorization: Bearer YOUR_API_KEY"[
{
"id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-11-14T14:43:42.005Z",
"updated_at": "2026-11-14T14:43:42.005Z",
"active": false,
"deactivated_at": "2026-11-14T14:43:42.005Z",
"deactivated_reason": "manual",
"error": "",
"error_notified_at": "2026-11-14T14:43:42.005Z",
"etag": "",
"event_status_sync": "import",
"failing_since": "2026-11-14T14:43:42.005Z",
"ical_url": "https://example.com",
"last_modified": "",
"last_synced": "2026-11-14T14:43:42.005Z",
"name": "Nameless iCal import",
"sync_requested_at": "2026-11-14T14:43:42.005Z",
"time_offset": 0,
"tld": ""
}
]Update external calendars
Requiresproducts:write
Filters
Without filters, this request updates all external calendars you have access to. Always filter on at least one column, e.g. id=eq.{id}.
idFilter<uuid>Unique identifier
created_atFilter<timestamp with time zone>Creation timestamp
updated_atFilter<timestamp with time zone | null>Timestamp at which the calendar last received new events
activeFilter<boolean>Whether the calendar is synced, i.e. it is not deactivated
deactivated_atFilter<timestamp with time zone | null>Timestamp at which the import was deactivated
deactivated_reasonFilter<ExternalCalendarDeactivatedReason | null>Why the import was deactivated: by hand, or because it kept failing
errorFilter<text | null>Error message if the calendar could not be synced
error_notified_atFilter<timestamp with time zone | null>Timestamp at which admins were notified of the current failure
etagFilter<text | null>ETag of the last synced feed, sent as If-None-Match
event_status_syncFilter<EventStatusSync>How to treat incoming events
failing_sinceFilter<timestamp with time zone | null>Timestamp of the first failed sync since the last successful one
ical_urlFilter<text>URL of the iCal feed
last_modifiedFilter<text | null>Last-Modified of the last synced feed, sent as If-Modified-Since
last_syncedFilter<timestamp with time zone | null>Timestamp at which the calendar was last synced
nameFilter<text>Name of the calendar
sync_requested_atFilter<timestamp with time zone>Timestamp at which a sync was last requested
time_offsetFilter<int32>Time offset of the calendar in hours
tldFilter<text>Top-level domain of the iCal feed URL
Body
Partial<ExternalCalendar>Read-only attributes are set by the database and can't be written.
Responses
200The updated external calendars with the selected columns. Returns 204 without a body when sending the header Prefer: return=minimal.
400The request is malformed, for example an unknown column, an invalid filter or an invalid body.
401The API key is missing or invalid.
403The API key or access token doesn't have the scope this request needs, or no permission for this change, for example when writing rows of another organization.
409The change conflicts with existing data, for example a duplicate key or a reference to a row that does not exist.
429The API key made more requests per minute than its rate limit allows. Retry after the number of seconds in the `Retry-After` header.
code, message, details and hint. See the introduction for more on errors.curl -X PATCH "https://api.bookingmood.com/v1/external_calendars?id=eq.00000000-0000-0000-0000-000000000000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "event_status_sync": "import" }'[
{
"id": "00000000-0000-0000-0000-000000000000",
"product_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2026-11-14T14:43:42.005Z",
"updated_at": "2026-11-14T14:43:42.005Z",
"active": false,
"deactivated_at": "2026-11-14T14:43:42.005Z",
"deactivated_reason": "manual",
"error": "",
"error_notified_at": "2026-11-14T14:43:42.005Z",
"etag": "",
"event_status_sync": "import",
"failing_since": "2026-11-14T14:43:42.005Z",
"ical_url": "https://example.com",
"last_modified": "",
"last_synced": "2026-11-14T14:43:42.005Z",
"name": "Nameless iCal import",
"sync_requested_at": "2026-11-14T14:43:42.005Z",
"time_offset": 0,
"tld": ""
}
]