Troubleshooting
Use this page when something fails during integration. For unresolved issues, contact support with x-request-id, timestamp, and environment (test / live). Never share the raw API key.
Common mistakes
| Mistake | Fix |
|---|---|
Test key with environment: "live" | Match key prefix to SDK environment — Authentication |
| Parsing webhook body before verify | Verify HMAC on raw bytes — Webhooks |
| Missing allowed origin | Register the domain under Allowed origins |
| Draft policy only (not published) | Publish in Policies — Policies |
Expecting consent.recorded after a test-key grant | Test ledger skips automatic webhooks — use Send Test Event |
| Expecting proof on the test ledger | Use a live key — Sandbox |
| Duplicate consent rows | Send Idempotency-Key on writes |
Wrong policy_ref in grant body | Must match a published artifact ref |
Webhook failures
| Symptom | Likely cause | Action |
|---|---|---|
| No deliveries after test-key consent | Expected — test plane skips automatic webhooks | Use Send Test Event or testEndpoint() |
| No deliveries on live key | Endpoint not ACTIVE or not subscribed | Confirm status and event list under Webhooks |
401 on verify | Wrong secret or body mutated | Verify on raw body; use the active secret after rotation |
| Intermittent 5xx | Your server timeout | Return 2xx quickly; process async |
| Stuck after retries | Deliveries exhausted | Fix your endpoint; ask support to replay if needed |
Diagnostics: Company Portal → Webhooks → Diagnostics.
Authentication issues
| Symptom | Likely cause | Action |
|---|---|---|
401 Unauthorized | Missing or invalid Bearer token | Authorization: Bearer smm_* |
401 after key rotate | Old key revoked | Update secret store; create a new key |
| SDK throws on construct | Key prefix mismatch | smm_test_ + environment: "test" |
Policy errors
| Symptom | Likely cause | Action |
|---|---|---|
404 on policy version | Wrong policy_ref or version | client.policies.listVersions |
| Validation error on draft | Schema violation | Compare to Policies |
| Widget shows wrong copy | Unpublished draft | Publish the policy version |
Consent errors
| Symptom | Likely cause | Action |
|---|---|---|
400 validation | Missing field or bad purpose_code | Check ConsentWriteBody in the API Reference |
409 conflict | Idempotency key reused with a different body | New key or same body |
| Status shows REVOKED unexpectedly | Prior revoke for user + purpose | getConsentTimeline |
See Consent Integration.
Proof status
| Symptom | Likely cause | Action |
|---|---|---|
Stuck PENDING | Pipeline still processing | Wait; check Platform health. Contact support with request id if it stays pending |
| No proof on test key | Expected sandbox limitation | Sandbox |
proof.ready not received | Webhook not subscribed | Add proof.ready on the endpoint |
| Verify fails | Wrong batch or leaf | Confirm you are on a live key |
Timestamp / receipt status
| Symptom | Likely cause | Action |
|---|---|---|
No evidence.link.issued | Not subscribed, or JWT not yet issued | Subscribe; poll receipt API if needed |
No proof.anchor_confirmed | Timestamping still in progress | Wait on live ledger; check Platform health |
| TSA verify fails | Wrong receipt or root | Verify against the batch root (API or live verification) |
Widget issues
| Symptom | Likely cause | Action |
|---|---|---|
| Blank iframe | Origin not allowed | Register the domain under Allowed origins |
| Session expired | TTL elapsed | Create a new session |
| postMessage not received | Wrong origin filter | Widget events |
| Submit fails | Invalid session token | getWidgetSession status |
Getting help
- Capture
x-request-idfrom API error responses. - Note environment (test vs live) — never share the raw key.
- Check Integration Center / Platform health in the portal.
- Contact support with request ID and timestamp.