Skip to main content
Registration is a single REST call. It records your app and returns a ready-to-use Kafka client config for your language.

Getting a token

Every call on this page authenticates with a platform API key (Authorization: Bearer sariva_…). In this release, app teams do not have keys of their own. Registration requires the app:register permission, and the only key role that carries it today is platform_admin — a team-scoped developer role (register your own apps, see only your own apps’ health and alerts) exists in the platform’s RBAC, but keys for it cannot be minted yet. The practical path today: ask your platform operator to run the registration for you, or to make these calls with you. Operator keys are platform-wide admin credentials, not team credentials — which is exactly why per-team developer keys are the designed next step. This page will switch to per-team keys when developer-role minting lands.

Register

Your app’s alerts go to your team’s channel in the one chat surface your install uses — Microsoft Teams or Slack (ask your operator if you’re unsure). Use the tab that matches it; the only difference is the destination field.
teams_channel_id is your channel’s id — see Find your Teams channel id below.
A producer is the same call with the direction reversed — swap the consumer fields for these, keeping your destination field:

Find your Teams channel id

  1. In Microsoft Teams, open the channel’s ⋯ menu → Get link to channel, and copy the link. It looks like https://teams.microsoft.com/l/channel/19%3Aa1b2c3d4e5f6%40thread.tacv2/payments-eng?groupId=…&tenantId=…
  2. Take the segment between /channel/ and the next / — 19%3Aa1b2c3d4e5f6%40thread.tacv2.
  3. URL-decode it: %3A → : and %40 → @. The result, 19:a1b2c3d4e5f6@thread.tacv2, is the teams_channel_id.
The groupId GUID in the same link is the team, not the channel — it is rejected. So is the still-encoded form: registration checks the shape (19: … @thread. …) and answers 400 with these steps. The Sariva bot must also be installed in that team, or posts fail at alert time — ask your operator to add it (Install the app in Teams → Per-app alerts). A 201 returns the stored record plus the generated config:

The fields

Registration asks for the destination field of your install’s chat surface (or "chat_alerts": false); leave both out and the 400 names that field. A PUT that would clear the last destination is rejected too. (An install whose operator added a second surface by hand accepts either field; an app that sets the two gets every alert in each.)
both means “monitor both surfaces” — declare a consumer_group_id and a producer_client_id, with non-empty topics_subscribed and topics_produced_to. A consumer that also writes to a DLQ topic is both. (KStreams/Flink stream-processor apps aren’t registered here — that’s a separate surface in a later release.)

The config you get back

The config.content is a complete client properties file — application.properties for Java, a Python snippet for python. It carries the connection settings, serializers, and the identity values that make Sariva’s lag tracking work. See Your Kafka client config below.

What to do with the config

  1. Drop it into your app (e.g. src/main/resources/application.properties).
  2. Provide the credentials at runtime — the config references ${KAFKA_API_KEY} / ${KAFKA_API_SECRET} (and ${HOSTNAME} for the per-pod consumer identity). Inject these from your own secret store / env; Sariva doesn’t put secrets in the file.
  3. Re-download any time:
Why the identity fields matter. Consumer configs set group.instance.id to <alias>-${HOSTNAME} so each pod is a stable group member — that’s what lets Sariva attribute lag per pod. Producer configs default to acks=all + enable.idempotence=true (no duplicates on retry). Don’t strip these.

Manage your apps