> ## Documentation Index
> Fetch the complete documentation index at: https://whatsapp-docs.kap.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Location request messages

# Location request messages

Updated: Nov 3, 2025

Location request messages display **body text** and a **send location button**. When a WhatsApp user taps the button, a location sharing screen appears which the user can then use to share their location.

![](https://scontent-fra3-1.xx.fbcdn.net/v/t39.2365-6/411712787_1346691626211128_4092487602815472288_n.png?_nc_cat=105\&ccb=1-7&_nc_sid=e280be&_nc_ohc=Drt5IOf1j-sQ7kNvwFXRVI2&_nc_oc=AdnTcSjkUFoFchXCkFGAd2j0WotB66kVThGg0i3uFVUh8OUPQj_owdlM80ImnN5Y0gw&_nc_zt=14&_nc_ht=scontent-fra3-1.xx&_nc_gid=ie2Hiuu87Cd_avsHq0TF_Q\&oh=00_Afn799VB3uIs3pL5-IxhmOwyrLk7A8xncku4tUcACE2rIw\&oe=69550CEA)

Once the user shares their location, a **messages** webhook is triggered, containing the user’s location details.

## Request syntax

Use the [POST /\<WHATSAPP\_BUSINESS\_PHONE\_NUMBER\_ID>/messages](https://developers.facebook.com/documentation/business-messaging/whatsapp/reference/whatsapp-business-phone-number/message-api) endpoint to send a location request message to a WhatsApp user.

```
curl 'https://graph.facebook.com/&lt;API_VERSION&gt;/&lt;WHATSAPP_BUSINESS_PHONE_NUMBER_ID&gt;/messages' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer &lt;ACCESS_TOKEN&gt;' \
-d '
\{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "type": "interactive",
  "to": "&lt;WHATSAPP_USER_PHONE_NUMBER&gt;",
  "interactive": {
    "type": "location_request_message",
    "body": {
      "text": "&lt;BODY_TEXT&gt;"
    },
    "action": {
      "name": "send_location"
    }
  }
}'
```

## Request parameters

| Placeholder                                               | Description                                                                                                                                                                                                                                                                                                       | Example Value                                                                                                                                                                                                                                    |
| --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `&lt;ACCESS_TOKEN&gt;`<br />*String*                      | **Required.**<br />[System token](https://developers.facebook.com/documentation/business-messaging/whatsapp/access-tokens#system-user-access-tokens) or [business token](https://developers.facebook.com/documentation/business-messaging/whatsapp/access-tokens#business-integration-system-user-access-tokens). | `EAAAN6tcBzAUBOZC82CW7iR2LiaZBwUHS4Y7FDtQxRUPy1PHZClDGZBZCgWdrTisgMjpFKiZAi1FBBQNO2IqZBAzdZAA16lmUs0XgRcCf6z1LLxQCgLXDEpg80d41UZBt1FKJZCqJFcTYXJvSMeHLvOdZwFyZBrV9ZPHZASSqxDZBUZASyFdzjiy2A1sippEsF4DVV5W2IlkOSr2LrMLuYoNMYBy8xQczzOKDOMccqHEZD` |
| `&lt;API_VERSION&gt;`<br />*String*                       | **Optional.**<br />Graph API version.                                                                                                                                                                                                                                                                             | v24.0                                                                                                                                                                                                                                            |
| `&lt;BODY_TEXT&gt;`<br />*String*                         | **Required.**<br />Message body text. Supports URLs.<br />Maximum 1024 characters.                                                                                                                                                                                                                                | `Let's start with your pickup. You can either manually *enter an address* or *share your current location*.`                                                                                                                                     |
| `&lt;WHATSAPP_BUSINESS_PHONE_NUMBER_ID&gt;`<br />*String* | **Required.**<br />WhatsApp business phone number ID.                                                                                                                                                                                                                                                             | `106540352242922`                                                                                                                                                                                                                                |
| `&lt;WHATSAPP_USER_PHONE_NUMBER&gt;`<br />*String*        | **Required.**<br />WhatsApp user phone number.                                                                                                                                                                                                                                                                    | `+16505551234`                                                                                                                                                                                                                                   |

## Webhook syntax

When a WhatsApp user shares their location in response to your message, a **messages** webhook is triggered containing the user’s location details.

```
\{
  "object": "whatsapp_business_account",
  "entry": [\
    {\
      "id": "&lt;WHATSAPP_BUSINESS_ACCOUNT_ID&gt;",\
      "changes": [\
        {\
          "value": {\
            "messaging_product": "whatsapp",\
            "metadata": {\
              "display_phone_number": "&lt;WHATSAPP_BUSINESS_DISPLAY_PHONE_NUMBER&gt;",\
              "phone_number_id": "&lt;WHATSAPP_BUSINESS_PHONE_NUMBER_ID&gt;"\
            },\
            "contacts": [\
              {\
                "profile": {\
                  "name": "&lt;WHATSAPP_USER_NAME&gt;"\
                },\
                "wa_id": "&lt;WHATSAPP_USER_ID&gt;"\
              }\
            ],\
            "messages": [\
              {\
                "context": {\
                  "from": "&lt;WHATSAPP_BUSINESS_PHONE_NUMBER&gt;",\
                  "id": "&lt;WHATSAPP_CONTEXT_MESSAGE_ID&gt;"\
                },\
                "from": "&lt;WHATSAPP_USER_ID&gt;",\
                "id": "&lt;WHATSAPP_MESSAGE_ID&gt;",\
                "timestamp": "&lt;TIMESTAMP&gt;",\
                "location": {\
                  "address": "&lt;LOCATION_ADDRESS&gt;",\
                  "latitude": &lt;LOCATION_LATITUDE&gt;,\
                  "longitude": &lt;LOCATION_LONGITUDE&gt;,\
                  "name": "&lt;LOCATION_NAME&gt;"\
                },\
                "type": "location"\
              }\
            ]\
          },\
          "field": "messages"\
        }\
      ]\
    }\
  ]
}
```

## Webhook parameters

| Placeholder                                                    | Description                                                                                      | Example Value                                                    |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------- |
| `&lt;LOCATION_ADDRESS&gt;`<br />*String*                       | Location address.<br />This parameter will only appear if the WhatsApp user chooses to share it. | `1071 5th Ave, New York, NY 10128`                               |
| `&lt;LOCATION_LATITUDE&gt;`<br />*Number*                      | Location latitude in decimal degrees.                                                            | `40.782910059774`                                                |
| `&lt;LOCATION_LONGITUDE&gt;`<br />*Number*                     | Location longitude in decimal degrees.                                                           | `-73.959075808525`                                               |
| `&lt;LOCATION_NAME&gt;`<br />*String*                          | Location name.<br />This parameter will only appear if the WhatsApp user chooses to share it.    | `Solomon R. Guggenheim Museum`                                   |
| `&lt;TIMESTAMP&gt;`<br />*String*                              | UNIX timestamp indicating when our servers processed the WhatsApp user’s message.                | `1702920965`                                                     |
| `&lt;WHATSAPP_BUSINESS_ACCOUNT_ID&gt;`<br />*String*           | WhatsApp Business Account ID.                                                                    | `102290129340398`                                                |
| `&lt;WHATSAPP_BUSINESS_DISPLAY_PHONE_NUMBER&gt;`<br />*String* | WhatsApp business phone number’s display number.                                                 | `15550783881`                                                    |
| `&lt;WHATSAPP_BUSINESS_PHONE_NUMBER&gt;`<br />*String*         | WhatsApp business phone number.                                                                  | `15550783881`                                                    |
| `&lt;WHATSAPP_BUSINESS_PHONE_NUMBER_ID&gt;`<br />*String*      | WhatsApp business phone number ID.                                                               | `106540352242922`                                                |
| `&lt;WHATSAPP_CONTEXT_MESSAGE_ID&gt;`<br />*String*            | WhatsApp message ID of message that the user is responding to.                                   | `wamid.HBgLMTY0NjcwNDM1OTUVAgARGBI1QjJGRjI1RDY0RkE4Nzg4QzcA`     |
| `&lt;WHATSAPP_MESSAGE_ID&gt;`<br />*String*                    | WhatsApp message ID of the user’s message.                                                       | `wamid.HBgLMTY0NjcwNDM1OTUVAgASGBQzQTRCRDcwNzgzMTRDNTAwRTgwRQA=` |
| `&lt;WHATSAPP_USER_ID&gt;`<br />*String*                       | WhatsApp user’s WhatsApp ID.                                                                     | `16505551234`                                                    |
| `&lt;WHATSAPP_USER_NAME&gt;`<br />*String*                     | WhatsApp user’s name.                                                                            | `Pablo Morales`                                                  |

## Example request

```
curl 'https://graph.facebook.com/v24.0/106540352242922/messages' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer EAAJB...' \
-d '
\{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "type": "interactive",
  "to": "+16505551234",
  "interactive": {
    "type": "location_request_message",
    "body": {
      "text": "Let'\''s start with your pickup. You can either manually *enter an address* or *share your current location*."
    },
    "action": {
      "name": "send_location"
    }
  }
}'
```

## Example response

```
\{
  "messaging_product": "whatsapp",
  "contacts": [\
    {\
      "input": "+16505551234",\
      "wa_id": "16505551234"\
    }\
  ],
  "messages": [\
    {\
      "id": "wamid.HBgLMTY0NjcwNDM1OTUVAgARGBJCNUQ5RUNBNTk3OEQ2M0ZEQzgA"\
    }\
  ]
}
```

## Example webhook

```
\{
  "object": "whatsapp_business_account",
  "entry": [\
    {\
      "id": "102290129340398",\
      "changes": [\
        {\
          "value": {\
            "messaging_product": "whatsapp",\
            "metadata": {\
              "display_phone_number": "15550783881",\
              "phone_number_id": "106540352242922"\
            },\
            "contacts": [\
              {\
                "profile": {\
                  "name": "Pablo Morales"\
                },\
                "wa_id": "16505551234"\
              }\
            ],\
            "messages": [\
              {\
                "context": {\
                  "from": "15550783881",\
                  "id": "wamid.HBgLMTY0NjcwNDM1OTUVAgARGBI1QjJGRjI1RDY0RkE4Nzg4QzcA"\
                },\
                "from": "16505551234",\
                "id": "wamid.HBgLMTY0NjcwNDM1OTUVAgASGBQzQTRCRDcwNzgzMTRDNTAwRTgwRQA=",\
                "timestamp": "1702920965",\
                "location": {\
                  "address": "1071 5th Ave, New York, NY 10128",\
                  "latitude": 40.782910059774,\
                  "longitude": -73.959075808525,\
                  "name": "Solomon R. Guggenheim Museum"\
                },\
                "type": "location"\
              }\
            ]\
          },\
          "field": "messages"\
        }\
      ]\
    }\
  ]
}
```

Did you find this page helpful?

![Thumbs up icon](https://static.xx.fbcdn.net/rsrc.php/yR/r/OEXJ0_DJeZv.svg)

![Thumbs down icon](https://static.xx.fbcdn.net/rsrc.php/yb/r/qKPgNVNeatU.svg)

ON THIS PAGE

Request syntax

Request parameters

Webhook syntax

Webhook parameters

Example request

Example response

Example webhook

***
