Skip to content

Create a patient

Request

Creates a new patient record associated with the authenticated client account. If an externalId is provided and already exists for this account, a 409 is returned with the existing patient ID.

Security
BearerAuth
Bodyapplication/jsonrequired
firstNamestringrequired
Example:"Jane"
lastNamestringrequired
Example:"Doe"
dobstring, (date)required
Example:"1990-01-15"
addressstringrequired
Example:"123 Main St"
citystringrequired
Example:"Phoenix"
statestringrequired
Example:"AZ"
zipstringrequired
Example:"85003"
emailstring, (email)required
Example:"jane.doe@example.com"
phonestring
Example:"6025554567"
genderstringrequired
Enum:"Male""Female"
Example:"Female"
externalIdstring
Example:"ext_abc123"
curl -i -X POST \
  https://docs.speedysticks.com/_mock/openapi/api/patient \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "firstName": "Jane",
    "lastName": "Doe",
    "dob": "1990-01-15",
    "address": "123 Main St",
    "city": "Phoenix",
    "state": "AZ",
    "zip": "85003",
    "email": "jane.doe@example.com",
    "phone": "6025554567",
    "gender": "Female",
    "externalId": "ext_abc123"
  }'

Responses

Patient created successfully.

Bodyapplication/json
patientIdinteger
Example:1
Response
{ "patientId": 1 }