Integrate CleverTap with Fast2SMS

You can send CleverTap SMS campaigns through the Fast2SMS DLT SMS API. In CleverTap you add Fast2SMS as a generic SMS provider, paste your API key and a short JSON body, and send a test SMS. It takes about 10 minutes.

Before you start

  • A Fast2SMS account with wallet balance.
  • Your DLT Entity ID, an approved Sender ID (header) and approved content templates.
  • Your Fast2SMS API key from Settings > API Key. See how to find your API key.

Step 1: Add a new SMS provider in CleverTap

In the CleverTap dashboard, go to Settings, open the SMS tab and click Add Provider.

CleverTap Settings SMS tab with the Add Provider button

Step 2: Select Other (Generic) as the provider

In Provider, select Other(Generic) from the drop-down. This lets you add the Fast2SMS SMS API.

CleverTap provider drop-down with Other Generic selected

Step 3: Enter the nickname, request type and endpoint

  • Nickname: Fast2SMS
  • Request Type: POST
  • HTTP Endpoint: https://www.fast2sms.com/dev/custom

If you use a Fast2SMS reseller (white-label) panel, use your own whitelisted domain in the endpoint, for example https://yourdomain.com/dev/custom.

CleverTap generic provider form with nickname, POST request type and Fast2SMS endpoint

Step 4: Add the headers

Open the Headers tab and add these two fields:

Key Value
authorization YOUR_API_KEY (your key from Settings > API Key in Fast2SMS)
content-type application/json

CleverTap Headers tab with authorization and content-type fields

Step 5: Add the JSON body

Open the Parameters tab and select Type: JSON. Copy the code below into the black box.

{
  "route": "dlt_manual",
  "requests": [
    {
      "sender_id": "FSTSMS",
      "entity_id": "1111111111",
      "template_id": "$$TemplateID",
      "message": "$$Body",
      "numbers": "$$To"
    }
  ]
}

Change only two values: replace FSTSMS with your DLT Sender ID and 1111111111 with your DLT Entity ID. Leave everything else as it is. CleverTap fills in $$TemplateID, $$Body and $$To for each message.

Copy the code from the box above, not from a Word file or a chat app. Those apps often turn straight quotes into curly quotes, and the API rejects JSON with curly quotes.

CleverTap Parameters tab with the Batch checkbox and requests set to 1000

Tick the Batch checkbox, type requests as the parameter and set the batch size to 1000.

Step 6: Send a test SMS and save

Fill in the test fields and send a test SMS before you save the configuration:

  • Mobile number: enter it with the country code.
  • Template ID: type the DLT approved template ID of the message.
  • Message: type the DLT approved SMS text with real values in place of each variable.

CleverTap test SMS form with mobile number, template ID and message

Click Send Test. If you see the success message below, the API setup works. Save the configuration to use Fast2SMS in your CleverTap campaigns.

CleverTap success message after sending a test SMS

Success in CleverTap but SMS not received?

Open Delivery Reports in Fast2SMS (Apps dashboard > Utility > Delivery Reports) and check the failure reason. Usually the template_id, entity_id, sender_id or message text does not match your approved DLT content. See how to fix a DLT template mismatch.

For any help, email us at [email protected].

Related guides: CleverTap webhook integration, DLT Manual API guide, Find or reset your API key.

Frequently asked questions

Which API route does the CleverTap integration use?

It uses the dlt_manual route through the /dev/custom endpoint. CleverTap sends the full message text with your entity ID and DLT template ID, instead of a panel Message ID. See the DLT Manual API guide.

Can I get delivery reports back in CleverTap?

Yes. Create an SMS webhook in Fast2SMS and choose the CleverTap format, which fills the payload for you. Delivery updates for your CleverTap sends are then posted back. See CleverTap webhook integration.

Why does the CleverTap test fail with an authentication error?

The authorization header is missing, misspelt or has an old key. Copy the current key from Settings > API Key. If API Security is on, CleverTap’s server IPs must also be in your whitelist, or their requests are rejected.

Do SMS sent through CleverTap cost more?

No. Each SMS is charged from your Fast2SMS wallet at your normal DLT SMS rate per part. See the bulk SMS pricing page.

Can I send Hindi SMS from CleverTap campaigns?

Yes. The language is detected from the text, so a Hindi message goes as Unicode, where one part holds 70 characters. The text must still match your approved Hindi DLT template exactly.

Am I charged for CleverTap SMS that fail?

Yes. DLT SMS are charged when submitted, and failed numbers are not refunded automatically. Check the failure reason in Delivery Reports and fix template or number issues before the next campaign.