Send Media
POST/api/v2/instance/:instanceId/send/media
Send Media Message
Send media in general to whatsapp, such as: images, videos, stickers, audios and documents.
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.
mediaMessage object
Default value: image | video | document | sticker | audio
Choose the type of food to be sent.
Enter the url of the media.
Define a caption for your image.
This property is mandatory when sending documents.
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.676Z",
"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
}