Account management is only available with an institutional API key. Doctor-level API keys do not have access to these endpoints.
sk_…) for server-side API calls and a publishable key (pk_…) for the browser embed (see Key types). You can later rotate the secret key.
Creating an account
POST /v1/institutional/accounts requires email and doctorSpecialties. Optionally pass apiKeyConfig.validForDays (1–365) to control how long the minted API key stays valid — omit it to default to 365 days (1 year).
id (or your internalCode) — you can use either to retrieve the account later.
Creating accounts in bulk
POST /v1/institutional/accounts/batch creates several doctor accounts in one call. Send an accounts array. Each item takes the same fields as a single create. The batch holds at most 10 accounts.
The endpoint rejects the whole request with 400 before it creates any account when the batch repeats an email or an internalCode.
200 with a results array. Each entry reports the outcome for one account, in the order you sent them.
Response:
createdCount and failedCount for a quick total. Use status on each entry to find the accounts that failed.
Retrieving an account
Look up an account by itsid (acc_*) or by your own internalCode.
Regenerating an API key
Rotate an account’s API key withPOST /v1/institutional/accounts/{account_id}/api-keys/regenerate, identifying the account by its id (acc_*) or internalCode. Optionally pass validForDays (1–365) to set the new key’s lifetime; omit it to keep the account’s default.