---
title: Reply to an Incoming SMS
slug: messaging-apis/reply-to-an-incoming-sms
docTags: 
createdAt: 2026-07-21T07:07:06.809Z
---

:::BlockQuote
**Note:** "Currently incoming SMS feature is not available"
:::

Currently, only Outgoing SMS services are available. For Outgoing SMS services, TRAI has made it mandatory to register in the DLT portals. For the detailed information, see [TRAI Regulations on Commercial Communications (DLT portal) - SMS in India](/messaging-apis/trai-regulations-on-commercial-communications-dlt-portal-sms-in-india).

To respond to an incoming SMS, there are two use cases.

## Use cases

1. **Use case 1:** You receive an incoming SMS, and you want to send a dynamic reply to the sender.
2. **Use case 2:** You receive an incoming SMS and you just want to get details of an incoming SMS at your server — without having to send back a reply SMS.

## Set up the "Send a Reply" applet

1. On the [Installed apps](http://my.exotel.in/apps#installed-apps) page, corresponding to your app, click **Edit SMS app**.
2. Drag and drop the "Send a Reply" applet into the app you are building.
3. In the text box, you can enter a URL (instead of static text).
4. When there is an incoming SMS, Exotel will make an HTTP GET request to your web app at the above URL.
5. Your web app should respond with the SMS body to send as a reply (see details below).

Before the GET request, Exotel will make an HTTP HEAD request to make sure that the URL is indeed returning the correct `ContentType` as mandated below.

## HTTP request (from Exotel to your URL)

The GET request that Exotel makes to the URL will have the following query parameters:

| Parameter name | Value                                                                                        |
| -------------- | -------------------------------------------------------------------------------------------- |
| SmsSid         | string, unique identifier of that SMS                                                        |
| From           | string, the number of the sender                                                             |
| To             | string, your Exotel [Company number](http://my.exotel.in/numbers) where the SMS was received |
| Date           | string, Time when the SMS reached Exotel's servers                                           |
| Body           | string, the contents of the SMS                                                              |

Sample HTTP request (if the URL you have entered is `http://example.com/exotel.php`):

```javascript
GET /exotel.php?SmsSid=xxxxxx&From=9052161119&To=56070&Date=xxxxx&Body=Hello+World HTTP/1.1
```

## HTTP response (from your web server to Exotel)

**Use case 1: If you want to send an SMS back to the SMS-er**, your web server:

- MUST set the **Content-Type** HTTP header to `text/plain` and nothing else.
- MUST support a [HEAD request](http://en.wikipedia.org/wiki/HEAD_request#Request_methods) from Exotel and return the exact same headers that it would for a GET request.
- MUST put the SMS to reply within the HTTP body of the response.

Below is a sample HTTP response from your web server:

```javascript
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 130

Thanks for your order inquiry through SMS. Your order #12345 has been shipped already and will reach you in the next 2 - 3 days.
```

**Use case 2: If you don't want to send an SMS response back to the sender**, your web server:

- MUST set the **Content-Length** header to 0.
- MUST leave the body of the HTTP response empty.

## Need help?

If you have any questions or concerns, please connect with us using the chat widget on your Exotel Dashboard or WhatsApp us on 08088919888.
