Tags and tag family
Retrieving Tag Configuration
The GET {subdomain}.api.numberly.com/v1/settings/tag-families endpoint returns all tag families and associated tags configured on your account.
Technical Definition
- HTTP Method:
GET - Endpoint:
{subdomain}.api.numberly.com/v1/settings/tag-families - Security: Bearer Token (OAuth2)
Pagination Handling
If the number of tag families is large, the API supports pagination via standard query parameters:
| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of items per page (default: 20, max: 200). |
page | integer | Page number to retrieve (default: 1). |
Request Example
curl -X GET "https://{subdomain}.api.numberly.com/v1/settings/tag-families?limit=50&page=1" \
-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>" \
-H "Content-Type: application/json"
Response Structure
The JSON response contains a list of TagFamily objects in the objects field. Below is the detailed structure of the returned data:
{
"objects": [
{
"id": 45,
"name": "Communication Type",
"required": true,
"type": "unique",
"tags": [
{
"id": 101,
"name": "Promotional",
"channels": ["email", "sms"]
},
{
"id": 102,
"name": "Informational",
"channels": ["email"]
}
]
}
],
"metadata": {
"timestamp": 1744375392.0
},
"pagination": {
"total": 1,
"limit": 50,
"page": 1
}
}
Data Model Analysis
Tag Family (TagFamily)
This is the parent container. Its properties define the validation rules for campaign creation:
id: Unique identifier of the family.name: Display name of the family.required(boolean): Iftrue, you must provide at least one tag from this family when creating a campaign.type(enum): Defines the cardinality of the selection.unique: Only one tag from this family can be selected.multiple: Multiple tags from this family can be selected.hidden: Hidden family (internal use).
Tag (Tag)
These are the selectable values:
id: The technical identifier to use in campaign creation payloads.name: The tag label.channels: List of channels (email,sms,push_notification) for which this tag is valid.
Important Note: Tags that are not enabled for at least one channel are not listed in the API response.
Group informations
In the Numberly Martech Platform (NMP) architecture, the Group acts as a logical container used to silo resources (campaigns, lists, content). For a developer, the group identifier (id) is a fundamental piece of data required to scope most CRUD operations. This technical guide details how to retrieve the list of accessible groups via the /v1/settings/groups endpoint and how to leverage the retrieved identifier within your integration workflows.
STOP Mentions
Creating SMS Marketing campaigns via the NMP API necessitates compliance with legal opt-out regulations. This requires the mandatory inclusion of a 'STOP' mention at the end of the message. Unlike a simple string manually appended to the text, the NMP API treats these mentions as independent resources. To create a valid SMS campaign, you must retrieve the identifier (id) of the 'STOP' mention configured for your group and inject it into the creation payload.