Skip to main content
POST
Send a session media message

Authorizations

Authorization
string
header
required

Create an API key in GreenTick Developer settings. Send it as Authorization: Bearer gt_live_… (Bearer prefix required).

Headers

Idempotency-Key
string

When set, a repeated write with the same key and route replays the stored response.

Maximum string length: 200

Path Parameters

id
string
required

Resource id

Body

application/json
mediaType
enum<string>
required
Available options:
image,
video,
document
mediaBase64
string
mediaUrl
string
mediaMimeType
string
mediaFileName
string
caption
string
phoneNumberRef
string

GreenTick phone line id. Required when the account has more than one number.

phoneNumberId
string

Meta WhatsApp phone_number_id.

Response

Success

success
boolean
required
Example:

true

data
any
tool
string
blockedTools
string[]
next
string