Numberly
Settings

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.

Retrieving Senders

The GET {subdomain}.api.numberly.com/v1/settings/groups/{id}/senders endpoint allows you to list senders configured for a specific group, filtered by channel.

Technical Definition

  • HTTP Method: GET
  • Endpoint: {subdomain}.api.numberly.com/v1/settings/groups/{id}/senders
  • Security: Bearer Token (OAuth2)

Parameters

LocationNameRequiredTypeDescription
PathidYesstringThe group identifier (retrievable via /v1/settings/groups).
QuerychannelYesstringThe channel for which to retrieve senders (email or sms).
QuerylimitNointegerPagination: number of items per page (default: 20).
QuerypageNointegerPagination: page number (default: 1).

Request Example

This example retrieves all Email senders for the specified group.

curl -X GET "https://{subdomain}.api.numberly.com/v1/settings/groups/65df06372b43d70716133716/senders?channel=email" \
  -H "Authorization: Bearer <VOTRE_TOKEN>" \
  -H "Content-Type: application/json"

Response Structure

The API returns a list of objects (polymorphic depending on the channel, EmailSender or SmsSender). Here are the key properties to utilize:

  • id: The technical identifier of the sender. This value will be used during campaign creation.
  • sender: The visible value (the email address or the SMS sender name).
  • campaign_type: Indicates the campaign type authorized for this sender (e.g., schedulable for marketing, transactional for transactional).
  • population: Information about the population targeted by this sender (useful for segmentation).
    • id: Population identifier.
    • name: Population name (e.g., "ACTIFS").

JSON Response Example (Email):

{
  "objects": [
    {
      "id": 945,
      "channel": "email",
      "sender": "newsletter@news.mon-domaine.com",
      "group_id": "65df06372b43d70716133716",
      "campaign_type": "schedulable",
      "population": {
        "id": 42,
        "name": "Clients Newsletter"
      }
    }
  ],
  "metadata": {
    "timestamp": 1744375392.0
  },
  "pagination": {
    "total": 1,
    "limit": 20,
    "page": 1
  }
}