Publish a Calendar feed
POST
/api/v1/calendar/feeds
const url = 'https://example.com/api/v1/calendar/feeds';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"color":"example","detail":"full","include_notes":true,"include_tasks":true,"name":"example","source":"journal","source_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/calendar/feeds \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "color": "example", "detail": "full", "include_notes": true, "include_tasks": true, "name": "example", "source": "journal", "source_id": "example" }'Requires a signed-in User. It creates a feed definition and a read-only link. It returns 400 when the source or feed settings are invalid. Route: /api/v1/calendar/feeds. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Input for one new published feed.
object
color
string | null
detail
required
Full feeds keep event details; Busy-only feeds reveal only availability.
string
include_notes
boolean
include_tasks
boolean
name
required
string
source
required
A feed source selects one owner-scoped collection of calendar data.
string
source_id
string | null
Responses
Section titled “Responses”Media typeapplication/json
One-time result returned only when a User creates or rotates a feed link.
object
feed_id
required
Stable ID used to open the owning feed’s Settings deep link.
string
https_url
required
string
webcal_url
required
string
Examplegenerated
{ "feed_id": "example", "https_url": "example", "webcal_url": "example"}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}