Geomatch
When Geomatch is enabled for your messaging profile's [number pool] , Telnyx will choose a number from the number pool that matches US area code of the recipient's phone number.
Note: If there is no number in the pool that matches, Telnyx will fallback to using another number from the number pool.
Your Messaging Profile ID can found at the top of your Messaging Profile under the "Profile Info" section.
Using the Mission Control Portal
To configure Geomatch in your Portal:
- Click on “Messaging” in the navigation menu on the left-hand side of the Telnyx Mission Control Portal.
- Click the edit symbol next to the Messaging Profile you want to use.
- Under Outbound, toggle on “Number Pool” to enable.
- Select the “Geomatch” checkbox.
- Click “Save”.
That’s it. You’re all set to use Geomatch when sending messages.
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 Geomatch for a Messaging Profile:
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":{"geomatch": 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":{"geomatch": 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