Docs / Events and sinks

Event destinations

Send community events to webhooks or queues, verify signatures, and manage delivery.

Overview

A destination receives Datum events at a webhook URL, queue, or stream. Your instance determines which types it allows. You choose the topics for each destination.

Datum passes events to Outpost, its delivery service. Outpost signs requests, retries failures, and records each attempt.

Datum records changes immediately and publishes new events once per minute. Events usually reach destinations within about one minute. Busy workers and retries can increase that delay. Agent subscriptions take longer.

Datum records every event even when delivery remains disabled. The log retains events before destination creation and during outages. You can poll the log at any time.

Only owners can add, change, disable, archive, or retry destinations. Members can view the list.

Configure

Settings → Destinations lists webhooks and sinks with their status. Owners can use Add destination to access these options:

  • Webhook and Claude routine, under Events, plus any queue, stream, or Hookdeck types the instance permits. See Start a Claude routine.
  • CRM sync and Warehouse sync, under Records, for sinks.
  • Open delivery portal, under Delivery, on self-hosted instances with delivery running.

Recent events shows the latest events with a short summary and Sent, Waiting, Failed, or Not sent status. Sent means the delivery service accepted the event; open a destination to see whether it arrived. The Include personal data in events switch controls addresses, links, and location in event bodies. See Personal data in event bodies.

When delivery is off

Webhook delivery requires the instance’s delivery service. Without it, Webhook remains unavailable. Sinks still work.

The screen shows: “Webhook delivery isn’t switched on for this instance. Events are still recorded and will send once it is.”

Datum continues to record all events. The complete log stays available.

On self-hosted instances, How to switch it on ↗ opens TLS and event delivery. Hosted instances show no link. Ask your operator to enable outbound delivery on a hosted instance. Use an API key to poll the log while delivery remains unavailable.

Before delivery has ever started, recorded events remain pending with no failure reason. Automatic delivery starts after a successful service probe registers its start time. Datum then marks earlier events unpublished, with a reason beside each. Datum does not send them automatically. Owners can publish them with an explicit start date. See Send older history.

Basics

Agent subscriptions

Find connected agents under Agent subscriptions. Each row shows the agent and its connected person. Watches shows the purpose, trigger and filters. Last fired, Expires and Status follow.

Check the expiry and last successful delivery. Owners also see recorded publishing failures involving the subscription and their attempt counts. One failure can involve several subscriptions. These counts do not describe individual callback attempts. The seven-day event count covers the trigger across your workspace.

Owners see every subscription and can choose Cancel subscription. Members see their own subscriptions. Ask the agent to change or renew a subscription. You cannot edit it here.

A Claude routine is a different destination: Datum starts runs in Claude. An agent connection in Access lets the agent read or act on your community. See Agent event triggers for subscriptions.

Add a webhook

  1. Start from Settings

    Open Settings → Destinations. Open Add destination. Choose Webhook.

  2. Enter the URL

    Enter the address that must receive events. Add any required headers as JSON in the headers field.

    Headers support writes only. Datum never displays them again.

  3. Choose topics

    Select the required topics.

    Each topic includes a description and Sample payload. All topics, including future additions subscribes to current and future native Datum topics. Common Room topics require an explicit subscription. New destinations initially select member.created and activity.created.

  4. Save the signing secret

    Choose Create destination. Copy the signing secret into your receiver’s secret store. Choose I’ve saved it.

    Datum displays the signing secret only once.

  5. Check it worked

    Find the destination in the list. Check its status after a matching event occurs.

    The destination uses its host as its name, with the full address beneath it. Its card shows Active and initially Awaiting events. After the first matching event arrives, it displays Delivering.

Queues, streams and cloud storage

When the instance permits them, Add destination includes these types under Events:

Type Kind in the CLI and API
Hookdeck hookdeck
RabbitMQ rabbitmq
Amazon SQS aws_sqs
Amazon Kinesis aws_kinesis
Amazon S3 aws_s3
Amazon EventBridge aws_eventbridge
Azure Service Bus azure_servicebus
Google Pub/Sub gcp_pubsub
Kafka kafka
Cloudflare Queues cloudflare_queues

Each type requires specific settings and credentials. Datum sends these directly to the delivery service without storing them itself.

S3 stores each event as a bucket object. EventBridge sends events to an event bus. Cloudflare Queues sends events to a queue in your Cloudflare account. The Outpost documentation lists required settings.

Datum checks every RabbitMQ broker connection for private addresses, as it checks webhooks. The broker must be reachable on the public internet. The menu always lists RabbitMQ.

The other queue, stream, and storage types create their own connections, so Datum cannot check them for private addresses. The menu lists them, and Hookdeck, only when the operator allows queue destinations with OCMGR_QUEUE_DESTINATIONS=allow.

