Skip to content
Fast2SMS Help Center
API Docs Contact Us Sign up free

How to whitelist IP addresses for the Fast2SMS API (API Security)

To whitelist an IP address for the Fast2SMS API, open Account Setting, go to API Security, add your server’s public IP under Whitelisted IPs and then switch API Security on. After that, only calls from those IPs are accepted, even if someone else gets your API key. This guide shows how to find the right IP, add it, and fix error 414 “IP is blacklisted from Dev API section”.

Lock your API to your own servers

Whitelist your server IPs in Fast2SMS so a leaked API key cannot be used from anywhere else.

Sign up free →Book a free meeting

Why whitelist IPs for the API?

Your API key works from any computer by default. If the key leaks, for example in a code repository or an old plugin, anyone can send messages from your wallet. With API Security on, Fast2SMS checks the IP address of every API call and rejects calls that do not come from your list. It is one of the simplest ways to protect your balance.

Before you start

  • Log in as the account owner. Team members cannot open Account Setting.
  • Know which servers call the API: your website server, app backend, CRM, and any plugin host that sends from your account.
  • Keep your registered mobile handy. Switching API Security on or off needs an OTP.

How to whitelist an IP address

  1. Open API Security

    On the dashboard, click Account Setting, then API Security under UTILITY in the left menu. At the top you see the API Security switch and the Low Balance Notification switch. Below them are two lists: Whitelisted IPs and Latest hits by other IP.

    Fast2SMS API Security page with the API Security and Low Balance Notification switches, three whitelisted IPs with Remove buttons and the Latest hits by other IP list
    API Security with three whitelisted IPs.
  2. Find your server’s public IP

    The easiest way: make one test API call from your server, for example a wallet balance check, while API Security is still off. Every call is recorded, so your server’s IP appears in Latest hits by other IP with the time of the last hit. You can also ask your hosting provider for the server’s public (outgoing) IP. Use the public address, not a local one such as 192.168.x.x.

  3. Add the IP to the whitelist

    Type the IP in the Add IP box and click Add IP. You can paste several IPs at once. Or, in Latest hits by other IP, click Add next to an IP, or tick several and click Add selected. You see “Successfully updated.” or a count such as “3 IPs added to whitelist.”

  4. Switch API Security on

    Only after all your servers are on the list, turn on the API Security switch. Confirm with the OTP sent to your registered mobile. From now on, calls from any other IP get error 414.

  5. Check that calls still work

    Send a test call from each server and open API Logs. Calls should show as Success. If one fails with code 414, its IP is missing from the list.

Add every IP first, then switch API Security on. If you switch it on first, your live website or app will stop sending SMS and OTPs until its IP is added.

Keep your OTP and SMS flow safe

Use API Security and API Logs together to see who calls your API and block everyone else.

Sign up free →Book a free meeting

Manage the lists

Whitelisted IPs

This list shows each allowed IP with a date and a Remove button. The date shows the latest time that IP was seen. Use search or the filter to find an IP. To remove several, tick them and click Remove selected.

Latest hits by other IP

This list shows IPs that called your API but are not on the whitelist, with their Last hit time. It works even when API Security is off, so you can watch who uses your key before you lock it. If you see an IP you do not know, reset your API key. Click Export to download the list. IP records are kept for 3 months.

Filter IP Hits window with Date Range, IP Type and Sort By tabs and date choices from All time to Last 3 months
Filter IP hits by date, IP type or sort order.

How to turn API Security off

Turn off the API Security switch. A box “Disable IP security?” says API requests from any IP will be accepted. Click Confirm and enter the OTP. Your whitelist stays saved, so you can switch it on again later without adding the IPs again.

Disable IP security confirmation saying API requests from any IP will be accepted and an OTP will be sent
Switching off API Security needs an OTP.

Error 414: IP is blacklisted from Dev API section

This is the error your code gets when API Security is on and the call comes from an IP that is not on the list. It comes back with HTTP status 401:

{"return":false,"status_code":414,"message":"IP is blacklisted from Dev API section"}

To fix it:

  1. Open API Security and look in Latest hits by other IP. The IP that was blocked is listed there.
  2. If it is your server, click Add.
  3. If you do not know the IP, leave it blocked and reset your API key from the API Key page.

