Group informations
Retrieving the List of Groups
The GET {subdomain}.api.numberly.com/v1/settings/groups endpoint allows you to retrieve a paginated collection of groups the authenticated client has access to.
Technical Definition
- HTTP Method:
GET - Endpoint:
{subdomain}.api.numberly.com/v1/settings/groups - Security: Bearer Token (OAuth2)
Query Parameters
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
limit | integer | No | Maximum number of items to return (min: 5, max: 200). | 20 |
page | integer | No | Current page number (min: 1). | 1 |
Request Example
curl -X GET "https://{subdomain}.api.numberly.com/v1/settings/groups?limit=20&page=1" \
-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>" \
-H "Content-Type: application/json"
Response Structure
The API returns a JSON object containing a list of Group objects in the objects field. Each group exposes two essential properties:
id: The unique identifier (string), primary key for future operations.name: The group name.
{
"objects": [
{
"id": "65df06372b43d70716133716",
"name": "NMP Group"
},
{
"id": "5ef0cf15fac2a200016bcaaa",
"name": "Production Group"
}
],
"metadata": {
"timestamp": 1744375392.0
},
"pagination": {
"total": 2,
"limit": 20,
"page": 1
}
}
Senders
In the NMP, a Sender defines the identity visible to the final recipient (an email address or an SMS sender name). To configure a campaign via the API, you cannot simply use a string (e.g., "noreply@domain.com"); you must reference a pre-configured sender object using its unique identifier (id). This guide details how to retrieve the list of available senders for a specific group using the /v1/settings/groups/{id}/senders endpoint.
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.