Room Endpoints
Send a message to a room
Send a message to live sessions in a room
POST
/
rooms
/
{room_id}
/
message
Authorization
Path
Body
curl --request POST \
--url https://api.pagecall.com/v1/rooms/{room_id}/message \
--header 'Authorization: <authorization>' \
--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
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
room_id
string
requiredroom id
Body
application/json
message
string
requiredResponse
200 - application/json
message
string
curl --request POST \
--url https://api.pagecall.com/v1/rooms/{room_id}/message \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"message": "<string>"
}'
{
"message": "<string>"
}