Sticky Sender

Sticky Sender makes sure the same “From” number is selected every time your application sends a message to a particular recipient. This allows your application to consistently send messages to your user from a single recognizable phone number. When Sticky Sender is enabled, Telnyx will maintain a mapping of the “To” and “From” numbers. This mapping is created after the first message is sent to a particular recipient. Any future messages to that recipient will use the same “From” number.

If Sticky Sender is turned off, Telnyx will disregard previously established "To" and "From" mappings when selecting the "From" number for new messages. When a Telnyx phone number is removed from your profile, all associated Sticky Sender mappings are removed.

Using the Mission Control Portal

To configure Sticky Sender in your Portal:

  1. Click on “Messaging” in the navigation menu on the left-hand side of the Telnyx Mission Control Portal.
  2. Click the edit symbol next to the Messaging Profile you want to use.
  3. Under Outbound, toggle on “Number Pool” to enable.
  4. Select the “Sticky Sender” checkbox.
  5. Click “Save”.

That’s it. You’re all set to use Sticky Sender.

Using the Telnyx API

Your Messaging Profile ID can found at the top of your Messaging Profile under the "Profile Info" section.

The code below enables and then disables Sticky Sender for a Messaging Profile:

Copy
Copied
curl -X PATCH \
  --header "Content-Type: application/json" \
  --header "Accept: application/json" \
  --header "x-api-token: YOUR_TELNYX_API_TOKEN" \
  --header "x-api-user: YOUR_TELNYX_API_USER" \
  --data '{"number_pool_settings":{"sticky_sender": true}}' \
  "https://api.telnyx.com/messaging/profiles/{YOUR_MESSAGING_PROFILE_ID}"


curl -X PATCH \
  --header "Content-Type: application/json" \
  --header "Accept: application/json" \
  --header "x-api-token: YOUR_TELNYX_API_TOKEN" \
  --header "x-api-user: YOUR_TELNYX_API_USER" \
  --data '{"number_pool_settings":{"sticky_sender": false}}' \
  "https://api.telnyx.com/messaging/profiles/{YOUR_MESSAGING_PROFILE_ID}"

Note: After pasting the above content, Kindly check and remove any new line added