Skip to main content
POST
/
send
/
media
Dispatch Rich Media Attachments
curl --request POST \
  --url https://app.wachat.net/api/v1/send/media \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "instanceName": "<string>",
  "number": "<string>",
  "type": "image",
  "mediaUrl": "https://wachat.net/assets/promo.jpg",
  "message": "Cek promo menarik bulan ini!",
  "fileName": "Invoice-1024.pdf",
  "mimetype": "application/pdf",
  "delay": 123
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.wachat.net/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authenticate your integration payloads by injecting your premium secure Wachat Account API Private Secret Key inside standard Authorization Bearer header vectors.

Body

application/json
instanceName
string
required

Name of your connected WhatsApp session profile.

number
string
required

Target phone number with international country code routing.

type
enum<string>
required

Supported structural file classification standard.

Available options:
image,
video,
document,
audio
Example:

"image"

mediaUrl
string<uri>
required

The direct fully qualified URL endpoint hosting your media asset.

Example:

"https://wachat.net/assets/promo.jpg"

message
string

Contextual rich text descriptive caption elements accompanied with media assets (ignored for audio payloads).

Example:

"Cek promo menarik bulan ini!"

fileName
string

Explicit file attachment naming convention overlay. Strongly recommended for structural documents.

Example:

"Invoice-1024.pdf"

mimetype
string

Explicit custom Multipurpose Internet Mail Extensions header format definition overlay.

Example:

"application/pdf"

delay
integer

Custom simulated typing delay parameter in milliseconds. If left empty, it runs an organic 3-5 seconds random engine delay.

Response

200

Media payload processed and dispatched through the cloud instance infrastructure.