Add Subscription
Add one or more subscriptions to notify a list of recipients associated with an object
Authorizations
Pass as Bearer <API_KEY>
. Get API Key from SuprSend dashboard Developers -> API Keys section.
Path Parameters
Unique identifier of the object in your system
Used to group similar objects together. Give plural namespace like teams, organizations, and roles.
Body
List of recipients to be notified. You can either add recipient as array of distinct_ids or array of recipient objects. You can add upto 100 recipients in a single API.
Add user subscription by passing user json. You can pass user distinct_ids in array as ["id1","id2"]
or as user object to identify recipient inline.
properties defining the relation between object and its subscribers. Can be referenced as recipient.subscription.<key>
in workflow and template.
{ "role": "developer" }
Was this page helpful?