Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key sk_live_… / sk_test_… ou JWT do usuário do chat (eyJ…).

Body

application/json
from
string

Chat App id. If set, it must match the conversation.

Example:

"clxxapp..."

to

Conversation id (string or list).

Example:

"cnv_xxxxx"

type
enum<string>
Available options:
text,
image,
audio,
file
Example:

"text"

payload
object

PIV1 content. Text in message; media in mediaUrl (HTTPS).

senderExternalUserId
string

Required with API Key. externalUserId of a USER or AGENT.

Example:

"user_alice"

clientMessageId
string
Example:

"msg_001"

replyToId
string
body
string

Legacy. Prefer payload.message.

mediaUrl
string

Legacy. Prefer payload.mediaUrl.

Response

OK

success
boolean
data
object
idempotent
boolean