Requires clients:read and clients:write. Name is trimmed without splitting or fabricating a surname. Contact duplicates are allowed on explicit creation; matches never auto-link. A generic external reference is optional for creation and required for explicit linking, scoped to current business and account across its API keys. It is separate from clinic externalId and editable source fields. An existing stale/private/deleted mapped target refuses rather than recreates. Exact retries return the original minimal outcome after fresh authorization. Applicable configured client-create webhooks are refused before writes, as is an account that holds a membership of a team role that no longer exists (422). Answers 503 until client matching is switched on for the environment; existing create routes are unchanged.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
201New client and details created atomically with audit, optional reference and retry command.
400Invalid payload or missing idempotency key.
403Current account scope or creation limit refused.
404Client, details or mapped target not currently accessible.
409Idempotency payload conflict or external reference rebind refused.
422The practice has a webhook on client creation, or the key's account holds a membership of a team role that no longer exists (unsupported_configuration).
503Disabled or repository unavailable; no partial creation.
