# Opt-in provider

## Create an email opt-in provider

<mark style="color:green;">`POST`</mark> `https://api.mediarithmics.com/v1/consents`

#### Request Body

| Name             | Type   | Description                    |
| ---------------- | ------ | ------------------------------ |
| technical\_name  | string | Technical name for the consent |
| purpose          | string | Default value "EMAIL\_OPTIN"   |
| name             | string | Name for the consent           |
| organisation\_id | string | The organisation ID            |

{% tabs %}
{% tab title="200 " %}

```
{
    "status": "ok",
    "data": {
        "id": "string",
        "organisation_id": "string",
        "name": "string",
        "technical_name": "string",
        "purpose": "string"
    }
}
```

{% endtab %}
{% endtabs %}
