Skip to main content
POST
Append thread messages

Authorizations

Authorization
string
header
required

Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.

Path Parameters

id
string
required

The thread id — yours to choose when creating.

Example:

"wa:prop_12:guest:34600000000"

Body

application/json
messages
object[]
required
Required array length: 1 - 50 elements
Example:
user_id
string

The user the thread belongs to. Required with an API key; a session token writes as its own user.

Example:

"user_4821"

title
string

Used when the thread is created; defaults to the first text sent.

Example:

"WhatsApp · +34 600 000 000"

metadata
object

Thread metadata, used when the thread is created.

Response

The messages were saved

thread_id
string
created
boolean

True when the thread was created by this call.

message_ids
string[]