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
}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
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Created message ID