POST
/
v1
/
messages

Body

id
string

This is the ID of the message to be created.

time
string

This is the time of the message to be created.

body
string

This is the body of the message to be created.

username
string

This is the username of the message to be created.

npm i -g stateset

channel_id
string

This is the channel_id of the message to be created.

user_id
string

This is the user_id of the message to be created.

is_public
boolean

This is the is_public of the message to be created.

from
string

This is the from of the message to be created.

to
string

This is the to of the message to be created.

from_me
boolean

This is the from_me of the message to be created.

sent_receipt
boolean

This is the sent_receipt of the message to be created.

delivered_receipt
boolean

This is the delivered_receipt of the message to be created.

message_number
number

This is the message_number of the message to be created.

date
string

This is the date of the message to be created.

timestamp
string

This is the timestamp of the message to be created.

created_at
string

This is the created_at of the message to be created.

updated_at
string

This is the updated_at of the message to be created.

Response

id
string

This is the id of the message.

body
string

This is the body of the message.

created_at
datetime

This is the date and time when the message was created.

date
date

This is the date when the message was sent.

deliveredReceipt
boolean

This indicates if the message has been delivered.

from
string

This is the sender of the message.

fromMe
boolean

This indicates if the message was sent by the user.

is_public
boolean

This indicates if the message is public or private.

messageNumber
integer

This is the unique number assigned to the message.

sentReceipt
boolean

This indicates if the message has been sent.

time
time

This is the time when the message was sent.

timestamp
datetime

This is the timestamp of the message.

to
string

This is the recipient of the message.

user_id
string

This is the unique identifier for the user associated with the message.

username
string

This is the username of the user associated with the message.

Messages

FieldTypeDescription
idStringUnique identifier for the message
bodyStringThe content or text of the message
created_atDateTimeThe date and time when the message was created
dateDateThe date when the message was sent
deliveredReceiptBooleanIndicates if the message has been delivered
fromStringSender of the message
fromMeBooleanIndicates if the message was sent by the user
is_publicBooleanIndicates if the message is public or private
messageNumberIntegerUnique number assigned to the message
sentReceiptBooleanIndicates if the message has been sent
timeTimeThe time when the message was sent
timestampDateTimeThe timestamp of the message
toStringRecipient of the message
user_idStringUnique identifier for the user associated with the message
usernameStringUsername of the user associated with the message