Without that setting, the menu offers only Webhook, Claude routine and RabbitMQ. The CLI, MCP, and REST API also accept Hookdeck destinations, because Hookdeck posts only to fixed public endpoints. Run ocmgr events destination types --json to list available types.

Verify a signature

The delivery service signs requests with Standard Webhooks. Verify the raw request body before parsing it. Use the destination secret and the webhook-id, webhook-timestamp, and webhook-signature headers:

import { Webhook } from 'standardwebhooks';

const event = new Webhook(process.env.WEBHOOK_SECRET as string).verify(rawBody, {
  'webhook-id': req.headers['webhook-id'] as string,
  'webhook-timestamp': req.headers['webhook-timestamp'] as string,
  'webhook-signature': req.headers['webhook-signature'] as string,
});

Verification refuses incorrect signatures and old timestamps. Deliveries can repeat or arrive in a different order.

Deduplicate deliveries with webhook-id. Read the current member when event order matters.

Native payloads also contain event_id.

Read a destination’s health

Each card in the list and each destination page shows Active, Failing, Off, or Archived. Beside it is the latest delivery state: Delivering, Awaiting events, Last attempt failed, a recent failure count, or Disabled. No new deliveries will be sent. The label beside a card’s switch reads Enabled or Disabled.

Open a destination to see Deliveries. To see earlier attempts, press Older attempts.

Each attempt shows its status, event ID, time, and response code. Datum hides response bodies and headers because receivers can return credentials or erased data.

Retry a delivery

The delivery service retries failures on its own schedule. To retry immediately:

  1. Open the destination.
  2. Choose Retry beside the attempt.

A retry needs an event that the delivery service already accepted. If an event did not get to the delivery service, publish it.

Pause, archive and rotate

The destination’s ··· menu in the list and its page provide these actions. Edit is on the destination page only: open the destination by its name.

  • Disable stops new deliveries and the delivery service’s retries.
  • Enable resumes delivery.
  • Archive destination stops delivery, and keeps the destination and its history. Archived destinations move to Archived at the bottom of the list, with the label Archived. Enable makes an archived destination live again.
  • Rotate signing secret shows a new secret one time. The next delivery uses the new key.

You cannot delete an event destination. To remove one from the list, archive it.

After a rotation, save the new secret in your receiver. Then retry the deliveries that failed during the rotation.

The delivery portal

Owners of self-hosted instances with a running delivery service can open the delivery portal.

  1. Open Add destination.
  2. Choose Open delivery portal.
  3. Choose Continue to delivery portal ↗.

The portal shows the workspace screens of the delivery service. Owners can add destinations, inspect attempts, retry deliveries and rotate secrets.

Keep the portal link private. The link expires quickly, but it gives access to change event destinations. Hosted instances do not supply it. Self-hosted instances that block private addresses also do not supply it.

See what is waiting

The status strip shows four tiles to owners:

  • Delivery: On, Off, or Unreachable.
  • Events waiting: events the delivery service hasn’t accepted yet.
  • Oldest waiting: how long the oldest of them has waited.
  • Last delivered: when the delivery service last accepted an event.

The strip refreshes every 30 seconds. While events wait and delivery is on, Replay waiting events appears under the tiles. It publishes waiting events to all enabled destinations, from a date that you choose: All waiting, Last 7 days or Custom. Before it publishes, it shows how many events it will send.

This button does the same as POST /v1/events/publish. See Send older history. You cannot get back an event after it gets to a destination.

Waiting counts include failed events and events whose publication stopped. For stopped, recovery needed, an owner must recover the events. The owner uses POST /v1/events/publish, or the self-hosted command ocmgr events publish --json.

The age of an event starts when Datum records the event. The original activity can be older. These counts are for events that the delivery service has not accepted yet.

To check whether a webhook received an accepted event, open the destination. Then inspect Deliveries.

Unpublished historical events show separately, with a link to the replay instructions. Datum intentionally does not deliver these events automatically. When delivery stays off, the screen tells you, and the event log stays available.

Members and owners can request the summary through any interface:

  • CLI: ocmgr events list --summary --limit 1 --json
  • REST: GET /v1/events?summary=true&limit=1
  • MCP: list_events with {"summary":true,"limit":1}

The summary covers the entire workspace, regardless of event list filters. Datum returns it only on request.

Send older history

Before activation, events stay pending. After activation, events that Datum recorded before the start time become unpublished. An owner must publish them explicitly with a start date. Publishing selects only events that the delivery service never accepted.

Publishing does not repeat events that a destination already received. Thus, a new destination cannot get all historical events through publishing. To give the complete history to a new consumer, use event log polling.

The --since filter compares the time when each change occurred. Each call sends up to 100 events by default.