Common problems and fixes

My server’s IP keeps changing

Shared hosting, some cloud functions and home internet connections change their outgoing IP. Ask your host for a fixed (static) outgoing IP and whitelist that. Otherwise you will see 414 errors each time the IP changes.

“Please enter a valid IP address”

Enter a single IP such as 203.0.113.10, without http://, port numbers or spaces.

“IP address already added in your white listed IP”

The IP is already on the list. Nothing more to do.

Plugins stopped sending after I turned on API Security

Plugins call the API from the server where your shop or website runs, for example your WordPress or WooCommerce host. Add that server’s IP too. Check Latest hits by other IP to see which IPs were blocked.

Frequently asked questions

How do I know if API Security is on?

Look at the API Security switch at the top of the page. While it is off, the API accepts calls from any IP.

Can I whitelist more than one IP?

Yes. Add as many server IPs as you need, one by one or several at once.

Does API Security affect the Fast2SMS panel?

No. It only controls API calls. Your panel login works as usual from any network.

What is the Low Balance Notification switch on this page?

It sends you SMS and email alerts when your wallet balance is too low, so your API sends do not stop without warning.

What should I do if I see an unknown IP in Latest hits?

Someone may be using your API key. Reset the key on the API Key page, update it in your own systems, and switch API Security on.

Send securely with Fast2SMS

Create your account, whitelist your servers and send DLT SMS, Smart OTP and WhatsApp through a locked-down API.

Sign up free →Book a free meeting

Related guides

  • Smart OTP in Fast2SMS: set up OTP on SMS and WhatsApp with fallback
  • Webhooks in Fast2SMS: get delivery reports on your own URL
  • Bulk SMS API for India
  • Low balance notification in Fast2SMS
  • Fast2SMS OTP SMS

Related articles

  • Team member can’t see WhatsApp chats or numbers? Live Chat access problems fixed
  • How to contact Fast2SMS support: ticket, email, meeting and feature requests
  • Fast2SMS new panel tour: dashboard, apps, wallet rates and where everything moved
  • Paid but wallet not credited, or payment failed? What to do after a Fast2SMS recharge

    New to Fast2SMS?

    Get ₹50 free credit when you sign up.

    Sign up free or book a free meeting

    Topics

    • Bulk SMS
    • WhatsApp
    • OTP
    • RCS
    • Voice Call
    • DLT
    • Delivery Report
    • Transaction
    • Address Book
    • Webhooks

    On this page

    1. Why whitelist IPs for the API?
    2. Before you start
    3. How to whitelist an IP address
    4. Manage the lists
    5. How to turn API Security off
    6. Error 414: IP is blacklisted from Dev API section
    7. Common problems and fixes
    8. Frequently asked questions
    9. Related guides
    Sign up free

    Products

    • Bulk SMS Service
    • WhatsApp Business API
    • OTP SMS
    • RCS Messaging
    • Voice Call (OBD)
    • Cloud Telephony
    • Quick SMS without DLT
    • Campaign Flow Builder
    • Integrations

    Pricing

    • Bulk SMS Pricing
    • WhatsApp Pricing
    • RCS Pricing
    • Voice Call Pricing
    • Cloud Telephony Pricing

    Guides

    • How to send bulk SMS in India
    • Send bulk WhatsApp messages
    • Official WhatsApp Business API
    • WhatsApp OTP API
    • RCS business messaging
    • Bulk voice call service
    • WooCommerce SMS & WhatsApp plugin
    • Shopify SMS & WhatsApp app
    • DLT Registration

    Bulk SMS for

    • Bulk SMS API
    • OTP SMS provider in India
    • Bulk SMS for marketing
    • Bulk SMS for E-commerce
    • Bulk SMS for Schools
    • Bulk SMS for Hospitals
    • Bulk SMS for Real Estate
    • Bulk SMS in Delhi
    • Bulk SMS in Mumbai

    Company

    • About Us
    • Why Fast2SMS
    • Certificates
    • SMS Reseller
    • Contact Us
    • API Docs
    • Sitemap
    Fast2SMS [email protected] +91 6262778822

    Social links

    Meta Business Partner
    © 2026 Fast2SMS. All rights reserved. Privacy Policy · Terms · Article sitemap · Page sitemap