# 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

{% openapi src="https://2025772754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKOyoBDhx8ymvd9xgu92d%2Fuploads%2FV9K5lc6vyEJK4GH14sh4%2Fcreator-api.yaml?alt=media&token=9ea3d663-0606-4b83-a29c-d9fd58940b29" path="/campaigns/{campaignId}/subscriptions" method="post" %}
[creator-api.yaml](https://2025772754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKOyoBDhx8ymvd9xgu92d%2Fuploads%2FV9K5lc6vyEJK4GH14sh4%2Fcreator-api.yaml?alt=media&token=9ea3d663-0606-4b83-a29c-d9fd58940b29)
{% endopenapi %}

### Retrieve subscription

{% openapi src="https://2025772754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKOyoBDhx8ymvd9xgu92d%2Fuploads%2FV9K5lc6vyEJK4GH14sh4%2Fcreator-api.yaml?alt=media&token=9ea3d663-0606-4b83-a29c-d9fd58940b29" path="/campaigns/{campaignId}/subscriptions/{userId}" method="get" %}
[creator-api.yaml](https://2025772754-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKOyoBDhx8ymvd9xgu92d%2Fuploads%2FV9K5lc6vyEJK4GH14sh4%2Fcreator-api.yaml?alt=media&token=9ea3d663-0606-4b83-a29c-d9fd58940b29)
{% endopenapi %}
