List insurance providers
curl --request GET \
--url https://api.usecobalt.com/v1/insurance-providers \
--header 'access_token: <api-key>' \
--header 'client_id: <api-key>' \
--header 'client_secret: <api-key>'import requests
url = "https://api.usecobalt.com/v1/insurance-providers"
headers = {
"client_id": "<api-key>",
"client_secret": "<api-key>",
"access_token": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {client_id: '<api-key>', client_secret: '<api-key>', access_token: '<api-key>'}
};
fetch('https://api.usecobalt.com/v1/insurance-providers', 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.usecobalt.com/v1/insurance-providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"access_token: <api-key>",
"client_id: <api-key>",
"client_secret: <api-key>"
],
]);
$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.usecobalt.com/v1/insurance-providers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("client_id", "<api-key>")
req.Header.Add("client_secret", "<api-key>")
req.Header.Add("access_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.usecobalt.com/v1/insurance-providers")
.header("client_id", "<api-key>")
.header("client_secret", "<api-key>")
.header("access_token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usecobalt.com/v1/insurance-providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["client_id"] = '<api-key>'
request["client_secret"] = '<api-key>'
request["access_token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"insurance_providers": [
{
"id": "<string>",
"name": "<string>",
"ehr_id": "<string>",
"payer_id": "<string>",
"class_code": "<string>",
"type_code": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"active": "<string>"
}
],
"pagination": {
"current_page": 123,
"total_pages": 123,
"total_count": 123,
"page_size": 123
}
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "<string>"
}Insurance
Get Insurance Providers
Retrieve insurance providers from the EMR system.
GET
/
insurance-providers
List insurance providers
curl --request GET \
--url https://api.usecobalt.com/v1/insurance-providers \
--header 'access_token: <api-key>' \
--header 'client_id: <api-key>' \
--header 'client_secret: <api-key>'import requests
url = "https://api.usecobalt.com/v1/insurance-providers"
headers = {
"client_id": "<api-key>",
"client_secret": "<api-key>",
"access_token": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {client_id: '<api-key>', client_secret: '<api-key>', access_token: '<api-key>'}
};
fetch('https://api.usecobalt.com/v1/insurance-providers', 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.usecobalt.com/v1/insurance-providers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"access_token: <api-key>",
"client_id: <api-key>",
"client_secret: <api-key>"
],
]);
$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.usecobalt.com/v1/insurance-providers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("client_id", "<api-key>")
req.Header.Add("client_secret", "<api-key>")
req.Header.Add("access_token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.usecobalt.com/v1/insurance-providers")
.header("client_id", "<api-key>")
.header("client_secret", "<api-key>")
.header("access_token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usecobalt.com/v1/insurance-providers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["client_id"] = '<api-key>'
request["client_secret"] = '<api-key>'
request["access_token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"insurance_providers": [
{
"id": "<string>",
"name": "<string>",
"ehr_id": "<string>",
"payer_id": "<string>",
"class_code": "<string>",
"type_code": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"active": "<string>"
}
],
"pagination": {
"current_page": 123,
"total_pages": 123,
"total_count": 123,
"page_size": 123
}
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "<string>"
}Use Cases
- Get the correct
insurance_provider_idbefore adding patient insurance - Search providers by name for autocomplete functionality
- Display paginated lists of insurance options to end users
- Filter providers by active status
Query Parameters
- name (string, optional): Filter by provider name (case-insensitive partial match)
- page (integer, optional): Page number (default: 1, min: 1)
- page_size (integer, optional): Items per page (default: 100, max: 100)
- active (boolean, optional): Filter by active status (true/false)
- ehr_id (string): Filter by EMR system’s identifier.
Example Requests
Get First Page
curl -X GET "https://api.usecobalt.com/v1/insurance-providers" \
-H "client_id: your_client_id" \
-H "client_secret: your_client_secret" \
-H "access_token: your_access_token"
Search by Name
curl -X GET "https://api.usecobalt.com/v1/insurance-providers?name=blue%20cross" \
-H "client_id: your_client_id" \
-H "client_secret: your_client_secret" \
-H "access_token: your_access_token"
Get Page 2 with 50 Items
curl -X GET "https://api.usecobalt.com/v1/insurance-providers?page=2&page_size=50" \
-H "client_id: your_client_id" \
-H "client_secret: your_client_secret" \
-H "access_token: your_access_token"
Filter Active Providers
curl -X GET "https://api.usecobalt.com/v1/insurance-providers?active=true" \
-H "client_id: your_client_id" \
-H "client_secret: your_client_secret" \
-H "access_token: your_access_token"
Example Response
{
"success": true,
"insurance_providers": [
{
"id": "abc123def456",
"name": "AHMC Health",
"payer_id": "98999",
"active": true,
"created_at": "2025-01-01T10:00:00.000Z"
},
{
"id": "xyz789ghi012",
"name": "Blue Cross Blue Shield",
"payer_id": "12345",
"active": true,
"created_at": "2025-01-01T10:00:00.000Z"
}
],
"pagination": {
"current_page": 1,
"total_pages": 5,
"total_count": 450,
"page_size": 100
}
}
Response Fields
Top-Level Fields
- success (boolean): Whether the request was successful
- insurance_providers (array): Array of insurance provider objects
- pagination (object): Pagination metadata
Insurance Provider Object
- id (string): Cobalt insurance provider ID - use this value in
POST /v1/patients/:patient_mrn/insurances - name (string): Insurance provider name as it appears in the EMR system
- payer_id (string): Insurance payer ID
- active (boolean): Whether the provider is currently active
- created_at (string): ISO 8601 timestamp of when the provider was added
Pagination Object
- current_page (integer): Current page number
- total_pages (integer): Total number of pages
- total_count (integer): Total number of providers matching the filter
- page_size (integer): Number of items per page
When adding patient insurance, using the
insurance_provider_id from this endpoint is the most reliable method for identifying the insurance provider.Authorizations
Query Parameters
Filter by insurance provider name (case-insensitive partial match).
Filter by the provider’s EHR ID.
Filter by active status.
Available options:
true, false Page number.
Required range:
x >= 1Items per page (max 100).
Required range:
1 <= x <= 100