---
title: "Sends a location to a chat"
method: POST
path: "/api/messages/sendLocation"
tags: ["messages"]
---

# Sends a location to a chat

`POST /api/messages/sendLocation`

Sends a location to a chat

## Request body

- object
  - `to` string, required — Recipient chat ID
  - `lat` union, required — Latitude coordinate
    - number
    - string
  - `lng` union, required — Longitude coordinate
    - number
    - string
  - `loc` string — Location name or description
  - `address` string — Address text
  - `url` string, uri — Address link

## Response `200`

Successful response

- union
  - object
    - `_serialized` string, required
  - boolean

## Other responses

- `400` — Validation error
- `500` — Internal server error

---

[API](https://skmtc.net/open-wa/apis/open-wa-api.md) · [All operations](https://skmtc.net/open-wa/apis/open-wa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open-wa/open-wa-api/versions/2f344d03d2a9/schema)
