Flow
1
Mint a monitoring credential
Your backend calls
POST /v3/events/sdk-token/ with your API key and the user’s vendor_data.2
Submit from the device
The app posts to
POST /v1/events/ (or POST /v1/events/batch/) with the X-Monitoring-Token header.3
Rules run as usual
The event is enriched, rolled up and evaluated by exactly the same rules as a server-submitted one.
Minting a credential
Submitting
What the server enforces
- Subject binding. The credential is scoped to one
vendor_dataat mint time. Asubjectblock in the request body is overwritten, so a tampered client cannot write to another user’s timeline. - Network context. The IP address, user agent, accept-language and origin are derived from the request, and those server-derived values win over any client hint for rule evaluation. Rule evidence records the difference as a field source.
- Category scope. A credential scoped to
sessioncannot submit apaymentevent; it is rejected with400. - Use budget. A batch spends one use per event, so a 500-event batch cannot slip past a 10-use credential as a single use.
- Origin binding. When
bind_to_originis set, a request whoseOrigindoes not match is refused - including one with noOriginat all.
Batching
What to drop under backpressure
If you have to shed events, shed the cheap ones. These are safe to drop:session.page_view · session.sdk_heartbeat · session.sdk_loaded · session.device_seen · session.bot_signal_observed · bonus.promotion_viewed · affiliate.referral_clicked
These are not - flush them first:
every security, payment, dispute and responsible_gambling event, plus gameplay.bet_placed, gameplay.bet_settled and gameplay.p2p_settlement.
The list endpoints return the same classification per event as is_droppable, so a client can be driven by it rather than by a hardcoded copy.
Header compatibility
The canonical header isX-Monitoring-Token. X-Transaction-Token is accepted as a temporary alias so an app that already holds a transaction credential path can migrate incrementally.
Choosing a lane
Both produce identical event records and run identical rules. Use the server lane whenever no end user is present.
Next
Event ingestion
The envelope, categories, retention and idempotency.
Rules on events
Velocity, ratio, sequence and correlation rules.