POST
/
rooms
/
{room_id}
/
message
curl --request POST \
  --url https://api.pagecall.com/v1/rooms/{room_id}/message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "message": "<string>"
}'
{
  "message": "<string>"
}

A message sent needs to be handled as below. Unless it is handled by the client-side SDK, it does nothing.

<Pagecall
  onMessage={(message) => {
    // On a successful api call,
    // this callback is called with the same `message` value as in the request body
  }}
/>

Authorizations

Authorization
string
headerrequired

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

Path Parameters

room_id
string
required

room id

Body

application/json
message
string
required

Response

200 - application/json
message
string