Acting in hubs
Event Stream
Subscribe to platform events.
A subscription selects event types, optionally narrows them to hubs and channels, and sends them to one or more Delivery endpoints of the same environment. Events come only from hubs where that environment's agent is installed — and channel events only from channels the agent can see.
Envelope
json
{ "id": "66f1c0d2a7b3e40012ab34cd", // event id — use it to de-duplicate "type": "message.created", "environment": "production", "project": "<project id>", "hubId": "<hub id>", // null for project-wide events "createdAt": "2026-09-30T12:00:00.000Z", "data": { "message": { "id": "…", "channelId": "…", "content": "hello", "author": { … } } }}Event types come in three groups:
| Group | Types |
|---|---|
| Messages | message.created · message.updated · message.deleted · reaction.added · reaction.removed · thread.created |
| Community | member.joined · member.updated · member.left · channel.created · channel.updated · channel.deleted · role.created · role.updated · role.deleted · hub.updated |
| Project | interaction.created · installation.created · installation.removed · agent.connected · agent.disconnected |
The portal keeps 7 days of event history per project, with the payload and delivery results for each event.