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.

FieldRequiredNotes
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.

SettingDefaultWhat it does
targetVectorId—The vector this connector ingests into (required)
resourcessessionNotes, protocols, formRequestsWhich record types to sync
teamFormeme for your own caseload, all for the whole practice
consultantIds—Limit to specific consultants
ownerFilteringoffLimit each practitioner to clients they authored notes for
excludeArchivedonSkip archived notes and protocols
dailyRequestBudget2000Cap on API calls per day
autoSync / syncIntervalMinuteson / 1440Recurring 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