# Telnyx integration

- **Author**: Sagar Anadkat
- **Category**: SMS integrations
- **URL**: https://help.neetocal.com/articles/telnyx-integration

---

[Telnyx](https://telnyx.com/) allows businesses to send and receive SMS messages. It’s commonly used for sending SMS messages like reminders, alerts, and notifications. By integrating Telnyx with NeetoCal, you can send SMS notifications and reminders to your clients. This helps you in:

- reducing no-shows.
- maintaining consistent branding using your own number.

### Prerequisites

Before connecting Telnyx with NeetoCal, make sure you have:

- An active Telnyx account.
- A [Telnyx phone number](https://support.telnyx.com/en/articles/4380325-search-and-buy-numbers) capable of sending SMS.
- A Messaging Profile using API V2, with your phone numbers assigned to it.
- A Telnyx API Key (V2) and your Telnyx public key.

If you don’t already have a Telnyx account, refer to [Telnyx’s official help documentation](https://developers.telnyx.com/docs/account-setup/create-account) to create an account. Once your account at Telnyx has been created please follow the steps below.

### Phone number or messaging profile?

NeetoCal can send SMS through Telnyx in two ways. You choose one when you connect Telnyx.

- **Messaging profile** (**Recommended**): NeetoCal sends through a messaging profile and lets Telnyx pick which of the profile's numbers sends each SMS. Choose this if your clients are in several countries. Add a number for each country you send to, because some carriers block SMS from foreign numbers. This method needs **Number Pool** turned on in Telnyx (Step 3).
- **Phone number**: NeetoCal sends every SMS from one Telnyx number that you pick. Choose this if your clients are in the same country as that number.

You can switch methods later from the Telnyx page in NeetoCal.

### Step 1: Create a messaging profile in Telnyx

Telnyx needs a messaging profile for both methods.

1. Log in to your Telnyx portal.
2. Open the menu in the top-left corner and go to **Messaging Suite** \> **Programmable Messaging**.
3. Click on **Add New Profile**.
4. **Details**: enter a **Profile Name**. Keep **API Version** set to **API V2**. NeetoCal doesn't support API V1. Click **Next**.
5. **Allowed destinations**: click **Select all destinations**, or select only the countries you send SMS to. Some folks start with North America and Europe. Click **Create**. Telnyx creates the profile now, and the next steps finish setting it up.
6. **Inbound**: you can leave **Webhook URL** and **Webhook Failover URL** empty. NeetoCal doesn't need a webhook URL on the messaging profile. Leave the MM7 fields empty too. Click **Next**.
7. **Outbound**: check **Restrict to mobile numbers only** and **Enable daily spend limit per connection**, then enter a **Daily spend limit** as per your wishes. Most of the folks start with $20. If you use the messaging profile method, you can also turn on Number Pool here, as described in Step 3. Click **Next**.
8. **Senders**: click **Next**. You'll assign your numbers in Step 2.
9. **Keywords**: keep the default STOP, START and HELP keywords and click **Complete**.

### Step 2: Assign your phone numbers to the messaging profile

A Telnyx number can send SMS only after it's assigned to a messaging profile. This applies to both methods.

1. In the Telnyx portal, go to **Messaging Suite** \> **Programmable Messaging**.
2. Click the edit icon next to your messaging profile.
3. Open the **Senders** tab and select **Phone number**.
4. Click **Assign numbers**, then select the numbers you want to send from and assign them.

If you use the messaging profile method, assign a number for each country you send to.

### Step 3: Turn on Number Pool (messaging profile method only)

Skip this step if you use the phone number method.

With the messaging profile method, NeetoCal doesn't tell Telnyx which number to send from. Telnyx picks a number from the profile's **number pool**. If Number Pool is off, Telnyx has no number to pick, and your SMS won't be sent.

1. In the Telnyx portal, go to **Messaging Suite** \> **Programmable Messaging**.
2. Click the edit icon next to your messaging profile and open the **Outbound** tab.
3. Check **Enable number pool**.
4. Enter a **Long code (DID) number weight** and a **Toll-free number weight**. Both are required. The weights set how often Telnyx uses each type of number. For example, 1 and 1 splits messages evenly.
5. Check **Skip unhealthy numbers**, so Telnyx doesn't send from numbers that have delivery problems.
6. Click **Save**.

### Step 4: Get your API key (V2) and public key

#### API key (V2)

1. Click your account icon in the top-right corner of the Telnyx portal.
2. Select **API keys**.
3. Click on **Create API Key**.
4. You can add **Tags** (optional).
5. Keep **Expiration** set to **No Expiration** (recommended).
6. Click **Create**.
7. Copy the API key immediately and store it securely. You won’t be able to view the API key again. If you lose it, you’ll need to generate a new one.

#### Public key

1. On the same **API keys** page, open the **Public Key** tab.
2. Next to **Key**, click **Copy to clipboard**.

NeetoCal uses the public key to check that delivery updates really come from Telnyx.

### Step 5: Integrating Telnyx with NeetoCal

1. Go to **Admin Panel** in NeetoCal.
2. Click on **SMS integrations**.
3. Click on the **Telnyx** card.
4. Click on **Connect Telnyx**.
5. Paste your **API key** and **Public key**.
6. Click on **Verify**.
7. Under **SMS sending method**, choose one:
   - **Phone number**: select the number to send from. Make sure it's assigned to a messaging profile (Step 2).
   - **Messaging profile**: select your messaging profile. If the profile has no numbers assigned, NeetoCal shows a warning. Go back to Step 2 before you save.
8. Click on **Save changes**.

Once saved, Telnyx is connected to NeetoCal.

### Step 6: Control which SMS are sent

Once Telnyx is connected, NeetoCal sends booking SMS (confirmation, reschedule, cancellation, approval, and rejection messages) automatically. All SMS types are on by default. To turn any of them off, go to **Admin panel** \> **SMS notifications**. A single scheduling link can use different settings through its [Override SMS notifications](https://help.neetocal.com/p/a-7e484611) setting.

Reminder SMS work differently: they are only sent on scheduling links where SMS reminders are set up.

For clients: see [SMS reminders for client](https://help.neetocal.com/p/a-b5e8d542)

For hosts: see [SMS reminders for host](https://help.neetocal.com/p/a-59ed0dc2)

### Need help

- If you face issues connecting Telnyx with NeetoCal, contact us at [support@neetocal.com](mailto:support@neetocal.com)
- For problems related to Telnyx account setup, purchasing a number, or retrieving API keys, please reach out to [Telnyx Support team](https://support.telnyx.com/en/articles/5170721-best-practices-for-contacting-support).