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

# Location Request Message

> Ask a recipient to share their current location

Ask the recipient to share their current location using an interactive prompt.

## Endpoint

```http theme={null}
POST /api/whatsapp/{Sender Hash}/messages
```

**Sandbox base URL:** `https://testqa.cpaas.globeteleservices.com`

## Common headers

```http theme={null}
Accept: application/json
Content-Type: application/json
Authorization: Bearer <token>
```

The Bearer token is generated in the CPaaS+ Portal under the API tab. Replace `{Sender Hash}` with the registered sender hash obtained from the WhatsApp channel's Numbers section. The top-level `to` value should use international format without a leading `+`.

## Parameters

| Parameter | Required | Description from the guide |
| - | - | - |
| `messaging_product` | Yes | Fixed value `"whatsapp"`. |
| `recipient_type` | Optional | Fixed value `"individual"`; default stated in the guide. |
| `to` | Yes | Recipient WhatsApp number, without a leading `+`. |
| `type` | Yes | Fixed value `"interactive"`. |
| `interactive.type` | Yes | Fixed value `"location_request_message"`. |
| `interactive.body.text` | Yes | Prompt text explaining why the location is needed. |
| `interactive.action.name` | Yes | Fixed value `"send_location"`. |

## Request example

Use the following JSON as the request body. Replace the sender hash, token, recipient, IDs, and example values with values for your integration.

```json theme={null}
{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "919373084880",
  "type": "interactive",
  "interactive": {
    "type": "location_request_message",
    "body": {
      "text": "Let's start with your pickup point — please share your current location."
    },
    "action": { "name": "send_location" }
  }
}
```

## Responses and errors

See [Common HTTP Status Codes](/docs/status-codes.md) for the documented meanings and possible causes. A success status indicates acceptance for delivery and does not guarantee that the recipient received the message.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.