---
title: "Send location"
description: "Send a location pin on WhatsApp."
---

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

# Send location

Drop a map pin so customers know where to go — stores, pickup points, job sites, or event venues.

## At a glance

| Item | Detail |
| --- | --- |
| `type` | `location` |
| Channel support | Official and unofficial |
| Coordinates | Decimal degrees (`latitude`, `longitude`) |

## Request body

| Field | Required | Description |
| --- | --- | --- |
| `channel_id` | Yes | Sender channel ID |
| `to` | Yes | Recipient phone number |
| `type` | Yes | `location` |
| `content.name` | Yes | Place name |
| `content.address` | Yes | Address label |
| `content.latitude` | Yes | Latitude |
| `content.longitude` | Yes | Longitude |

## Example

### cURL

```bash
curl -X POST "https://api.wazapin.com/v1/messages" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
"channel_id": "wzp_abc123",
"to": "6281234567890",
"type": "location",
"content": {
  "name": "Wazapin Office",
  "address": "Jakarta Selatan",
  "latitude": -6.260697,
  "longitude": 106.781616
}
  }'
```
### TypeScript

```typescript
import { WazapinClient, locationMessage } from "@wazapin/sdk";

const wazapin = new WazapinClient({ apiKey: process.env.WAZAPIN_API_KEY! });

await wazapin.messages.send(
  locationMessage({
channel_id: "wzp_abc123",
to: "6281234567890",
name: "Wazapin Office",
address: "Jakarta Selatan",
latitude: -6.260697,
longitude: 106.781616,
  }),
);
```
### Python

```python
import requests

requests.post(
"https://api.wazapin.com/v1/messages",
headers={"X-Api-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={
    "channel_id": "wzp_abc123",
    "to": "6281234567890",
    "type": "location",
    "content": {
        "name": "Wazapin Office",
        "address": "Jakarta Selatan",
        "latitude": -6.260697,
        "longitude": 106.781616,
    },
},
timeout=30,
).raise_for_status()
```

Source: https://docs.wazapin.id/getting-started/send-location/index.mdx
