Practice
Request a slot
Requests (or refreshes) a data-access slot for a location the firm can access, and returns a request_key to send in the X-Vendor-Request-Key header on data endpoints.
- Validity: the
request_keyis valid for 6 hours (the access token’s lifetime), after which you must request a new slot. - Cooldown: the same location’s slot can be re-requested only once every 2 minutes; within the cooldown this returns
429withretry_after(seconds). - Rate limit: 10 requests / 10 seconds per token.
- Quota: at most
concurrent_slots(default 10) request keys stay active per firm; the oldest is trimmed when you exceed it, and requests still using that key fail with401. Contact TeamCare support to raise the quota.
POST
/
locations
/
{location_id}
/
slots
Request a slot
curl --request POST \
--url https://api.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots', 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.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "1",
"type": "slot",
"attributes": {
"request_key": "a1292639f455cf0",
"requested_at": "2026-10-26T12:00:00.000Z",
"expires_at": "2026-10-26T18:00:00.000Z"
}
}
}{
"errors": "not authorized"
}{
"errors": "resource not found"
}{
"errors": "..."
}{
"errors": [
"Slot for this location was requested too recently. Try again in 120s."
],
"retry_after": 120
}⌘I
Request a slot
curl --request POST \
--url https://api.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots', 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.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teamcaredental.com/api/v2/vendors/locations/{location_id}/slots")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "1",
"type": "slot",
"attributes": {
"request_key": "a1292639f455cf0",
"requested_at": "2026-10-26T12:00:00.000Z",
"expires_at": "2026-10-26T18:00:00.000Z"
}
}
}{
"errors": "not authorized"
}{
"errors": "resource not found"
}{
"errors": "..."
}{
"errors": [
"Slot for this location was requested too recently. Try again in 120s."
],
"retry_after": 120
}
