Skip to content

Practice Better

Copy page

Syncs a Practice Better account so clinicians can ask questions across their own caseload.

Shape: credential (OAuth2 client credentials — no consent screen, so it behaves like a key, not like a redirect). Provider id: practice_better.

| Field | Required | Notes | | --- | --- | --- | | clientId | ✅ | API client id (an identifier, not a secret) | | clientSecret | ✅ | Stored encrypted, never returned |

An invalid secret and a missing API add-on on the Practice Better side produce different messages — the validation error is surfaced verbatim rather than flattened to "invalid credentials", because the fix differs.

| Setting | Default | What it does | | --- | --- | --- | | targetVectorId | — | The vector this connector ingests into (required) | | resources | sessionNotes, protocols, formRequests | Which record types to sync | | teamFor | me | me for your own caseload, all for the whole practice | | consultantIds | — | Limit to specific consultants | | ownerFiltering | off | Limit each practitioner to clients they authored notes for | | excludeArchived | on | Skip archived notes and protocols | | dailyRequestBudget | 2000 | Cap on API calls per day | | autoSync / syncIntervalMinutes | on / 1440 | Recurring sync |

Available resources: sessionNotes, protocols, formRequests, clientRecords, journalEntries, labRequests, medicalHistory, dietLifestyle, measurements.

Terminal window
curl -X POST https://api.divinci.app/api/v1/connectors/practice_better/auth \
-H "Authorization: Bearer $DIVINCI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"credentials": { "clientId": "…", "clientSecret": "…" },
"providerSettings": {
"targetVectorId": "<vectorId>",
"resources": ["sessionNotes", "protocols"],
"teamFor": "me",
"autoSync": true,
"syncIntervalMinutes": 1440
}
}'

Credentials and settings go in one call deliberately: connecting first and configuring second leaves a half-configured connector behind whenever the second call never happens.

Terminal window
divinci connectors status practice_better
divinci connectors settings practice_better --auto-sync on --cadence 1440
divinci connectors sync-status <connectionId>
divinci connectors disconnect practice_better