Design note — CallRail connector (callrail)

Target registry item: C7 (catalog row only — available: false, wave 4, demand-driven; playbook §4.3 "Call tracking", OB-GAP-3). Status: design note only — NOT built. The catalog row enumerates the two fields below so the surface can say "not yet available"; posting any payload is refused 409 provider_not_available. Built only when a tenant declares demand (docs/OPEN_ITEMS.md row). CDoD points 1–14 tracked in docs/reports/ONBOARDING_CONNECTORS_STATE.md.

Auth

Read-only, merchant-owned (D2/D11). CallRail API v3 authenticates with an API key scoped to a single CallRail user and sent in the Authorization header as a token (vendor docs, fetched 2026-10-12); the key returns only what that user can see, so the customer creates it for a user with reporting access. The account id is the nine-digit number after /a/ in the CallRail dashboard URL and appears in every API path.

Vault-only per (tenant, provider); no environment fallback; vault error 503; absence merchant_credentials_not_configured.

Fields (catalog row)

key label secret required pattern help
api_key API key yes yes — Created in your CallRail account settings under API keys (the exact menu label follows CallRail's current help), for a user with reporting access. Never echoed; masked hint only.
account_id Account ID no yes — The nine-digit number after /a/ in your CallRail dashboard URL.

Scopes

The API has no scopes; the key inherits its user's role. The adapter is read-only by construction and calls the calls, trackers and summary endpoints only (build-time test).

Data topics

Per topic: daily counts per line are the de-personalised remainder and flow on the aggregate path. Per-call records are person-level and flow only under a consent-registry grant with a per-subject basis (telephone data is also subject to call-recording consent law per jurisdiction — a tenant declaration, never inferred); without a basis the mapper keeps the count and drops the record (fail-closed evaluate_consent). Transcriptions are free text and pass the deny-list at ingest. Posture test pins all three directions (aggregate kept, record dropped without basis, recording never present).

Mapper target

System-of-record adapter (C2 door) → MAPPERS["callrail"] → ingest_gate → mizoki_unified_data. No new store; no writeback.

Failure modes → test-connection verdicts

Failure Verdict / fix
401 token_invalid → regenerate the API key.
403 on the account permission_denied → the key's user has no access to account <id>.
Account id not found account_not_found → copy the nine digits after /a/ in the dashboard URL.
Vault read error 503 fail-closed.

Flag

CALLRAIL_SYNC default OFF; available: false until CDoD point 14.

Owner / operator gates

Vendor references

← All docsView source on GitHub →