Skip to main content
GET
/
orders
Get Orders
curl --request GET \
  --url https://api.usecobalt.com/v1/orders \
  --header 'access_token: <api-key>' \
  --header 'client_id: <api-key>' \
  --header 'client_secret: <api-key>'
{
  "success": true,
  "orders": [
    {
      "order_id": "<string>",
      "order_name": "<string>",
      "order_date": "2023-12-25",
      "provider_id": "<string>",
      "patient_mrn": "<string>",
      "patient_name": "<string>",
      "patient_dob": "2023-12-25",
      "appointment_id": "<string>",
      "lab_results": {}
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.usecobalt.com/llms.txt

Use this file to discover all available pages before exploring further.

Example Request

curl -X GET https://api.usecobalt.com/v1/orders \
-H 'Content-Type: application/json' \
-H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \
-H 'client_secret: cs_live_9827hofdsklOYYHJLJh' \
-H 'access_token: 493JKLHIU98789hLKH9HHJH' \
-G \
--data-urlencode "patient_mrn=414421" \
--data-urlencode "start_date=2024-01-01" \
--data-urlencode "end_date=2024-03-31"

Example Response

{
    "success": true,
    "orders": [
        {
            "order_id": "ord_123456",
            "order_name": "Comprehensive Metabolic Panel",
            "order_date": "2024-02-15",
            "provider_id": "prov_789",
            "patient_mrn": "414421",
            "patient_name": "Jane Smith",
            "patient_dob": "1980-06-15",
            "appointment_id": "appt_456",
            "lab_results": null
        },
        {
            "order_id": "ord_789012",
            "order_name": "Chest X-Ray",
            "order_date": "2024-03-01",
            "provider_id": "prov_789",
            "patient_mrn": "414421",
            "patient_name": "Jane Smith",
            "patient_dob": "1980-06-15",
            "appointment_id": "appt_789",
            "lab_results": null
        }
    ]
}

Authorizations

client_id
string
header
required
client_secret
string
header
required
access_token
string
header
required

Query Parameters

patient_mrn
string
required

The medical record number of the patient

start_date
string<date>

Filter orders after this date (ISO 8601 format)

end_date
string<date>

Filter orders before this date (ISO 8601 format)

Response

200 - application/json

Successful response

success
boolean
orders
object[]