Interactive Messages
Send Location
Sends a specific location on a map. Supported on WhatsApp, Z-API, and ZapperAPI.
POST
/
messages
/
interactive
/
send-location
Sends a specific location on a map (latitude/longitude coordinates). This is supported on WhatsApp, Z-API, and ZapperHUB channels.
Authentication: Requires a valid API key or session. Pass as Authorization: Bearer <api_key>.
Request Body
Required Parameters
agentId: The ID of the agent.conversationId: The ID of the conversation.latitude: Latitude of the location (decimal degrees).longitude: Longitude of the location (decimal degrees).name: Name of the place.address: Address of the place.
Example
Error Responses
| HTTP Status | Meaning |
|---|---|
| 400 | Invalid request body |
| 401 | Invalid or missing API key |
| 403 | Agent does not belong to your organization |
| 404 | Conversation or agent not found |
| 500 | WhatsApp API error |
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
agentId
string
requiredThe ID of the agent.
conversationId
string
requiredThe ID of the conversation.
latitude
string
requiredLatitude of the location.
longitude
string
requiredLongitude of the location.
name
string
requiredName of the place.
address
string
requiredAddress of the place.
Was this page helpful?

