Skip to main content

Create Calendar Sync Subscription

POST 

/api/google-calendar/subscriptions

Subscribe the authenticated user to a calendar sync feature so its events appear on their connected Google Calendar.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Body fields:

  • feature_key (required, string) — one of the keys from List Calendar Sync Features (po_cash_flow, vendor_deposits).
  • options (optional, object) — feature-specific options.

Returns the created (or re-enabled) subscription. 400 when subscribing fails (e.g. no Google Calendar connection).

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type