Skip to main content
Create a clinic
curl --request POST \
  --url https://api.spikecare.com/public/v1/clinics \
  --header 'Content-Type: application/json' \
  --data '
{
  "city": "<string>",
  "name": "<string>",
  "npi": 5499999999,
  "phone": "<string>",
  "state": "<string>",
  "street": "<string>",
  "tax_id": "<string>",
  "zip_code": "<string>"
}
'
import requests

url = "https://api.spikecare.com/public/v1/clinics"

payload = {
"city": "<string>",
"name": "<string>",
"npi": 5499999999,
"phone": "<string>",
"state": "<string>",
"street": "<string>",
"tax_id": "<string>",
"zip_code": "<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({
city: '<string>',
name: '<string>',
npi: 5499999999,
phone: '<string>',
state: '<string>',
street: '<string>',
tax_id: '<string>',
zip_code: '<string>'
})
};

fetch('https://api.spikecare.com/public/v1/clinics', 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/clinics",
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([
'city' => '<string>',
'name' => '<string>',
'npi' => 5499999999,
'phone' => '<string>',
'state' => '<string>',
'street' => '<string>',
'tax_id' => '<string>',
'zip_code' => '<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/clinics"

payload := strings.NewReader("{\n \"city\": \"<string>\",\n \"name\": \"<string>\",\n \"npi\": 5499999999,\n \"phone\": \"<string>\",\n \"state\": \"<string>\",\n \"street\": \"<string>\",\n \"tax_id\": \"<string>\",\n \"zip_code\": \"<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/clinics")
.header("Content-Type", "application/json")
.body("{\n \"city\": \"<string>\",\n \"name\": \"<string>\",\n \"npi\": 5499999999,\n \"phone\": \"<string>\",\n \"state\": \"<string>\",\n \"street\": \"<string>\",\n \"tax_id\": \"<string>\",\n \"zip_code\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.spikecare.com/public/v1/clinics")

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 \"city\": \"<string>\",\n \"name\": \"<string>\",\n \"npi\": 5499999999,\n \"phone\": \"<string>\",\n \"state\": \"<string>\",\n \"street\": \"<string>\",\n \"tax_id\": \"<string>\",\n \"zip_code\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "city": "<string>",
  "id": 2,
  "name": "<string>",
  "npi": 5499999999,
  "phone": "<string>",
  "state": "<string>",
  "street": "<string>",
  "tax_id": "<string>",
  "zip_code": "<string>",
  "$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
city
string
required

City.

Required string length: 1 - 100
name
string
required

Display name of the clinic or practice location.

Required string length: 1 - 255
npi
integer<int64>
required

10-digit National Provider Identifier (NPI) for the organization.

Required range: 1000000000 <= x <= 9999999999
phone
string
required

Primary contact phone number for the clinic.

Required string length: 1 - 30
state
string
required

State or province code (e.g. two-letter US state).

Required string length: 1 - 50
street
string
required

Street address line (number and street name).

Required string length: 1 - 255
tax_id
string
required

Federal EIN or TIN for the clinic (no dashes).

Required string length: 1 - 20
zip_code
string
required

US ZIP code; 5 digits or 5+4 (ZIP+4).

Required string length: 1 - 20
Pattern: ^[0-9]{5}(-[0-9]{4})?$

Response

OK

city
string
required

City.

Required string length: 1 - 100
id
integer<int64>
required

Unique clinic identifier assigned by the API.

Required range: x >= 1
name
string
required

Display name of the clinic or practice location as it appears in your EMR.

Required string length: 1 - 255
npi
integer<int64>
required

10-digit National Provider Identifier (NPI) for the organization.

Required range: 1000000000 <= x <= 9999999999
phone
string
required

Primary contact phone number for the clinic.

Required string length: 1 - 30
state
string
required

State or province code (e.g. two-letter US state).

Required string length: 1 - 50
street
string
required

Street address line (number and street name).

Required string length: 1 - 255
tax_id
string
required

Federal EIN or TIN for the clinic (no dashes).

Required string length: 1 - 20
zip_code
string
required

US ZIP code; 5 digits or 5+4 (ZIP+4).

Required string length: 1 - 20
Pattern: ^[0-9]{5}(-[0-9]{4})?$
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://api.spikecare.com/public/v1/schemas/Clinic.json"