> For the complete documentation index, see [llms.txt](https://guides.d7networks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.d7networks.com/integrations/active-campaign/integrate-sms-api.md).

# Integrate SMS API

### **Requirements:**

1. ActiveCampaign account
2. D7SMS account (You can also use trial account without a purchase)
3. Positive balance on D7SMS account

#### **Notes:**

● This automation action sends outbound messages only. For tracking, replies, reporting, and billing,\
please check D7SMS account at <https://app.d7networks.com>\
● Messages sent with this automation action will be sent to contacts who (1) reach this step in your\
automation and (2) have a mobile phone number stored in the standard ActiveCampaign phone\
number field.\
● Messages sent with this automation action have a 700 character limit. This includes field values for\
any personalization tags you use in the message.\
● The recipient's phone number should have a country code prefix. You can also set the default\
country here, and all your messages will be prefixed with the selected country code.

### How the D7SMS app works on ActiveCampaign:

❖ Generate D7SMS Token\
❖ Create automation on ActiveCampaign\
❖ Connect to your D7SMS account\
❖ Configure Message Content, Source address and Message encoding\
❖ Enable/Activate Automation

**1.Generate D7SMS token:**

D7SMS connection uses OAuth 2.0 based Bearer token authentication and you can create this token at the\
developer section of <https://app.d7networks.com/>\
Following are the steps by step instructions to create the token:\
a. Signup with <https://app.d7networks.com/>\
b. Navigate to <https://app.d7networks.com/developer/applications>\
c. Click on “Create App”\
d. Enter an Application Name and “Save”

<figure><img src="/files/N4XBcnQKWDYNhMsIDHvL" alt=""><figcaption></figcaption></figure>

e. On the next window click on “Generate Token” and copy the token generated.

<figure><img src="/files/IFQHbJU33jkuD4SfYaM1" alt=""><figcaption></figcaption></figure>

**2.Create automation on ActiveCampaign:**

a. Log in to ActiveCampaign account and Navigate to “Automations”\
b. Click on “Create an automation”

<figure><img src="/files/QuqhzrJ3kKIFPP4GeGIZ" alt=""><figcaption></figcaption></figure>

c. Select Triggers as you wish

<figure><img src="/files/XvNEuYoy8E7GjkGlgCzh" alt=""><figcaption></figcaption></figure>

d. Choose “Action option” ‘s

<figure><img src="/files/1Xx85VeDjZJFp9CNGVwU" alt=""><figcaption></figcaption></figure>

**3.Connect your D7SMS account:**\
a. From your automation, click "CX Apps" in the right menu and select “Send SMS Message\
using D7SMS” action and drag it to your automation.

<figure><img src="/files/8eEnElyD4S1ZDkAC5xSH" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/5nv3x5qkEbgomogBrXPR" alt=""><figcaption></figcaption></figure>

b. Enter D7SMS Token which is generated earlier

<figure><img src="/files/eD8GeJ1jhw5fy2u019PA" alt=""><figcaption></figcaption></figure>

c. Select the account

<figure><img src="/files/n3CpPD5ErZgAwel6gEkX" alt=""><figcaption></figcaption></figure>

**4.Configure Message Content, Source address and Message encoding:**

a. Configure “Message Content”

<figure><img src="/files/c3BgaUODqmabjOPbTBup" alt=""><figcaption></figcaption></figure>

b. Configure “Originator” and “Data Coding”

<figure><img src="/files/vqH5WjBSwuEyuJ78xXR9" alt=""><figcaption></figcaption></figure>

**5.Enable/Activate Automation**

<figure><img src="/files/gJjvW7niiztrxWOFdA78" alt=""><figcaption></figcaption></figure>
