# Consent API overview

> The consent and subscription calls of the Releva API, one page each - subscribe from your server or the browser, double opt-in, unsubscribe, unsubscribe links and one-click, and consent history.

The consent API records who may receive marketing messages from your shop. All calls live under `https://releva.ai/api/v0`. Server calls take your **secret key**; browser calls take the **access token** (see [Find your Access Token and Secret Key](https://releva.ai/documentation/guides/shop-settings/find-your-api-keys/)).

Not sure which call you need? Start with [Choose a consent call](https://releva.ai/documentation/reference/consent/choose-a-consent-call/).

| Page                                                                                                             | Endpoint                                                                            | Key                        |
| ---------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -------------------------- |
| [Subscribe a customer from your server](https://releva.ai/documentation/reference/consent/subscribe-a-customer/)                  | `POST /subscribe`                                                                   | Secret key                 |
| [Subscribe a customer from the browser](https://releva.ai/documentation/reference/consent/subscribe-from-the-browser/)            | `POST /subscribe/request`, `Releva.requestSubscribe`                                | Access token               |
| [Set up double opt-in](https://releva.ai/documentation/reference/consent/set-up-double-opt-in/)                                   | `POST /subscribe/request`, then `GET /subscribe/oneclick/{payload}`                 | Access token               |
| [Unsubscribe a customer with the API](https://releva.ai/documentation/reference/consent/unsubscribe-a-customer/)                  | `POST /unsubscribe`                                                                 | Secret key                 |
| [Unsubscribe links and one-click unsubscribe](https://releva.ai/documentation/reference/consent/unsubscribe-links-and-one-click/) | `GET` and `POST /unsubscribe/oneclick/{payload}`, the subscription preferences page | None (the link carries it) |
| [Check an email’s consent history](https://releva.ai/documentation/reference/consent/check-consent-history/)                      | `POST /subscribe/check`, `Releva.checkSubscribed`                                   | Access token               |

For what subscribed, unsubscribed and subscriptions mean on a profile, read [How consent works in Releva](https://releva.ai/documentation/learn/consent/how-consent-works-in-releva/).

## Next steps

* [Choose a consent call](https://releva.ai/documentation/reference/consent/choose-a-consent-call/): Find the call that fits your case in one table.
* [Subscribe a customer from your server](https://releva.ai/documentation/reference/consent/subscribe-a-customer/): Start with the call most integrations need first.
* [How consent works in Releva](https://releva.ai/documentation/learn/consent/how-consent-works-in-releva/): Learn what each consent fact on a profile means before you send any.