cURL
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" } ] }
Retrieve pharmacies from the EMR system for your organization.
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"
{ "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" } ] }
Successful response
Show child attributes