List reachable pharmacies
curl --request GET \
--url https://api.clinikehr.com/v1/listings/pharmacies \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.clinikehr.com/v1/listings/pharmacies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.clinikehr.com/v1/listings/pharmacies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"clinic_id": "45715198-88e4-498c-8271-57e652c60246",
"display_name": "SANDBOX Pharmacy 01",
"address_line1": "1 Sandbox Close",
"address_line2": null,
"city": "Lagos",
"region": "Lagos",
"country": "NG",
"postal_code": "100001",
"pin": {
"lat": 6.51,
"lng": 3.31
},
"phone": "+2348000000001",
"hours": {
"monday": {
"open": "09:00",
"close": "18:00",
"is_closed": false
}
},
"open_now": true
}
],
"has_more": false,
"next_cursor": null
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}Pharmacy listings
List reachable pharmacies
Permission: listing.profile:read Every pharmacy this key’s workspace can reach through an active listing connection. No clinic in the path — the calling key’s organization must hold an ACTIVE connection granting listing.profile:read to each returned clinic; a clinic-owned key always gets an empty page. For a workspace TEST key this reads the workspace’s own seeded fictional pharmacies instead — the same shape either way. Never an exact quantity; profile fields only.
GET
/
v1
/
listings
/
pharmacies
List reachable pharmacies
curl --request GET \
--url https://api.clinikehr.com/v1/listings/pharmacies \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.clinikehr.com/v1/listings/pharmacies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.clinikehr.com/v1/listings/pharmacies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"clinic_id": "45715198-88e4-498c-8271-57e652c60246",
"display_name": "SANDBOX Pharmacy 01",
"address_line1": "1 Sandbox Close",
"address_line2": null,
"city": "Lagos",
"region": "Lagos",
"country": "NG",
"postal_code": "100001",
"pin": {
"lat": 6.51,
"lng": 3.31
},
"phone": "+2348000000001",
"hours": {
"monday": {
"open": "09:00",
"close": "18:00",
"is_closed": false
}
},
"open_now": true
}
],
"has_more": false,
"next_cursor": null
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.