Send Audio WhatsApp
POST/api/v2/instance/:instanceId/send/audio
Send WhatsApp Audio
This specialized endpoint will allow you to send audio as if you were recording directly in the WhatsApp application.
Request
Path Parameters
ID of the instance.
- application/json
Body
required
Provide a valid audio url: ogg or oga.
Contact number or group id
options object
Defines the delay with which the message will be sent in milliseconds.
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.
audioMessage object
WhatsApp-type audio sending
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.679Z",
"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
}