API Reference - Registration
Create patient
POST
/
api
/
v2
/
patients
/
Authorization
Body
curl --request POST \
--url https://app.spotdx.com/api/v2/patients/ \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"date_of_birth": "<date_of_birth>",
"email": "alice123@gmail.com",
"first_name": "Alice",
"last_name": "Smith",
"sex": "F"
}'
{
"date_of_birth": "string",
"email": "alice123@gmail.com",
"first_name": "Alice",
"last_name": "Smith",
"phone": "1234567890",
"sex": "F"
}
Authorizations
Authorizationheaderrequired
string
Token-based authentication with required prefix "Token"
Body
date_of_birthrequired
string
The date of birth of the patient to be created.
emailrequired
string
The email of the patient to be created.
first_namerequired
string
The first name of the patient.
last_namerequired
string
The last name of the patient to be created.
phone
string
Optional phone number of the patient.
sexrequired
enum<string>
The biological sex of the patient to be created.
Available options:
M
, F
Response
200 - application/json
date_of_birthrequired
string
The date of birth of the patient to be created.
emailrequired
string
The email of the patient to be created.
first_namerequired
string
The first name of the patient.
last_namerequired
string
The last name of the patient to be created.
phone
string
Optional phone number of the patient.
sexrequired
enum<string>
The biological sex of the patient to be created.
Available options:
M
, F
curl --request POST \
--url https://app.spotdx.com/api/v2/patients/ \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"date_of_birth": "<date_of_birth>",
"email": "alice123@gmail.com",
"first_name": "Alice",
"last_name": "Smith",
"sex": "F"
}'
{
"date_of_birth": "string",
"email": "alice123@gmail.com",
"first_name": "Alice",
"last_name": "Smith",
"phone": "1234567890",
"sex": "F"
}