Skip to main content
GET
/
pharmacies
List pharmacies
curl --request GET \
  --url https://api.usecobalt.com/v1/pharmacies \
  --header 'access_token: <api-key>' \
  --header 'client_id: <api-key>' \
  --header 'client_secret: <api-key>'
{
  "success": true,
  "pharmacies": [
    {
      "id": "<string>",
      "ehr_id": "<string>",
      "name": "<string>",
      "address": {
        "address1": "<string>",
        "city": "<string>",
        "state": "<string>",
        "zip": "<string>"
      },
      "phone": "<string>",
      "email": "<string>",
      "status": "active"
    }
  ]
}

Example Request

curl -X GET "https://api.usecobalt.com/v1/pharmacies" \
  -H "client_id: your_client_id" \
  -H "client_secret: your_client_secret" \
  -H "access_token: your_access_token"

Example Response

{
  "success": true,
  "pharmacies": [
    {
      "id": "abc123def456ghi789",
      "ehr_id": "12345",
      "name": "Main Street Pharmacy",
      "address": {
        "address1": "123 Main St",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94102"
      },
      "phone": "(415) 555-0123",
      "email": "[email protected]",
      "status": "active"
    },
    {
      "id": "xyz789ghi012jkl345",
      "ehr_id": "67890",
      "name": "Downtown Medical Pharmacy",
      "address": {
        "address1": "456 Market St",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94105"
      },
      "phone": "(415) 555-0456",
      "email": "[email protected]",
      "status": "active"
    }
  ]
}

Response Fields

Top-Level Fields

  • success (boolean): Whether the request was successful
  • pharmacies (array): Array of pharmacy objects for the organization

Pharmacy Object

  • id (string): Cobalt pharmacy ID (UUID without dashes)
  • ehr_id (string): The pharmacy ID as it appears in the EMR system
  • name (string): Pharmacy name
  • address (object): Pharmacy address information
    • address1 (string): Street address
    • city (string): City name
    • state (string): State abbreviation
    • zip (string): ZIP code
  • phone (string): Contact phone number
  • email (string): Contact email address
  • status (string): Pharmacy status - either “active” or “inactive”

Authorizations

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

Response

Successful response

success
boolean
pharmacies
object[]