Create patient
Creates a patient in your organization.
POST
api:manage-patients
Olira assigns a stable patient id — use it in all subsequent calls. Shell patients are supported if you send at least one anchor field (external id, email, phone, name, or DOB).
Parameters
Given name; omit for shell patients.
Family name; omit for shell patients.
Contact email.
Contact phone.
ISO 8601 datetime string.
Stored sex/gender field.
IANA timezone (e.g. America/New_York).
Links to your systems (Epic MRN, FHIR id, etc.).
Arbitrary JSON-safe metadata.
Returns
Patient — Created patient including Olira-assigned id.
Olira patient id.
Given name.
Family name.
Sex/gender.
IANA timezone.
Patient lifecycle status from API.
Email.
Phone.
DOB ISO string.
Creation timestamp.
External ids.
Metadata blob.
Raises
| Exception | When |
|---|---|
AuthError | HTTP 401 or 403 — invalid API key or insufficient OAuth scope for this endpoint. |
ValidationError | HTTP 400, 404, or 422 — malformed JSON, unknown patient, or validation failure (message includes response excerpt). |
ServerError | HTTP 409 (e.g. conflicting external identifier) or repeated 5xx after retries; includes status_code when applicable. |
RateLimitError | HTTP 429 — rate limited; check retry_after (seconds). |
NetworkError | Connection timeout, DNS failure, or read error after retries. |