In the app, owners use Replay waiting events under the status strip. It shows the count first. Then it publishes in batches until no events are left.

From a terminal or script:

On a self-hosted instance:

After you configure the delivery service, run ocmgr events delivery start --json. This command registers the start time and does not replay history. The worker also registers this time automatically after a successful probe.

Without --since, publication selects only events eligible for automatic delivery. Before activation, that selection is empty.

  1. Preview with ocmgr events publish --since <iso> --dry-run --json.
  2. Run the command without --dry-run to publish.
  3. Repeat until matched reaches zero.

On a hosted instance:

  1. Send {"since": "<iso>", "dry_run": true} to POST /v1/events/publish with an admin API key.
  2. Repeat the request without dry_run to publish.
  3. Repeat until matched reaches zero.
ocmgr events publish --since 2026-09-01T00:00:00Z --dry-run --json
ocmgr events publish --since 2026-09-01T00:00:00Z --json

Dry runs report counts without sending events. Publishing requires admin scope.

Personal data in event bodies

Events contain IDs and display names. Email addresses, profile URLs, avatar URLs, and location (location_city and location_country) require Include personal data in events under Settings → Destinations. Only owners can enable this setting. It starts disabled.

Subscribers can store payloads in request logs, queues, retry storage, and vendor logs. Each subscriber must erase its copies when it receives an erasure event.

Consider whether subscribers need addresses in every event before enabling the setting.

Subscribers can instead request addresses when needed with GET /v1/members/{id} and a revocable API key.

Changes to the switch affect subsequent events only. Existing events retain their recorded payloads. Enabling the switch does not add addresses to older events. Disabling it does not remove existing addresses.

The same switch controls whether sinks send addresses, locations, profile links, and avatars.

Erasure

Datum announces member.redacted when it erases a member. Delete the receiver’s copies of that person, including copies under merged member IDs.

The delivery service retains delivery bodies for 30 days. Datum refuses requests to retry events about an erased person. However, the delivery service’s existing retries and delivery portal can still deliver older events after member.redacted.

Apply erasure to later arrivals as well as existing copies.

From your terminal or agent

Every destination action also supports the CLI, MCP, and REST API. Keep destination files private because they contain credentials. Use files instead of command-line arguments for secrets.

ocmgr events destination create --file destination.json --json
ocmgr events destinations --json
ocmgr events attempts --destination <destinationId> --status failed --json
ocmgr events retry <eventId> --destination <destinationId> --json
ocmgr events destination rotate-secret <destinationId> --json
ocmgr events destination disable <destinationId> --json

A destination file has this structure:

{"type":"webhook","topics":["member.created","activity.created"],"config":{"url":"https://your-service.example/events"}}

The topics field accepts a topic list, or "*" for all native Datum topics. Terminal commands that change data support --dry-run.

REST calls that change destinations do not accept a dry-run flag. For event publication, send dry_run in the body of POST /v1/events/publish. To send to an agent, send dry_run in the body of the send-agent routes. A dry run checks the configuration and the destination. Then it prints the request without secrets. It can read the metadata of the delivery service, but it never sends an event or saves changes.

See create_destination, list_delivery_attempts, and retry_event_delivery for every parameter.

FAQ

Will a new destination receive events from before it existed?

No. The delivery service sends events only to destinations that subscribe at the time of delivery. Publishing history includes only events that no destination received.

To give earlier events to a new consumer, read the event log from the beginning. Then use the destination for new events.

I made a change and nothing arrived.
  1. Wait one minute for publication.
  2. Open the destination.
  3. Inspect Deliveries.

If there is no attempt, publication has not got to that destination, or the destination does not subscribe to the topic. Failed attempts show response codes. The delivery service retries failures automatically.

Retry says there is nothing to retry.

The event has not reached the delivery service. Publish it with ocmgr events publish --id <eventId> --json.

Events with unpublished status require publication with --since.

Can I send events to an address on my private network?

Hosted instances reject private addresses. Self-hosted instances also reject them when they block private addresses, which the events profile does by default. A self-host operator can allow private destinations. Rejected deliveries appear as failed attempts.

What happens to a destination I archive?

Delivery stops. Datum preserves the destination, its ID, and its attempt history. You can enable it again.

Webhook config.custom_headers accepts an object such as {"X-Workspace":"community"} or a JSON-encoded string. For example: {"type":"webhook","topics":"*","config":{"url":"https://example.com/events","custom_headers":{"X-Workspace":"community"}}}.

filters and the destination test route are for Claude routines only. Sending routine filters to a webhook returns 400. Compatibility delivery attempts include their commonroom.* topic and originalEventId, which resolves through GET /v1/events/context/{eventId}. The attempt’s delivery ID retains its .commonroom suffix for retries; the context route also accepts that suffixed ID.