Create Consent
Grant calendar access consent to a business. The grantee must be one of: - a business in the directory (has a business profile); - someone you have an active connection with, in either direction; - a host your account manages. Anyone else, including an id that matches no profile, returns `403` with the same body. Approving a consent request is a separate route and is not subject to this rule.
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.
grantee_id: string (required)scopes: array (required)expires_at: stringtime_range: object — Optional time window the consent covers. Availability reads that
rely on this consent (`consent_id` mode, direct and mutual
availability) must request a `from`/`to` window inside it;
requests outside return `403`.
201: Consent created400: Validation error401: Authentication required or invalid403: The grantee is not a directory business, an active connection, or a host your account manages (or no such profile exists).409: 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