FAQ
Getting started
How fast can we integrate?
Follow Quick Start. Most teams complete a first consent in the portal sandbox in under 10 minutes; production hardening usually takes one sprint.
Do we need the SDK?
No — any language can call the HTTP API from the API Reference. The TypeScript SDK is recommended for Node backends (SDK Guide).
Where is the API reference?
The OpenAPI contract is the source of truth: API Reference (also browsable in the docs site).
Authentication and environments
What is the difference between test and live keys?
smm_test_* → test ledger (sandbox). smm_live_* → production ledger. Data is isolated. See Authentication.
Can I use the same key for staging and production?
No — issue separate keys per environment and rotate independently.
What headers are required?
Authorization on secured routes. Idempotency-Key on writes. Details: Authentication.
Consent and policies
Who owns user PII?
Your application owns external_user_id and profile data. Sammati stores consent evidence and policy bindings — Welcome.
Can we record consent server-side without the widget?
Yes — client.consents.grant (and update/revoke) with a published policy_ref. See Consent Integration.
How do policy versions work?
Draft → publish → immutable version number. Consent at occurred_at binds to the active published version. Policies.
Widget
iframe vs custom UI?
The production path is the hosted iframe at /widget/hosted. Custom UI is not supported in-platform today — Widget Guide.
Why is my iframe blank?
Usually a missing allowed origin. Register your parent page origin in the portal. Troubleshooting.
Webhooks
Why did my test-key consent not trigger a webhook?
Expected. The test ledger skips automatic webhook enqueue on consent and widget writes. Use Send Test Event in the portal or client.webhooks.testEndpoint() to validate your receiver. Automatic consent.recorded requires a live API key — Webhooks.
How do I verify webhooks?
Use verifyWebhookSignature from the SDK or @sammati/webhook-utils. Full steps: Webhooks.
How many times will a webhook be delivered?
At-least-once with retries. Your handler must be idempotent. Webhooks.
What events can I subscribe to?
Listed in the API Reference under webhook create — Webhooks.
Proofs and compliance
When is a proof available?
After async processing on the live ledger. You receive proof.ready, then Evidence Link JWT (evidence.link.issued), then timestamp confirmation (proof.anchor_confirmed). The test ledger has limited proof behavior — Sandbox.
How do auditors or a compliance portal verify consent?
- Pull consent metadata via the compliance feed — Consent Integration
- Merkle inclusion against the batch root
- Evidence Link JWT (EdDSA) via JWKS / receipt API
- TSA receipt bound to the Merkle root
Details: Proofs & Anchors · Welcome
What is the difference between Consent Platform and Compliance / Evidence?
Consent Platform is how your apps collect and record consent (SDK, widget, webhooks). Compliance / Evidence is how compliance portals and auditors consume the feed and verify proofs. See Welcome.
SDK and tooling
Which packages should we use?
| Package | Use |
|---|---|
@sammati/server-sdk | Backend API client (npm) |
@sammati/widget-sdk | Browser embed (npm) |
@sammati/webhook-utils | Webhook verification (npm) |
@sammati/cli | Terminal client — available on request |
sammati (Python) | Minimal Python client — available on request |
Where are code examples?
See SDK examples on the docs site, or the examples shipped with @sammati/server-sdk.
How do I install the SDK?
npm install @sammati/server-sdk @sammati/widget-sdk @sammati/webhook-utils
That is the production Node path. CLI and Python are available on request until published — SDK Guide.
Portal and support
What is Integration Center?
In-portal developer home — sandbox, health, and quick links. Sandbox.
How do we go live?
Production Checklist and portal Platform health.
Something is broken — what do we send support?
x-request-id, timestamp, environment (test/live), operation name. Never send raw API keys.
Still stuck?
- Troubleshooting
- Proofs & Anchors
- Contact support with your request ID