POST
/
api
/
v2
/
patients
/
curl --request POST \
  --url https://app.spotdx.com/api/v2/patients/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "first_name": "Alice",
  "last_name": "Smith",
  "email": "alice123@gmail.com",
  "phone": "1234567890",
  "sex": "F",
  "date_of_birth": "2023-12-25"
}'
{
  "first_name": "Alice",
  "last_name": "Smith",
  "email": "alice123@gmail.com",
  "phone": "1234567890",
  "sex": "F",
  "date_of_birth": "2023-12-25"
}

Authorizations

Authorization
string
headerrequired

Token-based authentication with required prefix "Token"

Body

first_name
string
required

The first name of the patient.

last_name
string
required

The last name of the patient to be created.

email
string
required

The email of the patient to be created.

phone
string

Optional phone number of the patient.

sex
enum<string>
required

The biological sex of the patient to be created.

Available options:
M,
F
date_of_birth
string
required

The date of birth of the patient to be created.

Response

200 - application/json
first_name
string
required

The first name of the patient.

last_name
string
required

The last name of the patient to be created.

email
string
required

The email of the patient to be created.

phone
string

Optional phone number of the patient.

sex
enum<string>
required

The biological sex of the patient to be created.

Available options:
M,
F
date_of_birth
string
required

The date of birth of the patient to be created.