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

Create a new subscription for the given user

post
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
campaignIdstringRequired
Body
userany ofRequired
or
or
Responses
200

accepted

application/json
post
/campaigns/{campaignId}/subscriptions

Retrieve subscription

get

Get subscription state for a user, including incentives completion

Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
userIdstringRequired
Query parameters
identifierTypestring · enumRequiredPossible values:
Responses
200

Ok

application/json
get
/campaigns/{campaignId}/subscriptions/{userId}
200

Ok

Last updated