palbaseDocs

Palbase ai · API

POST/ai/groups/{group_id}/broadcast

Broadcast to an actor group

Publish a message to an actor group's realtime channel and optionally deliver it to member chats.

Called by your server, with the project's secret key.

Path

group_idstring · requiredActor group identifier

Request body

sender_chat_idstring · optional
textstring · required
metadataobject · optional
deliverboolean · optional
curl
curl -X POST "https://<your-ref>.palbase.studio/ai/groups/<group_id>/broadcast" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"text":"string"}'

Responses

200Broadcast delivered

400The request is malformed, or names what this module does not offer (the error names which)

401No valid credential

403A publishable key or a user's session: everything here is the project's server's, called with the secret key

404No such response, job or provider in this project

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation BroadcastActorGroup of ai's contract.