Send Location
POST/api/v2/instance/:instanceId/send/location
Send Location Message
Request
Path Parameters
ID of the instance.
- application/json
Body
required
Contact number or group id
options object
Defines the delay with which the message will be sent in milliseconds.
Default value: composing | recording | available | unavailable
Defines the behavior of the connected number when sending the message in the chat.
Enter the id of the message to be quoted.
groupMention object
Mention the participants of a group.
Default value: true
This parameter allows mentioning all members of a group without directly referencing them.
Default value: true
Use this attribute to explicitly mention all members of a group.
An external value of any type that will be sent in the webhook.
locationMessage object
Responses
- 201
- 400
- 401
- 403
- 404
- 500
ResponseSendMessage
- application/json
- Schema
- Example (from schema)
Schema
Default value: 2023-12-13T17:55:01.032Z
Default value: 2023-12-13T17:55:01.032Z
{
"messageId": "string",
"keyId": "string",
"keyFromMe": true,
"keyRemoteJid": "string",
"keyParticipant": "string",
"pushName": "string",
"contentType": "string",
"isGroup": true,
"content": {},
"source": "string",
"messageTimestamp": 0,
"createdAt": "2024-04-14T14:11:05.687Z",
"instanceInstanceId": "2023-12-13T17:55:01.032Z",
"externalAttributes": "string"
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
ForbiddenException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
NotFoundException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
InternalServerErrorException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}