Recipients API reference
Complete reference documentation for the Recipients resource.
Recipients
#A Recipient represents a person or a non-user entity from your system, represented in Knock. They are most commonly the recipient of a notification, but can also be used to denote an actor that a notification is sent on behalf of.
Subscription
#A subscription object.
Preferences
#Preferences determine whether a recipient should receive a particular type of notification. By default all preferences are opted in unless a preference explicitly opts the recipient out of the notification.
The preference set :id can be either "default" or a tenant.id. Learn more about per-tenant preferences.
PreferenceSet
#A preference set represents a specific set of notification preferences for a recipient. A recipient can have multiple preference sets.
PreferenceSetRequest
#A request to set a preference set for a recipient.
InlinePreferenceSetRequest
#Inline set preferences for a recipient, where the key is the preference set id. Preferences that are set inline will be merged into any existing preferences rather than replacing them.
PreferenceSetChannelTypes
#Channel type preferences.
PreferenceSetChannelTypeSetting
#A set of settings for a channel type. Currently, this can only be a list of conditions to apply.
PreferenceSetChannelSetting
#A set of settings for a specific channel. Currently, this can only be a list of conditions to apply.
Channel data
#Channel data is channel-specific information stored on a Knock user or object that's needed to deliver a notification to an end provider.
For a push channel, this includes device-specific tokens that map the recipient to the device they use, as well as device metadata for supported providers. For chat apps, such as Slack, this includes the access token used to send notifications to a customer's Slack channel.
The shape of the data payload varies depending on the channel type; you can learn more about channel data schemas here.
ChannelData
#Channel data for a given channel type.
ChannelDataRequest
#A request to set channel data for a type of channel.
PushChannelDataTokensOnly
#Push channel data.
PushChannelDataDevicesOnly
#Push channel data.
SlackChannelData
#Slack channel data.
AWSSNSPushChannelDataTargetARNsOnly
#AWS SNS push channel data.
AWSSNSPushChannelDataDevicesOnly
#AWS SNS push channel data.
MsTeamsChannelData
#Microsoft Teams channel data.
DiscordChannelData
#Discord channel data.
OneSignalChannelDataPlayerIdsOnly
#OneSignal channel data.
InlineChannelDataRequest
#A request to set channel data for a type of channel inline.
Recipient
#A recipient of a notification, which is either a user or an object.
RecipientRequest
#Specifies a recipient in a request. This can either be a user identifier (string), an inline user request (object), or an inline object request, which is determined by the presence of a collection property.
RecipientReference
#A reference to a recipient, either a user identifier (string) or an object reference (ID, collection).