Messages

Create message

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/773/messages

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDg2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQyLCJleHAiOjE3NDUwNTY5NDIsImp0aSI6IjcwZTExNDQ0LTIwODgtNDQ2MS05MDY1LTNjZDViNTQ3MzQ0OCJ9.R2-I_gmiKjWSQTrEg3gHnu7HK9hiQq6sZZRiMT3ofcU
Host: example.org
Cookie: 

Body

{
  "chat_id": 773,
  "message": {
    "text": "Neque rerum nesciunt officiis.",
    "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: aae1c5e8-a298-4a78-a1aa-33ba1fd02b90
x-runtime: 0.010012
content-length: 94

Body

{
  "status": "Forbidden",
  "message": "not allowed to message? this Chat",
  "code": 403,
  "backtrace": ""
}