Documentation

Troubleshooting

Start with the HTTP status, error.code, endpoint, and trace identifier. Most Northsun (formerly Mnemix) integration failures fall into authentication, phone normalization, request-shape drift, rate limiting, or platform webhook mapping.

SymptomLikely causeFix
401 unauthorizedMissing bearer prefix, wrong key prefix, unknown/revoked key, or secret not loaded in the runtimeVerify the server-side environment and authentication format.
404 not_found on caller lookupThe key is valid, but the tenant has never seen that phone numberUse recall_and_enrich to begin the caller lifecycle, or render an empty state.
400 Invalid phone numberPhone number is not normalizableSend E.164, such as +15551234567; encode + as %2B in URL paths.
422 validation_errorField name, enum, transcript turn, or required value differs from the route schemaCompare the request with the API reference.
429 rate_limitedTenant request bucket is exhaustedRead the rate headers, wait with jitter, and reduce duplicate/concurrent calls.
503 service_unavailable during authA cold key could not be authenticated while the backing dependency was unavailableRetry with capped backoff; do not rotate the key automatically.
Caller returns but enrichment fields are nullEnrichment is partial, unavailable, or did not finish inside the recall deadlineContinue with memory/caller data; do not block the conversation on enrichment.
calls/end returns 204 with no JSONThe interaction is already committed durably by the time 204 returns — see Hangup, and what happens nextDo not call .json(). Retain the trace for troubleshooting.
Repeat calls do not show expected historyThe end-of-call webhook did not fire, or mapped the wrong number/sessionLog the webhook event, confirm the 204, and re-check session_id/phone_number normalization. Escalate if the later recall never changes.
Recall returns history, but not the item you expectedCaller memory comes back in recency order — most recently updated first — not ranked by relevance to the current callDo the selection in your application; do not expect a relevance ranking from this endpoint. See Salience.
MCP client cannot connectWrong URL, missing HTTP transport, or missing authorization headerUse https://mcp.mnemix.ai/mcp and inspect MCP setup.

Platform webhook checklist

  1. Confirm the platform event really reaches your server.
  2. Log the platform call identifier and event type, never the API key.
  3. Normalize the caller number before calling Northsun.
  4. Use the same session_id on recall and write-back.
  5. Map transcript roles to user or agent and provide numeric ts_ms values.
  6. Map unsupported outcomes to other instead of inventing a new enum value.
  7. Deduplicate platform retries before calling calls/end again.

Collect a safe diagnostic receipt

Record:

  • UTC timestamp and deployment version.
  • Northsun endpoint and HTTP method.
  • HTTP status and error.code.
  • X-Trace-Id and rate-limit headers.
  • Platform event type and redacted call identifier.
  • Whether the failure reproduces with a minimal request.

Do not record raw API keys, full transcripts, or unredacted personal data.

Next steps