STOP Mentions
Retrieving STOP Mentions
The {subdomain}.api.numberly.com/v1/settings/groups/{id}/optout-texts endpoint allows you to list the available STOP mentions for a given group.
Technical Definition
- HTTP Method:
GET - Endpoint:
{subdomain}.api.numberly.com/v1/settings/groups/{id}/optout-texts - Security: Bearer Token (OAuth2)
Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
id | Path | string | Yes | The group identifier (e.g., 65df0637...). |
limit | Query | integer | No | Number of items per page (default: 20). |
page | Query | integer | No | Page number (default: 1). |
Request Example
curl -X GET "https://{subdomain}.api.numberly.com/v1/settings/groups/65df06372b43d70716133716/optout-texts" \
-H "Authorization: Bearer <VOTRE_TOKEN>" \
-H "Content-Type: application/json"
Response Structure
The response contains a list of OptoutText objects. The crucial piece of information is the id, which will be used during campaign creation.
{
"objects": [
{
"id": 45,
"text": "Reply STOP to optout",
"description": "English - Generic",
"group_id": "65df06372b43d70716133716"
},
{
"id": 46,
"text": "STOP au 36XXX",
"description": "France - Standard",
"group_id": "65df06372b43d70716133716"
}
],
"metadata": {
"timestamp": 1744375392.0
},
"pagination": {
"total": 2,
"limit": 20,
"page": 1
}
}
STOP Mention Application Logic
The choice and mandatory nature of the STOP mention depend on your group's configuration (international sending authorization) and the use of an OADC (custom sender, e.g., "BRAND").
The API performs consistency checks according to the following matrix:
| International authorized? | OADC specified? | Expected behavior |
|---|---|---|
| Yes | Yes | The STOP mention is mandatory. It applies only to non-French numbers. French numbers will automatically use the short format (e.g., STOP 36xxx). |
| Yes | No | The STOP mention is mandatory and will be applied to all numbers. |
| No | Yes | No specific mention can be specified. The system will force the short format (e.g., STOP 36xxx). |
| No | No | The STOP mention is mandatory. |
Note on length: During campaign validation, the API verifies that the concatenation of your message content (
text) and the STOP mention (optout_text_id) does not exceed the authorized character limit (generally 160 characters for 1 SMS, or multiples for concatenated SMS).
Tags and tag family
In the NMP ecosystem, tags are used to categorize campaigns for reporting and organizational purposes. To assign tags to a campaign via the API, you must first retrieve their unique identifiers (IDs) along with the constraints imposed by their respective families (mandatory/optional, single/multiple choice). This guide details how to use the /v1/settings/tag-families endpoint to obtain this metadata.
Opt-ins
In the context of GDPR compliance and marketing best practices, consent management (Opt-ins) is central to the Numberly Martech Platform (NMP). To execute marketing sends via the API, it is imperative to link your operations to a specific consent, identified by its unique ID. This guide details how to retrieve the list of configured consents for a group via the /v1/settings/groups/{id}/optins endpoint.