Create a notification channel
Register a new notification channel for the authenticated user. Returns the channel with verified=false; a verification flow (email link, SMS code) must complete before notifications are delivered. Returns 400 if channel_type is not one of the supported values.
Authorizations
Body
Request body to register a new notification channel for the authenticated user.
The newly-created channel is always returned with verified=False;
a follow-up verification flow (email link, SMS code) must complete
before the channel will receive notifications.
Delivery channel to register. Determines which keys config must contain.
email, sms, in_app User-friendly label for this channel. Shown in the channel-management UI.
100Channel-specific configuration. Required keys depend on channel_type: email requires email (RFC 5322 address); sms requires phone_number (E.164); in_app accepts an empty object.
Response
Created
A user-owned notification channel (email address, SMS number, in-app inbox).
Each user may register multiple channels of the same type — for example, a personal and a work email. Returned by all channel endpoints.
Unique channel identifier (UUIDv4).
Delivery channel for this contact point. email and sms deliver out-of-band; in_app is rendered in the user's notification center.
email, sms, in_app User-assigned label that disambiguates channels of the same type (e.g. Work Email vs Personal Email).
100Whether the user has confirmed ownership of this channel (e.g. clicked a verification link or replied to an SMS code). Unverified channels do not receive notifications.
Whether notifications are currently delivered to this channel. Set to false to pause delivery without deleting the channel.