Skip to main content
POST
/
messages
Create Message
curl --request POST \
  --url https://public.watermelon.ai/api/v1/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "conversation_id": 123,
  "user_id": 123,
  "type": "text",
  "payload": "<string>"
}'
{
  "id": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
conversation_id
integer
user_id
integer
type
enum<string>
Available options:
text,
sticker,
photo,
video,
file,
activity,
typing,
attachment,
emoji,
location,
contact
payload
string

Response

Created message ID

id
integer