Search the orderable catalog
curl --request POST \
--url https://api.usecobalt.com/v1/orders/catalog/fetch \
--header 'Content-Type: application/json' \
--header 'access_token: <api-key>' \
--header 'client_id: <api-key>' \
--header 'client_secret: <api-key>' \
--data '
{
"type": "lab",
"query": "glucose",
"page": 123,
"page_size": 123,
"callback_urls": [
"<string>"
]
}
'import requests
url = "https://api.usecobalt.com/v1/orders/catalog/fetch"
payload = {
"type": "lab",
"query": "glucose",
"page": 123,
"page_size": 123,
"callback_urls": ["<string>"]
}
headers = {
"client_id": "<api-key>",
"client_secret": "<api-key>",
"access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
client_id: '<api-key>',
client_secret: '<api-key>',
access_token: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'lab',
query: 'glucose',
page: 123,
page_size: 123,
callback_urls: ['<string>']
})
};
fetch('https://api.usecobalt.com/v1/orders/catalog/fetch', 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/orders/catalog/fetch",
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([
'type' => 'lab',
'query' => 'glucose',
'page' => 123,
'page_size' => 123,
'callback_urls' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.usecobalt.com/v1/orders/catalog/fetch"
payload := strings.NewReader("{\n \"type\": \"lab\",\n \"query\": \"glucose\",\n \"page\": 123,\n \"page_size\": 123,\n \"callback_urls\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("client_id", "<api-key>")
req.Header.Add("client_secret", "<api-key>")
req.Header.Add("access_token", "<api-key>")
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.usecobalt.com/v1/orders/catalog/fetch")
.header("client_id", "<api-key>")
.header("client_secret", "<api-key>")
.header("access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"lab\",\n \"query\": \"glucose\",\n \"page\": 123,\n \"page_size\": 123,\n \"callback_urls\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usecobalt.com/v1/orders/catalog/fetch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["client_id"] = '<api-key>'
request["client_secret"] = '<api-key>'
request["access_token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"lab\",\n \"query\": \"glucose\",\n \"page\": 123,\n \"page_size\": 123,\n \"callback_urls\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": "<string>",
"message": "<string>",
"job_id": "<string>"
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "<string>"
}Orders
Search Order Catalog
Searches the practice’s orderable lab, imaging, or procedure catalog.
POST
/
orders
/
catalog
/
fetch
Search the orderable catalog
curl --request POST \
--url https://api.usecobalt.com/v1/orders/catalog/fetch \
--header 'Content-Type: application/json' \
--header 'access_token: <api-key>' \
--header 'client_id: <api-key>' \
--header 'client_secret: <api-key>' \
--data '
{
"type": "lab",
"query": "glucose",
"page": 123,
"page_size": 123,
"callback_urls": [
"<string>"
]
}
'import requests
url = "https://api.usecobalt.com/v1/orders/catalog/fetch"
payload = {
"type": "lab",
"query": "glucose",
"page": 123,
"page_size": 123,
"callback_urls": ["<string>"]
}
headers = {
"client_id": "<api-key>",
"client_secret": "<api-key>",
"access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
client_id: '<api-key>',
client_secret: '<api-key>',
access_token: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'lab',
query: 'glucose',
page: 123,
page_size: 123,
callback_urls: ['<string>']
})
};
fetch('https://api.usecobalt.com/v1/orders/catalog/fetch', 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/orders/catalog/fetch",
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([
'type' => 'lab',
'query' => 'glucose',
'page' => 123,
'page_size' => 123,
'callback_urls' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.usecobalt.com/v1/orders/catalog/fetch"
payload := strings.NewReader("{\n \"type\": \"lab\",\n \"query\": \"glucose\",\n \"page\": 123,\n \"page_size\": 123,\n \"callback_urls\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("client_id", "<api-key>")
req.Header.Add("client_secret", "<api-key>")
req.Header.Add("access_token", "<api-key>")
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.usecobalt.com/v1/orders/catalog/fetch")
.header("client_id", "<api-key>")
.header("client_secret", "<api-key>")
.header("access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"lab\",\n \"query\": \"glucose\",\n \"page\": 123,\n \"page_size\": 123,\n \"callback_urls\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usecobalt.com/v1/orders/catalog/fetch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["client_id"] = '<api-key>'
request["client_secret"] = '<api-key>'
request["access_token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"lab\",\n \"query\": \"glucose\",\n \"page\": 123,\n \"page_size\": 123,\n \"callback_urls\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": "<string>",
"message": "<string>",
"job_id": "<string>"
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "<string>"
}Catalog searches run asynchronously against the live EMR: a valid request returns immediately with a
202, and an order_catalog.searched webhook is sent with the results when the search completes.
Use the item_id values from the results when creating an order via POST /v1/orders.
Searching the order catalog is only supported for eClinicalWorks.
Request Parameters
Required Fields
- type (string, required): Which catalog to search. One of
lab,imaging, orprocedure.
Optional Fields
- query (string, optional): Name filter (prefix or substring). Omit to page the full catalog.
- page (integer, optional): Page number (1-based). Defaults to
1. - page_size (integer, optional): Results per page. Defaults to
25. - callback_urls (string[], optional): URLs to receive the results webhook, in addition to the account webhook.
Example Request
curl -X POST https://api.usecobalt.com/v1/orders/catalog/fetch \
-H 'Content-Type: application/json' \
-H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \
-H 'client_secret: cs_live_9827hofdsklOYYHJLJh' \
-H 'access_token: 493JKLHIU98789hLKH9HHJH' \
-d '{
"type": "lab",
"query": "glucose",
"page": 1,
"page_size": 25
}'
Example Response
{
"success": true,
"status": "queued",
"message": "Catalog search started. A order_catalog.searched webhook will be sent when it completes.",
"job_id": 12345
}
Webhook Notifications
When the search completes, we send anorder_catalog.searched webhook to your registered endpoint:
{
"id": "evt_1J9X2q2eZvKYlo2CluR9g9gV",
"access_token_reference_id": "user_1J9X2q2eZvKYlo2Cxyz",
"object": "event",
"created": "2025-10-09T10:30:00Z",
"type": "order_catalog.searched",
"job_id": "12345",
"data": {
"type": "lab",
"page": 1,
"has_more": true,
"items": [
{
"item_id": "80048",
"name": "Comprehensive Metabolic Panel",
"billable": true
},
{
"item_id": "82947",
"name": "Glucose, Serum",
"billable": true
}
]
}
}
Authorizations
Body
application/json
Which orderable catalog to search.
Available options:
lab, imaging, procedure Example:
"lab"
Name filter (prefix / substring). Omit to page the full catalog.
Example:
"glucose"
Page number (1-based). Defaults to 1.
Results per page. Defaults to 25.
URLs to receive the results webhook, in addition to the account webhook.