Skip to main content
POST

Request Body

string
required
Patient’s first name. Min 1 character, max 255 characters.
string
required
Patient’s last name. Min 1 character, max 255 characters.
string
required
Phone number in E.164 format. Must start with + followed by country code and number. Examples: - Australia: +61412345678 - US: +14155551234 - UK: +447700900123
string
required
Date of birth in ISO 8601 format (YYYY-MM-DD). Example: 1990-01-15
string
Valid email address for the patient.
string
Street address line 1. Max 255 characters.
string
Street address line 2 (apartment, suite, etc.). Max 255 characters.
string
Suburb or city. Max 100 characters.
string
State or province. Max 50 characters.
string
Postal or ZIP code. Max 20 characters.
string
Country code. Currently only AU (Australia) is supported.

Response

object
The created patient object.
object
Additional metadata (currently empty).

Examples

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme. Get your API key from the Operahealth dashboard.

Body

application/json
firstName
string
required

Patient's first name

Required string length: 1 - 255
lastName
string
required

Patient's last name

Required string length: 1 - 255
phoneNumber
string
required

Phone number in E.164 format (e.g., +61412345678)

Pattern: ^\+[1-9]\d{1,14}$
dateOfBirth
string<date>
required

Date of birth in ISO 8601 format (YYYY-MM-DD)

email
string<email> | null

Patient's email address

addressLine1
string | null

Street address line 1

Maximum string length: 255
addressLine2
string | null

Street address line 2 (apartment, suite, etc.)

Maximum string length: 255
suburb
string | null

Suburb or city

Maximum string length: 100
state
string | null

State or province

Maximum string length: 50
postcode
string | null

Postal or ZIP code

Maximum string length: 20
country
enum<string> | null

Country code (only Australia supported)

Available options:
AU

Response

Patient created successfully

data
object
meta
object

Additional metadata