Subscriptions
Last updated
Last updated
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.
This object represents the subscription of a user to a campaign.
Get subscription state for a user, including incentives completion
GET /v1/campaigns/{campaignId}/subscriptions/{userId} HTTP/1.1
Host: localhost:8080
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
Ok
{
"createdAt": "2025-06-22",
"incentives": [
{
"id": "text",
"status": "VERIFIED",
"reward": 1,
"createdAt": "2025-06-22"
}
]
}
POST /v1/campaigns/{campaignId}/subscriptions HTTP/1.1
Host: localhost:8080
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"user": {
"email": "name@gmail.com"
}
}
{
"subscriptionId": "text"
}