Create Proposal
Create a new multi-party meeting proposal. Sends proposed time slots to one or more participants who can accept, counter, or reject. The authenticated user is automatically added as the organizer. ## Error codes - `400 earliest_slot_too_soon` — **poll mode only.** The earliest proposed slot starts within the minimum poll voting window (~25 hours from now). Propose a later earliest slot, or switch to `mode: standard`. - `403 consent_required` — at least one participant has not granted `booking:propose` to the originator. Establishing a network connection grants this automatically in both directions; if the participant has revoked it, or the connection has ended, the originator must wait for re-grant or reconnect. If the consent was revoked or has expired, the code is `consent_revoked` instead, also with `403`. - `409 calendar_disconnected_originator` — the authenticated originator has no active calendar connection. Reconnect a calendar before creating proposals. - `409 calendar_disconnected_recipient: <user_id>[, <user_id>…]` — one or more recipients have no active calendar connection, so the proposal could never be accepted. Nothing is created. The ids after the colon name the recipients who need to connect a calendar. **Standard mode only**; poll mode is unaffected.
Auth required: Yes
Idempotency-Key (header, string) — Unique key for idempotent POST requests (1-256 chars: alphanumeric, `_`, `-`, `:`, `.`).
Same key + same body within 24h replays the cached response.
mode: string — Proposal shape. `standard` (default) for account-keyed proposals; `poll` for magic-link voting.participant_ids: array — UUIDs of Vennio accounts to invite (1-10). **Required for `standard` mode; forbidden for `poll` mode.**
participant_emails: array — Email addresses of poll voters (1-10). **Only valid when `mode: poll`.** Non-empty produces a named poll (per-email magic links returned in `invitations[]`); empty/absent produces an open poll (single shareable `magic_link_url`).
slots: array (required) — Proposed time slots (1-10)message: stringmetadata: object — Extensible metadata (service_type, duration_minutes, price, etc.)expires_in_hours: integer — Hours until the proposal expiresresponder_base_url: string — First-party app origin the responder magic-link should point at, e.g.
`https://when.vennio.app`. Standard mode only. Must be an allowed
first-party origin (exact-origin allowlist); a non-allowlisted value is
rejected `400`. When omitted, links default to the platform portal.
Only the origin is used — any path is discarded.
201: Proposal created. The response shape depends on `mode` and (for poll mode) whether `participant_emails` was supplied:
- **standard mode** → `StandardProposalCreated` — `{proposal}` only. Invitation emails are dispatched server-side; the caller does not receive magic-link URLs.
- **named poll** (`mode: poll` with non-empty `participant_emails`) → `NamedPollProposalCreated` — `{proposal, invitations: [...]}`. The caller owns voter messaging and gets one magic-link URL per named invitee.
- **open poll** (`mode: poll` with empty/absent `participant_emails`) → `OpenPollProposalCreated` — `{proposal, magic_link_url}`. A single shareable link; voters self-identify at vote time.
400: Validation error401: Authentication required or invalid409: A request with this Idempotency-Key is currently being processed422: Idempotency-Key was already used with a different request bodyRequires authentication. Pass a Bearer token (Supabase JWT) or an API key (`Authorization: Bearer vennio_sk_live_*`) in the request headers.
Base URL: https://api.vennio.app