Create a patient
curl --request POST \
--url https://api.spikecare.com/public/v1/patients \
--header 'Content-Type: application/json' \
--data '
{
"clinic_id": 2,
"date_of_birth": "2023-12-25",
"insurance_provider_id": 2,
"name": "<string>",
"address": "<string>",
"email": "jsmith@example.com",
"group_number": "<string>",
"in_network_override": true,
"phone": "<string>",
"policy_id": "<string>"
}
'import requests
url = "https://api.spikecare.com/public/v1/patients"
payload = {
"clinic_id": 2,
"date_of_birth": "2023-12-25",
"insurance_provider_id": 2,
"name": "<string>",
"address": "<string>",
"email": "jsmith@example.com",
"group_number": "<string>",
"in_network_override": True,
"phone": "<string>",
"policy_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
clinic_id: 2,
date_of_birth: '2023-12-25',
insurance_provider_id: 2,
name: '<string>',
address: '<string>',
email: 'jsmith@example.com',
group_number: '<string>',
in_network_override: true,
phone: '<string>',
policy_id: '<string>'
})
};
fetch('https://api.spikecare.com/public/v1/patients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spikecare.com/public/v1/patients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clinic_id' => 2,
'date_of_birth' => '2023-12-25',
'insurance_provider_id' => 2,
'name' => '<string>',
'address' => '<string>',
'email' => 'jsmith@example.com',
'group_number' => '<string>',
'in_network_override' => true,
'phone' => '<string>',
'policy_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.spikecare.com/public/v1/patients"
payload := strings.NewReader("{\n \"clinic_id\": 2,\n \"date_of_birth\": \"2023-12-25\",\n \"insurance_provider_id\": 2,\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"group_number\": \"<string>\",\n \"in_network_override\": true,\n \"phone\": \"<string>\",\n \"policy_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.spikecare.com/public/v1/patients")
.header("Content-Type", "application/json")
.body("{\n \"clinic_id\": 2,\n \"date_of_birth\": \"2023-12-25\",\n \"insurance_provider_id\": 2,\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"group_number\": \"<string>\",\n \"in_network_override\": true,\n \"phone\": \"<string>\",\n \"policy_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spikecare.com/public/v1/patients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"clinic_id\": 2,\n \"date_of_birth\": \"2023-12-25\",\n \"insurance_provider_id\": 2,\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"group_number\": \"<string>\",\n \"in_network_override\": true,\n \"phone\": \"<string>\",\n \"policy_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"$schema": "<string>"
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Create a patient
Register a new patient under a clinic. Provide demographics (name, DOB, contact) and assign a clinic and insurance provider. The API returns a stable patient_id (UUID) for linking with your EMR’s local patient record.
Create a patient
curl --request POST \
--url https://api.spikecare.com/public/v1/patients \
--header 'Content-Type: application/json' \
--data '
{
"clinic_id": 2,
"date_of_birth": "2023-12-25",
"insurance_provider_id": 2,
"name": "<string>",
"address": "<string>",
"email": "jsmith@example.com",
"group_number": "<string>",
"in_network_override": true,
"phone": "<string>",
"policy_id": "<string>"
}
'import requests
url = "https://api.spikecare.com/public/v1/patients"
payload = {
"clinic_id": 2,
"date_of_birth": "2023-12-25",
"insurance_provider_id": 2,
"name": "<string>",
"address": "<string>",
"email": "jsmith@example.com",
"group_number": "<string>",
"in_network_override": True,
"phone": "<string>",
"policy_id": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
clinic_id: 2,
date_of_birth: '2023-12-25',
insurance_provider_id: 2,
name: '<string>',
address: '<string>',
email: 'jsmith@example.com',
group_number: '<string>',
in_network_override: true,
phone: '<string>',
policy_id: '<string>'
})
};
fetch('https://api.spikecare.com/public/v1/patients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.spikecare.com/public/v1/patients",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clinic_id' => 2,
'date_of_birth' => '2023-12-25',
'insurance_provider_id' => 2,
'name' => '<string>',
'address' => '<string>',
'email' => 'jsmith@example.com',
'group_number' => '<string>',
'in_network_override' => true,
'phone' => '<string>',
'policy_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.spikecare.com/public/v1/patients"
payload := strings.NewReader("{\n \"clinic_id\": 2,\n \"date_of_birth\": \"2023-12-25\",\n \"insurance_provider_id\": 2,\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"group_number\": \"<string>\",\n \"in_network_override\": true,\n \"phone\": \"<string>\",\n \"policy_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.spikecare.com/public/v1/patients")
.header("Content-Type", "application/json")
.body("{\n \"clinic_id\": 2,\n \"date_of_birth\": \"2023-12-25\",\n \"insurance_provider_id\": 2,\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"group_number\": \"<string>\",\n \"in_network_override\": true,\n \"phone\": \"<string>\",\n \"policy_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spikecare.com/public/v1/patients")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"clinic_id\": 2,\n \"date_of_birth\": \"2023-12-25\",\n \"insurance_provider_id\": 2,\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"group_number\": \"<string>\",\n \"in_network_override\": true,\n \"phone\": \"<string>\",\n \"policy_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"patient_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"$schema": "<string>"
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}{
"$schema": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}Body
application/json
ID of the clinic this patient is assigned to.
Required range:
x >= 1Date of birth in YYYY-MM-DD format.
ID of the patient’s primary insurance provider from the reference list.
Required range:
x >= 1Patient’s full name.
Required string length:
1 - 255Patient’s street address (optional).
Maximum string length:
500Patient’s email (optional).
Maximum string length:
255Insurance group number (optional).
Maximum string length:
255Override network status for this patient: true = in-network, false = out-of-network (optional).
Patient’s contact phone (optional).
Maximum string length:
30Insurance policy ID / member ID (optional).
Maximum string length:
255⌘I
