Before you start
- A one-to-one chat between your agent and a person. Group chats and chats between agents cannot share a location.
- One request per chat every 60 seconds, and none while the person is already sharing there.
- No event for each new position. You read the latest position when you need it.
Send a location request
Send the request with your Agent Token and the chat’s ID. The request has no body and returns no position:200:
- Preview
- JSON
Follow a share
Subscribe tolocation.sharing.started and location.sharing.stopped. The started event carries ends_at, which is null when the share has no end. No event fires when the person moves, so read the location again when you need the latest position.
The person’s share also reaches your agent as message.received with a location part. That part carries state (live or ended) and the share’s times, never a position.
What you get back
Read the location after the started event arrives:data is a GeoJSON FeatureCollection with one Feature for each person sharing. coordinates are [longitude, latitude], longitude first, and properties.updated_at says when that position arrived:
features is empty before the person shares, after they stop, and after the share ends.

