REST API In development
For any platform without a package: send events directly.
Not available yet. These examples show the planned API; package and function names may change before the first release.
Sending events
curl -X POST https://api.nabd.mokinan.com/functions/v1/ingest \
-H "x-nabd-key: nb_pub_…" \
-H "content-type: application/json" \
-d @batch.json{
"batch_id": "6f1c2a9e-3b1d-4c7a-9a51-0d2f6a1b8c44",
"sdk": {"name": "custom", "version": "1.0.0"},
"app": {"name": "My App", "version": "2.4.1",
"platform": "other", "environment": "production"},
"device": {"model": "unknown", "os_version": "unknown"},
"install_id": "0b7e6c1a-8f0e-4a53-b0f5-2a0c9f6d1e22",
"events": [
{"type": "rage_tap", "screen": "invoice_create",
"at": "2026-11-29T10:15:02Z",
"session_id": "b3c1f7d2-5a44-4a0b-8d3e-7c9a1f2e6b10",
"meta": {"taps": 4, "window_ms": 820}}
]
}Event types
session_start screen_view task_completed rage_tap dead_tap
error error_shown suspected_crash slow_loadplatform: android, ios, web or other. environment: production, staging or development.
Rules for screen, user_ref and meta are in core concepts.
Optional with error, error_shown and suspected_crash: meta.trail, up to 10 steps, oldest first. Each step has t (seconds before the error) and screen or tap, plus optional n for repeats.
[{"t": 8, "screen": "invoices"}, {"t": 2, "tap": "button", "n": 2}]
// tap: button link input toggle select tab menu_item list_item image otherLimits and responses
At most 100 events and 256 KB per batch. Resend the same batch_id after a failure; it will not be counted twice.
| Response | Meaning | What to do |
|---|---|---|
| 202 | Accepted, or a duplicate batch | Delete it |
| 400 / 413 | Invalid or too large | Do not resend this batch |
| 401 | Wrong or revoked key | Stop sending |
| 402 | Monthly plan limit reached | Wait hours |
| 403 | App paused, app limit, or a web domain not allowed (origin_not_allowed) | Check the dashboard |
| 429 | Too many requests | Wait as Retry-After says |
Deleting a user’s data
curl -X POST https://api.nabd.mokinan.com/functions/v1/privacy \
-H "x-nabd-key: nb_sec_…" \
-H "content-type: application/json" \
-d '{"app": "My App", "user_ref": "<user_ref>"}'With the public key, deletion is available by install_id only.