Beta. The PracticeHub API is in Beta: the contract is additive within a version, but details may still be refined, and any change that affects an existing integration is announced in the changelog first.
API key from Developers → API Keys, sent as Authorization: Bearer .
Headers
Idempotency-Key
string
Any unique string (≤255 chars). A retry with the same key within 24 hours replays the original response (Idempotent-Replayed: true) instead of creating a second record.
Maximum string length: 255
Body
application/json
first_name
string
required
Patient's first name, ≤ 255 chars. Required on create — the same minimum every patient form in PracticeHub enforces.
Maximum string length: 255
last_name
string
required
Patient's last name, ≤ 255 chars. Required on create.
Maximum string length: 255
preferred_name
string | null
The name the patient goes by, alongside the legal name. Optional, ≤ 255 chars.
Maximum string length: 255
dob
string<date> | null
Date of birth, YYYY-MM-DD.
email
string<email> | null
Email address, validated as an email, ≤ 255 chars. Optional and not unique — treat a match as a dedupe candidate, never an identifier.
Maximum string length: 255
sex
enum<string> | null
One of male, female or other on read — words on the API, never a stored code — or null when not stated. On write prefer_not_to_say is accepted too; PracticeHub keeps no separate mark for it, so it reads back as null and cannot be filtered on.
Available options:
male,
female,
other,
prefer_not_to_say
locale
enum<string> | null
Preferred language override: one of the language codes PracticeHub supports (e.g. en, de, es, fr, nl — the same list as the language select on the patient form). Copied from the account on create when not sent.
Available options:
en,
ca,
dk,
de,
es,
fr,
is,
it,
hu,
my,
nl,
no,
po,
fi,
se,
el,
he
note
string | null
Free text — the patient file's general note.
custom_reference
string | null
Your own reference string for the record, ≤ 255 chars — a plain field on the patient, distinct from metadata.
Maximum string length: 255
blocked
boolean
The patient file's Block Online Booking toggle — records that the patient shouldn't be offered online self-booking. A flag only: POST /appointments does not check it.
default_location_id
integer | null
The patient's home location. Must be one of the account's own locations (GET /locations) — 422 location_not_found otherwise.
Required range: x >= 1
referral_source_id
integer | null
Required when referral_source_type is referral_source. Id of what referred the patient — an active source from GET /referral_sources, or another live patient, per referral_source_type. Travels with the type: send both or neither.
Required range: x >= 1
referral_source_type
enum<string> | null
Required when referral_source_id is provided. referral_source (a source from GET /referral_sources, must be active) or patient (another patient on the account — never this one). Requires referral_source_id alongside.
Available options:
referral_source,
patient
communication_preferences
object
Show child attributes
numbers
object[] | null
Phone numbers, embedded on every read and written nested here — never via /numbers. Entries carry id, number, country_code, iso2, type (mobile/home/work/other), intl_number. PATCH reconciles by id.
Show child attributes
address
object | null
The patient's single address — line_1, line_2, city, state, postal_code, country — embedded on read (null when none) and written nested here, never via /addresses. PATCH changes only the keys you send.
Show child attributes
metadata
object
Integrator-owned key/value metadata (max 50 keys). Values are strings (≤500 chars), numbers or booleans and read back with the type they were written with. On write, a null value removes the key. Filter with metadata[key]=op:value; number operands compare numerically.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"PracticeHub API","colors":{"primary":"#0A0A0A","light":"#FAFAFA","dark":"#0A0A0A"},"logo":{"light":"https://mintcdn.com/practicehub/MpQUZFwSGC0fLbvu/logo/light.svg?fit=max\u0026auto=format\u0026n=MpQUZFwSGC0fLbvu\u0026q=85\u0026s=78b2f118e53c15b719c31b4d00d2366b","dark":"https://mintcdn.com/practicehub/MpQUZFwSGC0fLbvu/logo/dark.svg?fit=max\u0026auto=format\u0026n=MpQUZFwSGC0fLbvu\u0026q=85\u0026s=cb3f16c686d7f7f75fd5dea17a7e04a3","href":"https://practicehub.io"},"favicon":"https://mintcdn.com/practicehub/MpQUZFwSGC0fLbvu/favicon.png?fit=max\u0026auto=format\u0026n=MpQUZFwSGC0fLbvu\u0026q=85\u0026s=d31ed1c4146bc58e148f34fda98fb4f9","api":{"openapi":["openapi.json"],"playground":{"display":"simple"},"url":"full","mdx":{"auth":{"method":"bearer"},"server":"https://{clinic}.{region}.practicehub.io/v3/api"}},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"mailto:help@practicehub.io","label":"Support"}],"primary":{"type":"button","label":"PracticeHub","href":"https://practicehub.io"}},"footer":{"socials":{"website":"https://practicehub.io"}},"seo":{"indexing":"all"},"icons":{"library":"lucide"},"banner":{"content":"**Beta.** The PracticeHub API is in Beta: the contract is additive within a version, but details may still be refined, and any change that affects an existing integration is announced in the [changelog](/changelog) first.","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"practicehub","hasAudioNarration":false,"actualSubdomain":"practicehub","customDomains":["build.practicehub.io"],"gitSource":{"type":"github","owner":"odin-platform","repo":"api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{},"buildId":"6ab300da36ba2601a207fc59","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":97},{"language":"default","tag":"Patients","count":35},{"language":"default","tag":"Guides","count":32},{"language":"default","tag":"Billing","count":30},{"language":"default","tag":"Getting started","count":14},{"language":"default","tag":"MCP Server","count":14},{"language":"default","tag":"Scheduling","count":14},{"language":"default","tag":"Admin \u0026 reference","count":14},{"language":"default","tag":"Working with the API","count":8},{"language":"default","tag":"Resource guides","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/patients/create-patients","slug":"/api-reference/patients/create-patients","pageMetadata":{"title":"Create patients","description":null,"deprecated":null,"version":null,"openapi":"/openapi.json post /patients","href":"/api-reference/patients/create-patients","autogeneratedByOpenApi":true},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create patients","description":null,"deprecated":null,"version":null,"openapi":"/openapi.json post /patients","href":"/api-reference/patients/create-patients","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"create_patients","tags":["Patients"],"summary":"Create patients","parameters":["2b84899d-d072-4de4-aa9d-5256c1e7abdd"],"requestBody":"4462be17-6898-4c46-9920-100377e97474","responses":{"201":"cbe79a0b-b68c-4e47-8db3-8a6ec99014d9","401":"8d10d27c-7297-4f6b-87f2-d8b59eb3928b","403":"b161af9a-acec-4ce9-a1c6-f2539a69eba5","409":"8edc6b7d-73fb-45a5-8052-afca47d41789","422":"5a11d5b9-76f3-4eeb-879b-fe4d8ec393ee"},"method":"post","type":"path","servers":["ac3ece27-d0f4-4c91-9451-abf026054118"],"security":["3e149afc-4020-4703-9136-cc2e72a9bd5f"],"path":"/patients","baseUrlOptions":["https://{clinic}.{region}.practicehub.io/v3/api"],"title":"Create patients","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","urlDisplay":"full"},"dependencies":{"parameters":{"2b84899d-d072-4de4-aa9d-5256c1e7abdd":{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string (≤255 chars). A retry with the same key within 24 hours replays the original response (Idempotent-Replayed: true) instead of creating a second record.","schema":{"type":"string","maxLength":255,"isRequired":false,"description":"Any unique string (≤255 chars). A retry with the same key within 24 hours replays the original response (Idempotent-Replayed: true) instead of creating a second record.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"first_name":{"type":"string","maxLength":255,"description":"Patient's first name, ≤ 255 chars. Required on create — the same minimum every patient form in PracticeHub enforces.","isRequired":true,"uniqueKey":"first_name","typeLabel":"string"},"last_name":{"type":"string","maxLength":255,"description":"Patient's last name, ≤ 255 chars. Required on create.","isRequired":true,"uniqueKey":"last_name","typeLabel":"string"},"preferred_name":{"oneOf":[{"type":"string","maxLength":255,"description":"The name the patient goes by, alongside the legal name. Optional, ≤ 255 chars.","uniqueKey":"preferred_name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"description":"The name the patient goes by, alongside the legal name. Optional, ≤ 255 chars.","uniqueKey":"preferred_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"preferred_name","typeLabel":"string | null"},"dob":{"oneOf":[{"type":"string","format":"date","description":"Date of birth, YYYY-MM-DD.","uniqueKey":"dob.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Date of birth, YYYY-MM-DD.","uniqueKey":"dob.oneOf.1","typeLabel":"null"}],"uniqueKey":"dob","typeLabel":"string\u003cdate> | null"},"email":{"oneOf":[{"type":"string","format":"email","maxLength":255,"description":"Email address, validated as an email, ≤ 255 chars. Optional and not unique — treat a match as a dedupe candidate, never an identifier.","uniqueKey":"email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","maxLength":255,"description":"Email address, validated as an email, ≤ 255 chars. Optional and not unique — treat a match as a dedupe candidate, never an identifier.","uniqueKey":"email.oneOf.1","typeLabel":"null"}],"uniqueKey":"email","typeLabel":"string\u003cemail> | null"},"sex":{"oneOf":[{"type":"string","enum":["male","female","other","prefer_not_to_say"],"description":"One of male, female or other on read — words on the API, never a stored code — or null when not stated. On write prefer_not_to_say is accepted too; PracticeHub keeps no separate mark for it, so it reads back as null and cannot be filtered on.","uniqueKey":"sex.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["male","female","other","prefer_not_to_say"],"description":"One of male, female or other on read — words on the API, never a stored code — or null when not stated. On write prefer_not_to_say is accepted too; PracticeHub keeps no separate mark for it, so it reads back as null and cannot be filtered on.","uniqueKey":"sex.oneOf.1","typeLabel":"null"}],"uniqueKey":"sex","typeLabel":"enum\u003cstring> | null"},"locale":{"oneOf":[{"type":"string","enum":["en","ca","dk","de","es","fr","is","it","hu","my","nl","no","po","fi","se","el","he"],"description":"Preferred language override: one of the language codes PracticeHub supports (e.g. en, de, es, fr, nl — the same list as the language select on the patient form). Copied from the account on create when not sent.","uniqueKey":"locale.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["en","ca","dk","de","es","fr","is","it","hu","my","nl","no","po","fi","se","el","he"],"description":"Preferred language override: one of the language codes PracticeHub supports (e.g. en, de, es, fr, nl — the same list as the language select on the patient form). Copied from the account on create when not sent.","uniqueKey":"locale.oneOf.1","typeLabel":"null"}],"uniqueKey":"locale","typeLabel":"enum\u003cstring> | null"},"note":{"oneOf":[{"type":"string","description":"Free text — the patient file's general note.","uniqueKey":"note.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free text — the patient file's general note.","uniqueKey":"note.oneOf.1","typeLabel":"null"}],"uniqueKey":"note","typeLabel":"string | null"},"custom_reference":{"oneOf":[{"type":"string","maxLength":255,"description":"Your own reference string for the record, ≤ 255 chars — a plain field on the patient, distinct from metadata.","uniqueKey":"custom_reference.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"description":"Your own reference string for the record, ≤ 255 chars — a plain field on the patient, distinct from metadata.","uniqueKey":"custom_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"custom_reference","typeLabel":"string | null"},"blocked":{"type":"boolean","description":"The patient file's Block Online Booking toggle — records that the patient shouldn't be offered online self-booking. A flag only: POST /appointments does not check it.","uniqueKey":"blocked","typeLabel":"boolean"},"default_location_id":{"oneOf":[{"type":"integer","minimum":1,"description":"The patient's home location. Must be one of the account's own locations (GET /locations) — 422 location_not_found otherwise.","uniqueKey":"default_location_id.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"The patient's home location. Must be one of the account's own locations (GET /locations) — 422 location_not_found otherwise.","uniqueKey":"default_location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"default_location_id","typeLabel":"integer | null"},"referral_source_id":{"oneOf":[{"type":"integer","minimum":1,"description":"Required when referral_source_type is referral_source. Id of what referred the patient — an active source from GET /referral_sources, or another live patient, per referral_source_type. Travels with the type: send both or neither.","x-required-when":"when referral_source_type is referral_source","uniqueKey":"referral_source_id.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Required when referral_source_type is referral_source. Id of what referred the patient — an active source from GET /referral_sources, or another live patient, per referral_source_type. Travels with the type: send both or neither.","x-required-when":"when referral_source_type is referral_source","uniqueKey":"referral_source_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"referral_source_id","typeLabel":"integer | null"},"referral_source_type":{"oneOf":[{"type":"string","enum":["referral_source","patient"],"description":"Required when referral_source_id is provided. referral_source (a source from GET /referral_sources, must be active) or patient (another patient on the account — never this one). Requires referral_source_id alongside.","x-required-when":"when referral_source_id is provided","uniqueKey":"referral_source_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["referral_source","patient"],"description":"Required when referral_source_id is provided. referral_source (a source from GET /referral_sources, must be active) or patient (another patient on the account — never this one). Requires referral_source_id alongside.","x-required-when":"when referral_source_id is provided","uniqueKey":"referral_source_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"referral_source_type","typeLabel":"enum\u003cstring> | null"},"communication_preferences":{"type":"object","properties":{"marketing":{"type":"object","properties":{"push_notification":{"type":"boolean","description":"Whether the patient receives marketing push notifications in the patient app.","uniqueKey":"communication_preferences.marketing.push_notification","typeLabel":"boolean"}},"uniqueKey":"communication_preferences.marketing","typeLabel":"object"},"transactional":{"type":"object","properties":{"push_notification":{"type":"boolean","description":"Whether the patient receives transactional push notifications (reminders, confirmations) in the patient app.","uniqueKey":"communication_preferences.transactional.push_notification","typeLabel":"boolean"}},"uniqueKey":"communication_preferences.transactional","typeLabel":"object"}},"uniqueKey":"communication_preferences","typeLabel":"object"},"numbers":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"number":{"type":"string","maxLength":255,"isRequired":true,"uniqueKey":"numbers.oneOf.0.items.[INDEX].number","typeLabel":"string"},"country_code":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"numbers.oneOf.0.items.[INDEX].country_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"numbers.oneOf.0.items.[INDEX].country_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"numbers.oneOf.0.items.[INDEX].country_code","typeLabel":"string | null"},"iso2":{"oneOf":[{"type":"string","uniqueKey":"numbers.oneOf.0.items.[INDEX].iso2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"numbers.oneOf.0.items.[INDEX].iso2.oneOf.1","typeLabel":"null"}],"uniqueKey":"numbers.oneOf.0.items.[INDEX].iso2","typeLabel":"string | null"},"type":{"oneOf":[{"type":"string","maxLength":255,"x-required-when":"when numbers.*.number is provided","description":"Required when numbers.*.number is provided.","uniqueKey":"numbers.oneOf.0.items.[INDEX].type.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"x-required-when":"when numbers.*.number is provided","description":"Required when numbers.*.number is provided.","uniqueKey":"numbers.oneOf.0.items.[INDEX].type.oneOf.1","typeLabel":"null"}],"uniqueKey":"numbers.oneOf.0.items.[INDEX].type","typeLabel":"string | null"}},"required":["number"],"uniqueKey":"numbers.oneOf.0.items.[INDEX]","typeLabel":"object"},"description":"Phone numbers, embedded on every read and written nested here — never via /numbers. Entries carry id, number, country_code, iso2, type (mobile/home/work/other), intl_number. PATCH reconciles by id.","uniqueKey":"numbers.oneOf.0","typeLabel":"object[]"},{"type":"null","items":{"type":"object","properties":{"number":{"type":"string","maxLength":255},"country_code":{"oneOf":[{"type":"string","maxLength":255},{"type":"null","maxLength":255}]},"iso2":{"oneOf":[{"type":"string"},{"type":"null"}]},"type":{"oneOf":[{"type":"string","maxLength":255,"x-required-when":"when numbers.*.number is provided","description":"Required when numbers.*.number is provided."},{"type":"null","maxLength":255,"x-required-when":"when numbers.*.number is provided","description":"Required when numbers.*.number is provided."}]}},"required":["number"]},"description":"Phone numbers, embedded on every read and written nested here — never via /numbers. Entries carry id, number, country_code, iso2, type (mobile/home/work/other), intl_number. PATCH reconciles by id.","uniqueKey":"numbers.oneOf.1","typeLabel":"null"}],"uniqueKey":"numbers","typeLabel":"object[] | null"},"address":{"oneOf":[{"type":"object","description":"The patient's single address — line_1, line_2, city, state, postal_code, country — embedded on read (null when none) and written nested here, never via /addresses. PATCH changes only the keys you send.","properties":{"line_1":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"address.oneOf.0.line_1.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"address.oneOf.0.line_1.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.line_1","typeLabel":"string | null"},"line_2":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.line_2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"address.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"address.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.city","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.state","typeLabel":"string | null"},"postal_code":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"address.oneOf.0.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"address.oneOf.0.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.postal_code","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","maxLength":255,"uniqueKey":"address.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"uniqueKey":"address.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"address.oneOf.0.country","typeLabel":"string | null"}},"uniqueKey":"address.oneOf.0","typeLabel":"object"},{"type":"null","description":"The patient's single address — line_1, line_2, city, state, postal_code, country — embedded on read (null when none) and written nested here, never via /addresses. PATCH changes only the keys you send.","properties":{"line_1":{"oneOf":[{"type":"string","maxLength":255},{"type":"null","maxLength":255}]},"line_2":{"oneOf":[{"type":"string","maxLength":255},{"type":"null","maxLength":255}]},"city":{"oneOf":[{"type":"string","maxLength":255},{"type":"null","maxLength":255}]},"state":{"oneOf":[{"type":"string","maxLength":255},{"type":"null","maxLength":255}]},"postal_code":{"oneOf":[{"type":"string","maxLength":255},{"type":"null","maxLength":255}]},"country":{"oneOf":[{"type":"string","maxLength":255},{"type":"null","maxLength":255}]}},"uniqueKey":"address.oneOf.1","typeLabel":"null"}],"uniqueKey":"address","typeLabel":"object | null"},"metadata":{"type":"object","description":"Integrator-owned key/value metadata (max 50 keys). Values are strings (≤500 chars), numbers or booleans and read back with the type they were written with. On write, a null value removes the key. Filter with metadata[key]=op:value; number operands compare numerically.","additionalProperties":{"oneOf":[{"type":"string","maxLength":500,"uniqueKey":"metadata.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"metadata.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"metadata.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"metadata.additionalProperties.oneOf.3","typeLabel":"null"}],"uniqueKey":"metadata.additionalProperties","typeLabel":"string | number | boolean | null"},"uniqueKey":"metadata","typeLabel":"object"}},"required":["first_name","last_name"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"first_name":"\u003cstring>","last_name":"\u003cstring>","preferred_name":"\u003cstring>","dob":"2023-12-25","email":"jsmith@example.com","note":"\u003cstring>","custom_reference":"\u003cstring>","blocked":true,"default_location_id":2,"referral_source_id":2,"communication_preferences":{"marketing":{"push_notification":true},"transactional":{"push_notification":true}},"numbers":[{"number":"\u003cstring>","country_code":"\u003cstring>","iso2":"\u003cstring>","type":"\u003cstring>"}],"address":{"line_1":"\u003cstring>","line_2":"\u003cstring>","city":"\u003cstring>","state":"\u003cstring>","postal_code":"\u003cstring>","country":"\u003cstring>"},"metadata":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"cbe79a0b-b68c-4e47-8db3-8a6ec99014d9":{"description":"The resource","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"integer","description":"Server-assigned patient id. Practitioners, appointments, invoices and files all point back to it as patient_id. Server-managed.","uniqueKey":"data.id","typeLabel":"integer"},"imported_id":{"oneOf":[{"type":"string","maxLength":255,"description":"Legacy-system id carried over by a PracticeHub-run import. Read-only — for your own identifiers use metadata.legacy_id instead.","uniqueKey":"data.imported_id.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"description":"Legacy-system id carried over by a PracticeHub-run import. Read-only — for your own identifiers use metadata.legacy_id instead.","uniqueKey":"data.imported_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.imported_id","typeLabel":"string | null"},"custom_reference":{"oneOf":[{"type":"string","maxLength":255,"description":"Your own reference string for the record, ≤ 255 chars — a plain field on the patient, distinct from metadata.","uniqueKey":"data.custom_reference.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"description":"Your own reference string for the record, ≤ 255 chars — a plain field on the patient, distinct from metadata.","uniqueKey":"data.custom_reference.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.custom_reference","typeLabel":"string | null"},"first_name":{"type":"string","maxLength":255,"description":"Patient's first name, ≤ 255 chars. Required on create — the same minimum every patient form in PracticeHub enforces.","uniqueKey":"data.first_name","typeLabel":"string"},"last_name":{"type":"string","maxLength":255,"description":"Patient's last name, ≤ 255 chars. Required on create.","uniqueKey":"data.last_name","typeLabel":"string"},"preferred_name":{"oneOf":[{"type":"string","maxLength":255,"description":"The name the patient goes by, alongside the legal name. Optional, ≤ 255 chars.","uniqueKey":"data.preferred_name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"description":"The name the patient goes by, alongside the legal name. Optional, ≤ 255 chars.","uniqueKey":"data.preferred_name.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.preferred_name","typeLabel":"string | null"},"dob":{"oneOf":[{"type":"string","format":"date","description":"Date of birth, YYYY-MM-DD.","uniqueKey":"data.dob.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Date of birth, YYYY-MM-DD.","uniqueKey":"data.dob.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.dob","typeLabel":"string\u003cdate> | null"},"email":{"oneOf":[{"type":"string","format":"email","maxLength":255,"description":"Email address, validated as an email, ≤ 255 chars. Optional and not unique — treat a match as a dedupe candidate, never an identifier.","uniqueKey":"data.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","maxLength":255,"description":"Email address, validated as an email, ≤ 255 chars. Optional and not unique — treat a match as a dedupe candidate, never an identifier.","uniqueKey":"data.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.email","typeLabel":"string\u003cemail> | null"},"sex":{"oneOf":[{"type":"string","enum":["male","female","other","prefer_not_to_say"],"description":"One of male, female or other on read — words on the API, never a stored code — or null when not stated. On write prefer_not_to_say is accepted too; PracticeHub keeps no separate mark for it, so it reads back as null and cannot be filtered on.","uniqueKey":"data.sex.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["male","female","other","prefer_not_to_say"],"description":"One of male, female or other on read — words on the API, never a stored code — or null when not stated. On write prefer_not_to_say is accepted too; PracticeHub keeps no separate mark for it, so it reads back as null and cannot be filtered on.","uniqueKey":"data.sex.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.sex","typeLabel":"enum\u003cstring> | null"},"balance":{"oneOf":[{"type":"string","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"45.00","description":"Total outstanding on the account, computed by PracticeHub's billing service from invoices, payments and allocations. Signed: positive is debt, negative is credit. Read-only.","uniqueKey":"data.balance.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"45.00","description":"Total outstanding on the account, computed by PracticeHub's billing service from invoices, payments and allocations. Signed: positive is debt, negative is credit. Read-only.","uniqueKey":"data.balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.balance","typeLabel":"string | null"},"private_balance":{"oneOf":[{"type":"string","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"45.00","description":"The privately-owed share of balance — what the patient themself owes. Computed; read-only.","uniqueKey":"data.private_balance.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"45.00","description":"The privately-owed share of balance — what the patient themself owes. Computed; read-only.","uniqueKey":"data.private_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.private_balance","typeLabel":"string | null"},"third_party_balance":{"oneOf":[{"type":"string","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"45.00","description":"The share of balance owed by insurers and other third parties. Computed; read-only.","uniqueKey":"data.third_party_balance.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^-?\\d+(\\.\\d{1,2})?$","example":"45.00","description":"The share of balance owed by insurers and other third parties. Computed; read-only.","uniqueKey":"data.third_party_balance.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.third_party_balance","typeLabel":"string | null"},"updated_at":{"type":"string","description":"When the record last changed, UTC, YYYY-MM-DDTHH:MM:SSZ. Server-managed — use it as an incremental-sync cursor.","uniqueKey":"data.updated_at","typeLabel":"string"},"created_at":{"type":"string","description":"When the record was created, UTC, YYYY-MM-DDTHH:MM:SSZ. Server-managed.","uniqueKey":"data.created_at","typeLabel":"string"},"communication_status":{"oneOf":[{"type":"integer","description":"Contact standing set from the patient file: 1 normal contact, 2 marketing only, 3 do not contact. Read-only through the API.","uniqueKey":"data.communication_status.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Contact standing set from the patient file: 1 normal contact, 2 marketing only, 3 do not contact. Read-only through the API.","uniqueKey":"data.communication_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.communication_status","typeLabel":"integer | null"},"patient_status":{"oneOf":[{"type":"string","maxLength":255,"description":"Lifecycle state of the record — active, archived or deceased. Managed from the patient file (and by DELETE); not writable directly.","uniqueKey":"data.patient_status.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":255,"description":"Lifecycle state of the record — active, archived or deceased. Managed from the patient file (and by DELETE); not writable directly.","uniqueKey":"data.patient_status.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.patient_status","typeLabel":"string | null"},"locale":{"oneOf":[{"type":"string","enum":["en","ca","dk","de","es","fr","is","it","hu","my","nl","no","po","fi","se","el","he"],"description":"Preferred language override: one of the language codes PracticeHub supports (e.g. en, de, es, fr, nl — the same list as the language select on the patient form). Copied from the account on create when not sent.","uniqueKey":"data.locale.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["en","ca","dk","de","es","fr","is","it","hu","my","nl","no","po","fi","se","el","he"],"description":"Preferred language override: one of the language codes PracticeHub supports (e.g. en, de, es, fr, nl — the same list as the language select on the patient form). Copied from the account on create when not sent.","uniqueKey":"data.locale.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.locale","typeLabel":"enum\u003cstring> | null"},"referral_source_id":{"oneOf":[{"type":"integer","minimum":1,"description":"Id of what referred the patient — an active source from GET /referral_sources, or another live patient, per referral_source_type. Travels with the type: send both or neither.","uniqueKey":"data.referral_source_id.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Id of what referred the patient — an active source from GET /referral_sources, or another live patient, per referral_source_type. Travels with the type: send both or neither.","uniqueKey":"data.referral_source_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.referral_source_id","typeLabel":"integer | null"},"referral_source_type":{"oneOf":[{"type":"string","enum":["referral_source","patient"],"description":"referral_source (a source from GET /referral_sources, must be active) or patient (another patient on the account — never this one). Requires referral_source_id alongside.","uniqueKey":"data.referral_source_type.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["referral_source","patient"],"description":"referral_source (a source from GET /referral_sources, must be active) or patient (another patient on the account — never this one). Requires referral_source_id alongside.","uniqueKey":"data.referral_source_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.referral_source_type","typeLabel":"enum\u003cstring> | null"},"note":{"oneOf":[{"type":"string","description":"Free text — the patient file's general note.","uniqueKey":"data.note.oneOf.0","typeLabel":"string"},{"type":"null","description":"Free text — the patient file's general note.","uniqueKey":"data.note.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.note","typeLabel":"string | null"},"default_location_id":{"oneOf":[{"type":"integer","minimum":1,"description":"The patient's home location. Must be one of the account's own locations (GET /locations) — 422 location_not_found otherwise.","uniqueKey":"data.default_location_id.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"The patient's home location. Must be one of the account's own locations (GET /locations) — 422 location_not_found otherwise.","uniqueKey":"data.default_location_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.default_location_id","typeLabel":"integer | null"},"app_signup":{"oneOf":[{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","example":"2026-09-09T10:30:00Z","description":"When the patient signed up to the patient app, YYYY-MM-DDTHH:MM:SSZ. Server-managed, UTC. UTC, YYYY-MM-DDTHH:MM:SSZ.","uniqueKey":"data.app_signup.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","example":"2026-09-09T10:30:00Z","description":"When the patient signed up to the patient app, YYYY-MM-DDTHH:MM:SSZ. Server-managed, UTC. UTC, YYYY-MM-DDTHH:MM:SSZ.","uniqueKey":"data.app_signup.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.app_signup","typeLabel":"string\u003cdate-time> | null"},"app_last_accessed":{"oneOf":[{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","example":"2026-09-09T10:30:00Z","description":"When the patient last used the patient app. Server-managed, UTC. UTC, YYYY-MM-DDTHH:MM:SSZ.","uniqueKey":"data.app_last_accessed.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$","example":"2026-09-09T10:30:00Z","description":"When the patient last used the patient app. Server-managed, UTC. UTC, YYYY-MM-DDTHH:MM:SSZ.","uniqueKey":"data.app_last_accessed.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.app_last_accessed","typeLabel":"string\u003cdate-time> | null"},"blocked":{"oneOf":[{"type":"boolean","description":"The patient file's Block Online Booking toggle — records that the patient shouldn't be offered online self-booking. A flag only: POST /appointments does not check it.","uniqueKey":"data.blocked.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"The patient file's Block Online Booking toggle — records that the patient shouldn't be offered online self-booking. A flag only: POST /appointments does not check it.","uniqueKey":"data.blocked.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.blocked","typeLabel":"boolean | null"},"communication_preferences":{"type":"object","properties":{"transactional":{"type":"object","properties":{"push_notification":{"oneOf":[{"type":"boolean","description":"Whether the patient receives transactional push notifications (reminders, confirmations) in the patient app.","uniqueKey":"data.communication_preferences.transactional.push_notification.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the patient receives transactional push notifications (reminders, confirmations) in the patient app.","uniqueKey":"data.communication_preferences.transactional.push_notification.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.communication_preferences.transactional.push_notification","typeLabel":"boolean | null"}},"uniqueKey":"data.communication_preferences.transactional","typeLabel":"object"},"marketing":{"type":"object","properties":{"push_notification":{"oneOf":[{"type":"boolean","description":"Whether the patient receives marketing push notifications in the patient app.","uniqueKey":"data.communication_preferences.marketing.push_notification.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the patient receives marketing push notifications in the patient app.","uniqueKey":"data.communication_preferences.marketing.push_notification.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.communication_preferences.marketing.push_notification","typeLabel":"boolean | null"}},"uniqueKey":"data.communication_preferences.marketing","typeLabel":"object"}},"uniqueKey":"data.communication_preferences","typeLabel":"object"},"numbers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","uniqueKey":"data.numbers.items.[INDEX].id","typeLabel":"integer"},"number":{"type":"string","uniqueKey":"data.numbers.items.[INDEX].number","typeLabel":"string"},"country_code":{"oneOf":[{"type":"string","example":"44","uniqueKey":"data.numbers.items.[INDEX].country_code.oneOf.0","typeLabel":"string"},{"type":"null","example":"44","uniqueKey":"data.numbers.items.[INDEX].country_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.numbers.items.[INDEX].country_code","typeLabel":"string | null"},"iso2":{"oneOf":[{"type":"string","example":"gb","uniqueKey":"data.numbers.items.[INDEX].iso2.oneOf.0","typeLabel":"string"},{"type":"null","example":"gb","uniqueKey":"data.numbers.items.[INDEX].iso2.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.numbers.items.[INDEX].iso2","typeLabel":"string | null"},"type":{"type":"string","enum":["mobile","home","work","other"],"uniqueKey":"data.numbers.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"intl_number":{"oneOf":[{"type":"string","example":"+447911123456","uniqueKey":"data.numbers.items.[INDEX].intl_number.oneOf.0","typeLabel":"string"},{"type":"null","example":"+447911123456","uniqueKey":"data.numbers.items.[INDEX].intl_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.numbers.items.[INDEX].intl_number","typeLabel":"string | null"}},"uniqueKey":"data.numbers.items.[INDEX]","typeLabel":"object"},"description":"Phone numbers, embedded on every read and written nested here — never via /numbers. Entries carry id, number, country_code, iso2, type (mobile/home/work/other), intl_number. PATCH reconciles by id.","uniqueKey":"data.numbers","typeLabel":"object[]"},"address":{"oneOf":[{"type":"object","properties":{"line_1":{"oneOf":[{"type":"string","uniqueKey":"data.address.oneOf.0.line_1.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.address.oneOf.0.line_1.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.address.oneOf.0.line_1","typeLabel":"string | null"},"line_2":{"oneOf":[{"type":"string","uniqueKey":"data.address.oneOf.0.line_2.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.address.oneOf.0.line_2.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.address.oneOf.0.line_2","typeLabel":"string | null"},"city":{"oneOf":[{"type":"string","uniqueKey":"data.address.oneOf.0.city.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.address.oneOf.0.city.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.address.oneOf.0.city","typeLabel":"string | null"},"state":{"oneOf":[{"type":"string","uniqueKey":"data.address.oneOf.0.state.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.address.oneOf.0.state.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.address.oneOf.0.state","typeLabel":"string | null"},"postal_code":{"oneOf":[{"type":"string","uniqueKey":"data.address.oneOf.0.postal_code.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.address.oneOf.0.postal_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.address.oneOf.0.postal_code","typeLabel":"string | null"},"country":{"oneOf":[{"type":"string","uniqueKey":"data.address.oneOf.0.country.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"data.address.oneOf.0.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.address.oneOf.0.country","typeLabel":"string | null"}},"description":"The patient's single address — line_1, line_2, city, state, postal_code, country — embedded on read (null when none) and written nested here, never via /addresses. PATCH changes only the keys you send.","uniqueKey":"data.address.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"line_1":{"oneOf":[{"type":"string"},{"type":"null"}]},"line_2":{"oneOf":[{"type":"string"},{"type":"null"}]},"city":{"oneOf":[{"type":"string"},{"type":"null"}]},"state":{"oneOf":[{"type":"string"},{"type":"null"}]},"postal_code":{"oneOf":[{"type":"string"},{"type":"null"}]},"country":{"oneOf":[{"type":"string"},{"type":"null"}]}},"description":"The patient's single address — line_1, line_2, city, state, postal_code, country — embedded on read (null when none) and written nested here, never via /addresses. PATCH changes only the keys you send.","uniqueKey":"data.address.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.address","typeLabel":"object | null"},"tags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","description":"The tag (GET /tags/{id}).","uniqueKey":"data.tags.items.[INDEX].id","typeLabel":"integer"},"name":{"type":"string","example":"VIP","uniqueKey":"data.tags.items.[INDEX].name","typeLabel":"string"},"color":{"oneOf":[{"type":"string","example":"#4F86C6","uniqueKey":"data.tags.items.[INDEX].color.oneOf.0","typeLabel":"string"},{"type":"null","example":"#4F86C6","uniqueKey":"data.tags.items.[INDEX].color.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.tags.items.[INDEX].color","typeLabel":"string | null"},"patient_tag_id":{"type":"integer","description":"This tag on this file (GET /patient_tags/{id}) — the id to DELETE to take it off.","uniqueKey":"data.tags.items.[INDEX].patient_tag_id","typeLabel":"integer"},"editable":{"type":"boolean","description":"False when a care plan put the tag on the file: the plan takes it off when it ends, and DELETE is refused.","uniqueKey":"data.tags.items.[INDEX].editable","typeLabel":"boolean"},"added_at":{"type":"string","format":"date-time","description":"When the tag went on the file, UTC.","example":"2026-08-19T14:22:05Z","uniqueKey":"data.tags.items.[INDEX].added_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.tags.items.[INDEX]","typeLabel":"object"},"description":"The tags on the patient's file, active tags only, each once: the tag's id, name and color, plus patient_tag_id (this tag on this file), editable (false when a care plan put it there) and added_at (UTC). Read-only here — put a tag on with POST /patient_tags and take it off with DELETE /patient_tags/{patient_tag_id}. The account's tags are listed at GET /tags.","uniqueKey":"data.tags","typeLabel":"object[]"},"metadata":{"type":"object","description":"Integrator-owned key/value metadata (max 50 keys). Values are strings (≤500 chars), numbers or booleans and read back with the type they were written with. On write, a null value removes the key. Filter with metadata[key]=op:value; number operands compare numerically.","additionalProperties":{"oneOf":[{"type":"string","maxLength":500,"uniqueKey":"data.metadata.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"data.metadata.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"data.metadata.additionalProperties.oneOf.2","typeLabel":"boolean"},{"type":"null","uniqueKey":"data.metadata.additionalProperties.oneOf.3","typeLabel":"null"}],"uniqueKey":"data.metadata.additionalProperties","typeLabel":"string | number | boolean | null"},"uniqueKey":"data.metadata","typeLabel":"object"}},"example":{"id":340,"imported_id":"P-1042","custom_reference":"CRM-7781","first_name":"Ada","last_name":"Lovelace","preferred_name":"Ada","dob":"1985-12-10","email":"ada@example.org","sex":"female","balance":"45.00","private_balance":"45.00","third_party_balance":"0.00","updated_at":"2026-08-19T14:22:05Z","created_at":"2026-01-15T10:30:00Z","communication_status":1,"patient_status":"active","locale":"en","referral_source_id":12,"referral_source_type":"referral_source","note":"Prefers morning appointments.","default_location_id":81,"app_signup":"2026-02-01T08:15:00Z","app_last_accessed":"2026-08-15T18:42:10Z","blocked":false,"communication_preferences":{"transactional":{"push_notification":true},"marketing":{"push_notification":false}},"numbers":[{"id":5012,"number":"07700 900123","country_code":"44","iso2":"gb","type":"mobile","intl_number":"+447700900123"}],"address":{"line_1":"12 Analytical Way","line_2":"Flat 2","city":"London","state":"Greater London","postal_code":"N1 9GU","country":"GB"},"tags":[{"id":18,"name":"VIP","color":"#4F86C6","patient_tag_id":9021,"editable":true,"added_at":"2026-08-19T14:22:05Z"}]},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"id":340,"imported_id":"P-1042","custom_reference":"CRM-7781","first_name":"Ada","last_name":"Lovelace","preferred_name":"Ada","dob":"1985-12-10","email":"ada@example.org","sex":"female","balance":"45.00","private_balance":"45.00","third_party_balance":"0.00","updated_at":"2026-08-19T14:22:05Z","created_at":"2026-01-15T10:30:00Z","communication_status":1,"patient_status":"active","locale":"en","referral_source_id":12,"referral_source_type":"referral_source","note":"Prefers morning appointments.","default_location_id":81,"app_signup":"2026-02-01T08:15:00Z","app_last_accessed":"2026-08-15T18:42:10Z","blocked":false,"communication_preferences":{"transactional":{"push_notification":true},"marketing":{"push_notification":false}},"numbers":[{"id":5012,"number":"07700 900123","country_code":"44","iso2":"gb","type":"mobile","intl_number":"+447700900123"}],"address":{"line_1":"12 Analytical Way","line_2":"Flat 2","city":"London","state":"Greater London","postal_code":"N1 9GU","country":"GB"},"tags":[{"id":18,"name":"VIP","color":"#4F86C6","patient_tag_id":9021,"editable":true,"added_at":"2026-08-19T14:22:05Z"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"8d10d27c-7297-4f6b-87f2-d8b59eb3928b":{"description":"Missing or invalid credentials","content":{"application/json":{"schema":{"type":"object","required":["message","code"],"properties":{"message":{"type":"string","description":"Human-readable; may change — do not parse","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable code (snake_case), e.g. validation_failed, not_found, key_read_only, not_online_bookable, group_full, appointment_rule, billing_rule, idempotency_key_reused, rate_limited","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"errors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"errors.additionalProperties","typeLabel":"string[]"},"description":"Present on validation failures, keyed by attribute","uniqueKey":"errors","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"\u003cstring>","errors":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"b161af9a-acec-4ce9-a1c6-f2539a69eba5":{"description":"The API key is read-only","content":{"application/json":{"schema":{"type":"object","required":["message","code"],"properties":{"message":{"type":"string","description":"Human-readable; may change — do not parse","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable code (snake_case), e.g. validation_failed, not_found, key_read_only, not_online_bookable, group_full, appointment_rule, billing_rule, idempotency_key_reused, rate_limited","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"errors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"errors.additionalProperties","typeLabel":"string[]"},"description":"Present on validation failures, keyed by attribute","uniqueKey":"errors","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"\u003cstring>","errors":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"8edc6b7d-73fb-45a5-8052-afca47d41789":{"description":"A domain rule rejected the change (e.g. group_full, already processed, void)","content":{"application/json":{"schema":{"type":"object","required":["message","code"],"properties":{"message":{"type":"string","description":"Human-readable; may change — do not parse","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable code (snake_case), e.g. validation_failed, not_found, key_read_only, not_online_bookable, group_full, appointment_rule, billing_rule, idempotency_key_reused, rate_limited","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"errors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"errors.additionalProperties","typeLabel":"string[]"},"description":"Present on validation failures, keyed by attribute","uniqueKey":"errors","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"\u003cstring>","errors":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"5a11d5b9-76f3-4eeb-879b-fe4d8ec393ee":{"description":"Invalid input; `errors` is keyed by attribute","content":{"application/json":{"schema":{"type":"object","required":["message","code"],"properties":{"message":{"type":"string","description":"Human-readable; may change — do not parse","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Stable machine-readable code (snake_case), e.g. validation_failed, not_found, key_read_only, not_online_bookable, group_full, appointment_rule, billing_rule, idempotency_key_reused, rate_limited","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"errors.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"errors.additionalProperties","typeLabel":"string[]"},"description":"Present on validation failures, keyed by attribute","uniqueKey":"errors","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"\u003cstring>","code":"\u003cstring>","errors":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3e149afc-4020-4703-9136-cc2e72a9bd5f":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key from Developers → API Keys, sent as Authorization: Bearer \u003ckey>.","scopes":[]}}},"servers":{"ac3ece27-d0f4-4c91-9451-abf026054118":{"url":"https://{clinic}.{region}.practicehub.io/v3/api","description":"PracticeHub API — the host the practice signs in on","variables":{"clinic":{"default":"your-clinic","description":"The clinic subdomain"},"region":{"default":"neptune","enum":["neptune","mercury","vulcan","jupiter","apollo"],"description":"The region host from the practice login URL: neptune (London), mercury (Frankfurt), vulcan (Ohio), jupiter (Singapore), apollo (Sydney)"}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API key from Developers → API Keys, sent as Authorization: Bearer \u003ckey>.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key from Developers → API Keys, sent as Authorization: Bearer \u003ckey>.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"practicehub","siteName":"PracticeHub API","title":"Create patients - PracticeHub API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-22T22:27:45.664Z","originalFileLocation":"api-reference/patients/create-patients.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"PracticeHub API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create patients - PracticeHub API\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"PracticeHub API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://build.practicehub.io/api-reference/patients/create-patients\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://practicehub.mintlify.site/_mintlify/api/og/v2?division=Patients\u0026amp;title=Create+patients\u0026amp;theme=28d8abad6d6dc7c82fd4bf6c\u0026amp;signature=5c31941c07a2004adcea5cfdc849fb6e6b3cd203fb4cebaa6825dc7f7a017147\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create patients - PracticeHub API\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://practicehub.mintlify.site/_mintlify/api/og/v2?division=Patients\u0026amp;title=Create+patients\u0026amp;theme=28d8abad6d6dc7c82fd4bf6c\u0026amp;signature=5c31941c07a2004adcea5cfdc849fb6e6b3cd203fb4cebaa6825dc7f7a017147\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/practicehub/tWea_gTXnCMo_QSS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"PracticeHub API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0A0A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://build.practicehub.io/api-reference/patients/create-patients\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/patients/create-patients.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://build.practicehub.io/#organization\",\"name\":\"PracticeHub API\",\"url\":\"https://build.practicehub.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/practicehub/MpQUZFwSGC0fLbvu/logo/light.svg?fit=max\u0026auto=format\u0026n=MpQUZFwSGC0fLbvu\u0026q=85\u0026s=78b2f118e53c15b719c31b4d00d2366b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://build.practicehub.io#website\",\"name\":\"PracticeHub API\",\"url\":\"https://build.practicehub.io\",\"publisher\":{\"@id\":\"https://build.practicehub.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://build.practicehub.io/api-reference/patients/create-patients#webpage\",\"url\":\"https://build.practicehub.io/api-reference/patients/create-patients\",\"name\":\"Create patients\",\"dateModified\":\"2026-09-22T22:27:45.664Z\",\"isPartOf\":{\"@id\":\"https://build.practicehub.io#website\"},\"breadcrumb\":{\"@id\":\"https://build.practicehub.io/api-reference/patients/create-patients#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://build.practicehub.io/api-reference/patients/create-patients#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Patients\",\"item\":\"https://build.practicehub.io/api-reference/patients/list-patients\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Patients\",\"item\":\"https://build.practicehub.io/api-reference/patients/list-patients\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create patients\",\"item\":\"https://build.practicehub.io/api-reference/patients/create-patients\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://build.practicehub.io/api-reference/patients/create-patients#apireference\",\"headline\":\"Create patients\",\"name\":\"Create patients\",\"url\":\"https://build.practicehub.io/api-reference/patients/create-patients\",\"mainEntityOfPage\":{\"@id\":\"https://build.practicehub.io/api-reference/patients/create-patients#webpage\"},\"dateModified\":\"2026-09-22T22:27:45.664Z\",\"publisher\":{\"@id\":\"https://build.practicehub.io/#organization\"},\"isPartOf\":{\"@id\":\"https://build.practicehub.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"PracticeHub API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"PracticeHub API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/patients/create-patients.md","siteName":"PracticeHub API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Getting started","pages":[{"group":"Utility","pages":[{"title":"Liveness check","deprecated":null,"version":null,"openapi":"/openapi.json get /ping","href":"/api-reference/utility/liveness-check"},{"title":"Identify the authenticated credential and the account it reaches","deprecated":null,"version":null,"openapi":"/openapi.json get /me","href":"/api-reference/utility/identify-the-authenticated-credential-and-the-account-it-reaches"},{"title":"Describe every resource (attributes, filters, write operations, input)","deprecated":null,"version":null,"openapi":"/openapi.json get /schema","href":"/api-reference/utility/describe-every-resource-attributes-filters-write-operations-input"},{"title":"Describe one resource","deprecated":null,"version":null,"openapi":"/openapi.json get /schema/{entity}","href":"/api-reference/utility/describe-one-resource"}]}]},{"group":"Scheduling","pages":[{"group":"Availability","pages":[{"title":"List free, bookable slots for a location and appointment type","deprecated":null,"version":null,"openapi":"/openapi.json get /availability","href":"/api-reference/availability/list-free-bookable-slots-for-a-location-and-appointment-type"}]},{"group":"Appointments","pages":[{"title":"List appointments","deprecated":null,"version":null,"openapi":"/openapi.json get /appointments","href":"/api-reference/appointments/list-appointments"},{"title":"Create appointments","deprecated":null,"version":null,"openapi":"/openapi.json post /appointments","href":"/api-reference/appointments/create-appointments"},{"title":"Get one of appointments","deprecated":null,"version":null,"openapi":"/openapi.json get /appointments/{id}","href":"/api-reference/appointments/get-one-of-appointments"},{"title":"Update appointments","deprecated":null,"version":null,"openapi":"/openapi.json patch /appointments/{id}","href":"/api-reference/appointments/update-appointments"},{"title":"Delete appointments","deprecated":null,"version":null,"openapi":"/openapi.json delete /appointments/{id}","href":"/api-reference/appointments/delete-appointments"}]},{"group":"Appointment Types","pages":[{"title":"List appointment_types","deprecated":null,"version":null,"openapi":"/openapi.json get /appointment_types","href":"/api-reference/appointment-types/list-appointment_types"},{"title":"Create appointment_types","deprecated":null,"version":null,"openapi":"/openapi.json post /appointment_types","href":"/api-reference/appointment-types/create-appointment_types"},{"title":"Get one of appointment_types","deprecated":null,"version":null,"openapi":"/openapi.json get /appointment_types/{id}","href":"/api-reference/appointment-types/get-one-of-appointment_types"},{"title":"Update appointment_types","deprecated":null,"version":null,"openapi":"/openapi.json patch /appointment_types/{id}","href":"/api-reference/appointment-types/update-appointment_types"}]},{"group":"Practitioner Availabilities","pages":[{"title":"List practitioner_availabilities","deprecated":null,"version":null,"openapi":"/openapi.json get /practitioner_availabilities","href":"/api-reference/practitioner-availabilities/list-practitioner_availabilities"},{"title":"Get one of practitioner_availabilities","deprecated":null,"version":null,"openapi":"/openapi.json get /practitioner_availabilities/{id}","href":"/api-reference/practitioner-availabilities/get-one-of-practitioner_availabilities"}]},{"group":"Resources","pages":[{"title":"List resources","deprecated":null,"version":null,"openapi":"/openapi.json get /resources","href":"/api-reference/resources/list-resources"},{"title":"Get one of resources","deprecated":null,"version":null,"openapi":"/openapi.json get /resources/{id}","href":"/api-reference/resources/get-one-of-resources"}]}]},{"group":"Patients","pages":[{"group":"Patients","pages":[{"title":"List patients","description":null,"deprecated":null,"version":null,"openapi":"/openapi.json get /patients","href":"/api-reference/patients/list-patients"},{"title":"Create patients","deprecated":null,"version":null,"openapi":"/openapi.json post /patients","href":"/api-reference/patients/create-patients"},{"title":"Get one of patients","description":null,"deprecated":null,"version":null,"openapi":"/openapi.json get /patients/{id}","href":"/api-reference/patients/get-one-of-patients"},{"title":"Update patients","deprecated":null,"version":null,"openapi":"/openapi.json patch /patients/{id}","href":"/api-reference/patients/update-patients"},{"title":"Delete patients","deprecated":null,"version":null,"openapi":"/openapi.json delete /patients/{id}","href":"/api-reference/patients/delete-patients"}]},{"group":"Tags","pages":[{"title":"List tags","deprecated":null,"version":null,"openapi":"/openapi.json get /tags","href":"/api-reference/tags/list-tags"},{"title":"Get one of tags","deprecated":null,"version":null,"openapi":"/openapi.json get /tags/{id}","href":"/api-reference/tags/get-one-of-tags"}]},{"group":"Patient Tags","pages":[{"title":"Create patient_tags","deprecated":null,"version":null,"openapi":"/openapi.json post /patient_tags","href":"/api-reference/patient-tags/create-patient_tags"},{"title":"Delete patient_tags","deprecated":null,"version":null,"openapi":"/openapi.json delete /patient_tags/{id}","href":"/api-reference/patient-tags/delete-patient_tags"}]},{"group":"Numbers","pages":[{"title":"List numbers","deprecated":null,"version":null,"openapi":"/openapi.json get /numbers","href":"/api-reference/numbers/list-numbers"},{"title":"Get one of numbers","deprecated":null,"version":null,"openapi":"/openapi.json get /numbers/{id}","href":"/api-reference/numbers/get-one-of-numbers"}]},{"group":"Addresses","pages":[{"title":"List addresses","deprecated":null,"version":null,"openapi":"/openapi.json get /addresses","href":"/api-reference/addresses/list-addresses"},{"title":"Get one of addresses","deprecated":null,"version":null,"openapi":"/openapi.json get /addresses/{id}","href":"/api-reference/addresses/get-one-of-addresses"}]},{"group":"Patient Logs","pages":[{"title":"List patient_logs","deprecated":null,"version":null,"openapi":"/openapi.json get /patient_logs","href":"/api-reference/patient-logs/list-patient_logs"},{"title":"Create patient_logs","deprecated":null,"version":null,"openapi":"/openapi.json post /patient_logs","href":"/api-reference/patient-logs/create-patient_logs"},{"title":"Get one of patient_logs","deprecated":null,"version":null,"openapi":"/openapi.json get /patient_logs/{id}","href":"/api-reference/patient-logs/get-one-of-patient_logs"},{"title":"Update patient_logs","deprecated":null,"version":null,"openapi":"/openapi.json patch /patient_logs/{id}","href":"/api-reference/patient-logs/update-patient_logs"},{"title":"Delete patient_logs","deprecated":null,"version":null,"openapi":"/openapi.json delete /patient_logs/{id}","href":"/api-reference/patient-logs/delete-patient_logs"}]},{"group":"Patient Log Tags","pages":[{"title":"List patient_log_tags","deprecated":null,"version":null,"openapi":"/openapi.json get /patient_log_tags","href":"/api-reference/patient-log-tags/list-patient_log_tags"},{"title":"Create patient_log_tags","deprecated":null,"version":null,"openapi":"/openapi.json post /patient_log_tags","href":"/api-reference/patient-log-tags/create-patient_log_tags"},{"title":"Get one of patient_log_tags","deprecated":null,"version":null,"openapi":"/openapi.json get /patient_log_tags/{id}","href":"/api-reference/patient-log-tags/get-one-of-patient_log_tags"},{"title":"Update patient_log_tags","deprecated":null,"version":null,"openapi":"/openapi.json patch /patient_log_tags/{id}","href":"/api-reference/patient-log-tags/update-patient_log_tags"},{"title":"Delete patient_log_tags","deprecated":null,"version":null,"openapi":"/openapi.json delete /patient_log_tags/{id}","href":"/api-reference/patient-log-tags/delete-patient_log_tags"}]},{"group":"Files","pages":[{"title":"List files","deprecated":null,"version":null,"openapi":"/openapi.json get /files","href":"/api-reference/files/list-files"},{"title":"Create files","deprecated":null,"version":null,"openapi":"/openapi.json post /files","href":"/api-reference/files/create-files"},{"title":"Get one of files","deprecated":null,"version":null,"openapi":"/openapi.json get /files/{id}","href":"/api-reference/files/get-one-of-files"},{"title":"Update files","deprecated":null,"version":null,"openapi":"/openapi.json patch /files/{id}","href":"/api-reference/files/update-files"},{"title":"Delete files","deprecated":null,"version":null,"openapi":"/openapi.json delete /files/{id}","href":"/api-reference/files/delete-files"}]},{"group":"Care Plans","pages":[{"title":"List care_plans","deprecated":null,"version":null,"openapi":"/openapi.json get /care_plans","href":"/api-reference/care-plans/list-care_plans"},{"title":"Get one of care_plans","deprecated":null,"version":null,"openapi":"/openapi.json get /care_plans/{id}","href":"/api-reference/care-plans/get-one-of-care_plans"}]}]},{"group":"Clinical","pages":[{"group":"Clinical Notes","pages":[{"title":"List clinical notes","deprecated":null,"version":null,"openapi":"/openapi.json get /clinical_notes","href":"/api-reference/clinical-notes/list-clinical-notes"},{"title":"Create a clinical note","deprecated":null,"version":null,"openapi":"/openapi.json post /clinical_notes","href":"/api-reference/clinical-notes/create-a-clinical-note"},{"title":"Get one clinical note","deprecated":null,"version":null,"openapi":"/openapi.json get /clinical_notes/{id}","href":"/api-reference/clinical-notes/get-one-clinical-note"}]},{"group":"Form Templates","pages":[{"title":"List form_templates","deprecated":null,"version":null,"openapi":"/openapi.json get /form_templates","href":"/api-reference/form-templates/list-form_templates"},{"title":"Get one of form_templates","deprecated":null,"version":null,"openapi":"/openapi.json get /form_templates/{id}","href":"/api-reference/form-templates/get-one-of-form_templates"}]}]},{"group":"Billing","pages":[{"group":"Invoices","pages":[{"title":"List invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /invoices","href":"/api-reference/invoices/list-invoices"},{"title":"Create invoices","deprecated":null,"version":null,"openapi":"/openapi.json post /invoices","href":"/api-reference/invoices/create-invoices"},{"title":"Get one of invoices","deprecated":null,"version":null,"openapi":"/openapi.json get /invoices/{id}","href":"/api-reference/invoices/get-one-of-invoices"},{"title":"Update invoices","deprecated":null,"version":null,"openapi":"/openapi.json patch /invoices/{id}","href":"/api-reference/invoices/update-invoices"},{"title":"Delete invoices","deprecated":null,"version":null,"openapi":"/openapi.json delete /invoices/{id}","href":"/api-reference/invoices/delete-invoices"}]},{"group":"Line Items","pages":[{"title":"List line_items","deprecated":null,"version":null,"openapi":"/openapi.json get /line_items","href":"/api-reference/line-items/list-line_items"},{"title":"Create line_items","deprecated":null,"version":null,"openapi":"/openapi.json post /line_items","href":"/api-reference/line-items/create-line_items"},{"title":"Get one of line_items","deprecated":null,"version":null,"openapi":"/openapi.json get /line_items/{id}","href":"/api-reference/line-items/get-one-of-line_items"},{"title":"Update line_items","deprecated":null,"version":null,"openapi":"/openapi.json patch /line_items/{id}","href":"/api-reference/line-items/update-line_items"},{"title":"Delete line_items","deprecated":null,"version":null,"openapi":"/openapi.json delete /line_items/{id}","href":"/api-reference/line-items/delete-line_items"}]},{"group":"Payments","pages":[{"title":"List payments","deprecated":null,"version":null,"openapi":"/openapi.json get /payments","href":"/api-reference/payments/list-payments"},{"title":"Create payments","deprecated":null,"version":null,"openapi":"/openapi.json post /payments","href":"/api-reference/payments/create-payments"},{"title":"Get one of payments","deprecated":null,"version":null,"openapi":"/openapi.json get /payments/{id}","href":"/api-reference/payments/get-one-of-payments"},{"title":"Update payments","deprecated":null,"version":null,"openapi":"/openapi.json patch /payments/{id}","href":"/api-reference/payments/update-payments"},{"title":"Delete payments","deprecated":null,"version":null,"openapi":"/openapi.json delete /payments/{id}","href":"/api-reference/payments/delete-payments"}]},{"group":"Refunds","pages":[{"title":"List refunds","deprecated":null,"version":null,"openapi":"/openapi.json get /refunds","href":"/api-reference/refunds/list-refunds"},{"title":"Create refunds","deprecated":null,"version":null,"openapi":"/openapi.json post /refunds","href":"/api-reference/refunds/create-refunds"},{"title":"Get one of refunds","deprecated":null,"version":null,"openapi":"/openapi.json get /refunds/{id}","href":"/api-reference/refunds/get-one-of-refunds"}]},{"group":"Payment Allocations","pages":[{"title":"List payment_allocations","deprecated":null,"version":null,"openapi":"/openapi.json get /payment_allocations","href":"/api-reference/payment-allocations/list-payment_allocations"},{"title":"Create payment_allocations","deprecated":null,"version":null,"openapi":"/openapi.json post /payment_allocations","href":"/api-reference/payment-allocations/create-payment_allocations"},{"title":"Get one of payment_allocations","deprecated":null,"version":null,"openapi":"/openapi.json get /payment_allocations/{id}","href":"/api-reference/payment-allocations/get-one-of-payment_allocations"},{"title":"Delete payment_allocations","deprecated":null,"version":null,"openapi":"/openapi.json delete /payment_allocations/{id}","href":"/api-reference/payment-allocations/delete-payment_allocations"}]},{"group":"Payment Methods","pages":[{"title":"List payment_methods","deprecated":null,"version":null,"openapi":"/openapi.json get /payment_methods","href":"/api-reference/payment-methods/list-payment_methods"},{"title":"Create payment_methods","deprecated":null,"version":null,"openapi":"/openapi.json post /payment_methods","href":"/api-reference/payment-methods/create-payment_methods"},{"title":"Get one of payment_methods","deprecated":null,"version":null,"openapi":"/openapi.json get /payment_methods/{id}","href":"/api-reference/payment-methods/get-one-of-payment_methods"},{"title":"Update payment_methods","deprecated":null,"version":null,"openapi":"/openapi.json patch /payment_methods/{id}","href":"/api-reference/payment-methods/update-payment_methods"}]},{"group":"Billable Items","pages":[{"title":"List billable_items","deprecated":null,"version":null,"openapi":"/openapi.json get /billable_items","href":"/api-reference/billable-items/list-billable_items"},{"title":"Create billable_items","deprecated":null,"version":null,"openapi":"/openapi.json post /billable_items","href":"/api-reference/billable-items/create-billable_items"},{"title":"Get one of billable_items","deprecated":null,"version":null,"openapi":"/openapi.json get /billable_items/{id}","href":"/api-reference/billable-items/get-one-of-billable_items"},{"title":"Update billable_items","deprecated":null,"version":null,"openapi":"/openapi.json patch /billable_items/{id}","href":"/api-reference/billable-items/update-billable_items"}]}]},{"group":"Admin \u0026 reference","pages":[{"group":"Locations","pages":[{"title":"List locations","deprecated":null,"version":null,"openapi":"/openapi.json get /locations","href":"/api-reference/locations/list-locations"},{"title":"Create locations","deprecated":null,"version":null,"openapi":"/openapi.json post /locations","href":"/api-reference/locations/create-locations"},{"title":"Get one of locations","deprecated":null,"version":null,"openapi":"/openapi.json get /locations/{id}","href":"/api-reference/locations/get-one-of-locations"},{"title":"Update locations","deprecated":null,"version":null,"openapi":"/openapi.json patch /locations/{id}","href":"/api-reference/locations/update-locations"}]},{"group":"Practitioners","pages":[{"title":"List practitioners","deprecated":null,"version":null,"openapi":"/openapi.json get /practitioners","href":"/api-reference/practitioners/list-practitioners"},{"title":"Get one of practitioners","deprecated":null,"version":null,"openapi":"/openapi.json get /practitioners/{id}","href":"/api-reference/practitioners/get-one-of-practitioners"}]},{"group":"Modalities","pages":[{"title":"List modalities","deprecated":null,"version":null,"openapi":"/openapi.json get /modalities","href":"/api-reference/modalities/list-modalities"},{"title":"Get one of modalities","deprecated":null,"version":null,"openapi":"/openapi.json get /modalities/{id}","href":"/api-reference/modalities/get-one-of-modalities"}]},{"group":"Referral Sources","pages":[{"title":"List referral_sources","deprecated":null,"version":null,"openapi":"/openapi.json get /referral_sources","href":"/api-reference/referral-sources/list-referral_sources"},{"title":"Create referral_sources","deprecated":null,"version":null,"openapi":"/openapi.json post /referral_sources","href":"/api-reference/referral-sources/create-referral_sources"},{"title":"Get one of referral_sources","deprecated":null,"version":null,"openapi":"/openapi.json get /referral_sources/{id}","href":"/api-reference/referral-sources/get-one-of-referral_sources"},{"title":"Update referral_sources","deprecated":null,"version":null,"openapi":"/openapi.json patch /referral_sources/{id}","href":"/api-reference/referral-sources/update-referral_sources"}]},{"group":"Deleted Entities","pages":[{"title":"List deleted_entities","deprecated":null,"version":null,"openapi":"/openapi.json get /deleted_entities","href":"/api-reference/deleted-entities/list-deleted_entities"},{"title":"Get one of deleted_entities","deprecated":null,"version":null,"openapi":"/openapi.json get /deleted_entities/{id}","href":"/api-reference/deleted-entities/get-one-of-deleted_entities"}]}]}]},{"tab":"MCP Server","pages":[{"title":"MCP Server","href":"/mcp/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Create patients - PracticeHub API","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["10e4515597","c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["BannerMarkdown-DMIpkWQi.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js"]}