Skip to main content
GET
/
messages
/
{id}
Get Message
curl --request GET \
  --url https://public.watermelon.ai/api/v1/messages/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "conversation_id": 123,
  "user_id": 123,
  "type": "text",
  "payload": "<string>",
  "new": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "deleted_at": "2023-11-07T05:31:56Z",
  "read": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Message id to fetch

Response

Message

id
integer
conversation_id
integer
user_id
integer
type
enum<string>
Available options:
text,
sticker,
photo,
video,
file,
activity,
typing,
attachment,
emoji,
location,
contact
payload
string
new
boolean
created_at
string<date-time>
updated_at
string<date-time>
deleted_at
string<date-time>
read
boolean