POST
/
v1
/
messages
/
:id
curl --location --request PUT 'https://api.stateset.com/v1/messages/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": ""
}'
{
    "data": {
        "insert_message": {
        "returning": [
            {
            "id": "",
            }
        ]
        }
    }

}

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.
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

curl --location --request PUT 'https://api.stateset.com/v1/messages/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": ""
}'
{
    "data": {
        "insert_message": {
        "returning": [
            {
            "id": "",
            }
        ]
        }
    }

}

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