Skip to main content
POST
/
send
Send a Message
curl --request POST \
  --url https://app.wachat.net/api/v1/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "instanceName": "<string>",
  "number": "<string>",
  "type": "text",
  "message": "<string>",
  "mediaUrl": "<string>",
  "fileName": "<string>",
  "mimetype": "<string>"
}
'

Authorizations

Authorization
string
header
required

Provide your Wachat API Key as a Bearer token.

Body

application/json
instanceName
string
required

The name of your connected instance.

number
string
required

The recipient's phone number.

type
enum<string>
required
Available options:
text,
image,
video,
document,
audio
message
string

Text content or caption for media.

mediaUrl
string<uri>

URL of the media file (if type is not text).

fileName
string

Custom file name for documents.

mimetype
string

Optional custom mimetype.

Response

200

Message sent successfully