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
- Aggregate: calls per tracking number / source per day, durations, first-time-caller counts, form submissions per form per day.
- Person-level: per-call records (caller number in E.164, caller name/city, tags, lead status, transcription text).
- Never: call recordings or any audio. Audio signal types are schema-rejected at ingest (rule 03, O-1 lock); the adapter never requests the recording URL, and a test asserts the field is absent from every mapper output.
Consent posture
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
- Owner: whether per-call (caller-level) records are ingested for any tenant; the aggregate counts path needs no ruling. Recordings are never on the table.
- Operator: none; no platform credential.
Vendor references
- CallRail API v3 documentation (apidocs.callrail.com): fetched 2026-10-12; source for the token header form, the nine-digit account id after
/a/, the calls endpoints and the E.164 caller field; the page does not give the key-creation menu path.