Create message
Messages
POST message
Endpoint
POST /api/v1/chats/:chat_id/messages
Parameters
Name | Description |
---|---|
message[text] | Message text |
message[files] | Array of files signed ids |
Request
Route
POST /api/v1/chats/775/messages
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTA0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTMwLCJleHAiOjE3NTExMDg1MzAsImp0aSI6IjlhYTIxMjc1LTJhMTUtNDA3YS1iNjdhLTI2MjgzNGE2NzJkNyJ9.aOxQijqTCc-1Rg3ARdUCD0lRc_q-Qc6sQDBuVqGHRus
Host: example.org
Cookie:
Body
{
"chat_id": 775,
"message": {
"text": "Perferendis maiores blanditiis et.",
"files": [
"eyJfcmFpbHMiOnsiZGF0YSI6MjUsInB1ciI6ImJsb2JfaWQifX0=--701f03b91322c932fe58855a3e15e5ecbc2b1c88"
]
}
}
Response
Simulated Response
Status
403
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
cache-control: no-cache
x-request-id: c88ec50a-0044-44fa-a6ab-6353a25e88d6
x-runtime: 0.009849
content-length: 94
Body
{
"status": "Forbidden",
"message": "not allowed to message? this Chat",
"code": 403,
"backtrace": ""
}