Advanced Guides
Integrations
API Reference - Orders
API Reference - Kits
API Reference - Requisitions
API Reference - Registration
API Reference - Registration
Create patient
Create a patient.
POST
/
api
/
v2
/
patients
/
Copy
Ask AI
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"
}'
Copy
Ask AI
{
"first_name": "Alice",
"last_name": "Smith",
"email": "alice123@gmail.com",
"phone": "1234567890",
"sex": "F",
"date_of_birth": "2023-12-25"
}
Authorizations
Token-based authentication with required prefix "Token"
Body
Response
200
application/json
The response is of type object
.
Copy
Ask AI
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"
}'
Copy
Ask AI
{
"first_name": "Alice",
"last_name": "Smith",
"email": "alice123@gmail.com",
"phone": "1234567890",
"sex": "F",
"date_of_birth": "2023-12-25"
}
Assistant
Responses are generated using AI and may contain mistakes.