TokenOS
Search
K
Comment on page

Subscriptions

To keep track of users' participation within various campaigns, we use subscriptions. Before a user can participate in a campaign, they must first subscribe to the campaign.

The subscription object

This object represents the subscription of a user to a campaign.

Create subscription

post
http://localhost:8080/v1
/campaigns/{campaignId}/subscriptions
Create a new subscription for the given user

Retrieve subscription

get
http://localhost:8080/v1
/campaigns/{campaignId}/subscriptions/{userId}