The consent APIs subscribe and unsubscribe users on one channel with the date of the user's decision. Use them instead of the v1 and v2 subscribe and unsubscribe APIs once date-based consent is on for a channel.
Channel | Subscribe | Unsubscribe |
|---|---|---|
POST https://contact.useinsider.com/email/v3/subscribe | POST https://contact.useinsider.com/email/v3/unsubscribe | |
SMS | POST https://contact.useinsider.com/sms/v3/subscribe | POST https://contact.useinsider.com/sms/v3/unsubscribe |
POST https://contact.useinsider.com/whatsapp/v3/subscribe | POST https://contact.useinsider.com/whatsapp/v3/unsubscribe |
Headers
Header | Value |
|---|---|
X-PARTNER-NAME | Your partner name. Navigate to InOne > Inone Settings > Account Settings to copy your partner name. |
X-REQUEST-TOKEN | Your API key. This key is required to authorize your request. Refer to API Authentication Tokens to generate your Resubscribe token. |
Content-Type | application/json |
Request body
{
"users": [
{
"identifiers": { "email": "jane@example.com" },
"object_attributes": {
"email_subscription": {
"last_subscription_date": "2026-11-12T09:00:00Z"
}
}
}
]
}
users is a list and cannot be empty. Each user has only identifiers and object_attributes.
object_attributes holds only the object of the channel in the URL: email_subscription, sms_subscription, or whatsapp_subscription. The object is required, even if it is empty.
Identifiers
The address the consent is for is always required.
Channel | Account setup | Required identifiers |
|---|---|---|
Email address is an identifier, or the email-based subscription flow is on | ||
Profile-based subscription flow is on, or email address is not an identifier | email, plus at least one other identifier such as uuid or a custom identifier | |
SMS | Any | phone_number |
Any | phone_number, or whatsapp_business_user_id |
uuid, email, phone_number, and insider_id are accepted on every channel.
Custom identifiers are accepted in the email profile-based flow. Send them with the c_ prefix, for example, c_customer_id. The identifier must be set up and not paused on your account.
Phone numbers are accepted with or without the leading +.
The consent APIs never change the address on the profile. They check it against the profile.
Consent object
Key | Subscribe | Unsubscribe | Rules |
|---|---|---|---|
last_subscription_date | Optional | Not allowed | RFC 3339, for example 2026-11-12T09:00:00Z |
last_unsubscription_date | Not allowed | Optional | RFC 3339 |
double_optin | Email only, optional | Email only, optional | "true", "false", or "pending", as strings |
unsubscribe_source | - | Optional | Any non-empty text, for example keyword or link |
optin | Ignored | Ignored | The endpoint sets it: true on subscribe, false on unsubscribe |
Send one date per call, the one that matches the endpoint. A subscribe date on an unsubscribe call, or both dates in one object, is rejected.
Without a date, the time Insider One receives the request is used. Always send the date the user made the decision, so an old decision cannot override a newer one.
A date more than five minutes in the future is rejected. Dates are stored in UTC. Numbers (Unix timestamps) are not accepted.
You cannot send the keys Insider One calculates: subscription_status, reachable, unreachability_reasons, and reachability_change_date.
Other keys, including the legacy attributes such as email_optin, are rejected.
Examples
Replace mybrand with your partner name and 1a2b3c4e5d6f with your API key.
Email subscribe with a date:
curl --location --request POST 'https://contact.useinsider.com/email/v3/subscribe' \
--header 'X-PARTNER-NAME: mybrand' \
--header 'X-REQUEST-TOKEN: 1a2b3c4e5d6f' \
--header 'Content-Type: application/json' \
--data-raw '{
"users": [
{
"identifiers": {
"uuid": "user-123",
"email": "jane@example.com"
},
"object_attributes": {
"email_subscription": {
"last_subscription_date": "2026-11-12T09:00:00Z",
"double_optin": "true"
}
}
}
]
}'Email unsubscribe without a date (the request time is used):
curl --location --request POST 'https://contact.useinsider.com/email/v3/unsubscribe' \
--header 'X-PARTNER-NAME: mybrand' \
--header 'X-REQUEST-TOKEN: 1a2b3c4e5d6f' \
--header 'Content-Type: application/json' \
--data-raw '{
"users": [
{
"identifiers": { "email": "jane@example.com" },
"object_attributes": { "email_subscription": {} }
}
]
}'SMS unsubscribe by keyword:
curl --location --request POST 'https://contact.useinsider.com/sms/v3/unsubscribe' \
--header 'X-PARTNER-NAME: mybrand' \
--header 'X-REQUEST-TOKEN: 1a2b3c4e5d6f' \
--header 'Content-Type: application/json' \
--data-raw '{
"users": [
{
"identifiers": { "phone_number": "+905551112233" },
"object_attributes": {
"sms_subscription": {
"last_unsubscription_date": "2026-11-10T09:00:00Z",
"unsubscribe_source": "keyword"
}
}
}
]
}'WhatsApp subscribe by WhatsApp business user ID:
curl --location --request POST 'https://contact.useinsider.com/whatsapp/v3/subscribe' \
--header 'X-PARTNER-NAME: mybrand' \
--header 'X-REQUEST-TOKEN: 1a2b3c4e5d6f' \
--header 'Content-Type: application/json' \
--data-raw '{
"users": [
{
"identifiers": { "whatsapp_business_user_id": "1234567890" },
"object_attributes": {
"whatsapp_subscription": {
"last_subscription_date": "2026-11-12T09:00:00Z"
}
}
}
]
}'Responses
Each request is checked before it is accepted. Valid users are saved shortly after the response. Invalid users are listed in invalidUsers with the index of the user in your list and the error for each field.
{
"statusMessage": "OK",
"requestId": "3f1c2a9e-8b7d-4c1a-9f3e-2d5b6a7c8e90",
"invalidUsers": [
{
"index": 1,
"errors": {
"users.1.object_attributes.email_subscription.date.future": "<message>"
}
}
]
}HTTP | Meaning |
|---|---|
200 | At least one user is valid. Valid users are saved, invalid ones are listed in invalidUsers. |
400 No valid users | Every user is invalid. Nothing is saved. |
400 Bad request | The body is not valid JSON, has the wrong shape, uses a channel other than email, sms, or whatsapp, or has too many users. |
400 consent.disabled | Date-based consent is not on for this channel on your account. Nothing is saved. |
400 product not activated | The SMS or WhatsApp product is not active on your account. |
401 | The partner name is missing or does not match the API key. |
429 | Too many requests. Retry later. |
500 | A temporary error. Nothing is saved; retry. |
503 identifier.lookup_unavailable, product.lookup_unavailable, profile.lookup_unavailable | A lookup needed to check the request is not available. Nothing is saved; retry. |
Field errors
Field errors have the form users.<index>.object_attributes.<channel>_subscription.<field>.<rule>, or users.<index>.identifiers.<key>.<rule> for identifiers.
Error | When |
|---|---|
users.required, users.invalid | users is missing, empty, or not a list |
<key>.not_allowed | A key that is not accepted at that level |
<channel>_subscription.required | The channel's consent object is missing |
address.required, address.invalid | The address for the channel is missing or invalid |
identifiers.<key>.not_registered | A custom identifier is not set up or is paused |
date.invalid | A date is not valid RFC 3339 |
date.future | A date is more than five minutes in the future |
date.date_mismatch | Both dates are sent, or the date does not match the endpoint |
double_optin.invalid | double_optin is not "true", "false", or "pending" |
double_optin.not_allowed | double_optin is sent for SMS or WhatsApp |
unsubscribe_source.invalid | unsubscribe_source is empty or not text |
field.not_allowed | A key Insider One calculates was sent |
users.max | More than 100 users in one request in the email profile-based flow |
What a successful request does
The consent is written to the channel's consent object, marked as coming from the consent API. The newer date decides the status, as described in How it works. A request that changes nothing fires no event.
The legacy opt-in attributes (for example, email_optin and global_unsubscribe) are kept equal to the consent object.
SendGrid: if your account syncs email unsubscribes to SendGrid, the consent APIs keep SendGrid in step, in order of the consent dates. An older-dated subscribe does not remove a newer unsubscribe in SendGrid. This applies when email address is an identifier or the email-based subscription flow is on; the profile-based flow does not sync SendGrid.
A 200 means the request was accepted. Outcomes that depend on the stored profile, for example, an older date or an address that does not match, do not change the response. They are recorded in upsert monitoring.
Differences from V1 and V2
V1 and V2 | V3 | |
|---|---|---|
What you send | Legacy opt-in attributes | The channel's consent object |
Date | One time for the whole request | One date per user |
Who decides the status | The last write wins | The newer date wins |
Errors in the response | Not per field | Per user and per field, in invalidUsers |
Date-based consent on the channel | Not needed | Required |
V1 and V2 keep working unchanged.