Every pharmacy this key's workspace can reach through an active listing connection.
curl --request GET \
--url https://api.clinikehr.com/v1/v1/listings/pharmacies \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.clinikehr.com/v1/v1/listings/pharmacies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.clinikehr.com/v1/v1/listings/pharmacies', 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.clinikehr.com/v1/v1/listings/pharmacies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.clinikehr.com/v1/v1/listings/pharmacies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.clinikehr.com/v1/v1/listings/pharmacies")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clinikehr.com/v1/v1/listings/pharmacies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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>"
}
]
}API reference
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
Every pharmacy this key's workspace can reach through an active listing connection.
curl --request GET \
--url https://api.clinikehr.com/v1/v1/listings/pharmacies \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.clinikehr.com/v1/v1/listings/pharmacies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.clinikehr.com/v1/v1/listings/pharmacies', 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.clinikehr.com/v1/v1/listings/pharmacies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.clinikehr.com/v1/v1/listings/pharmacies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.clinikehr.com/v1/v1/listings/pharmacies")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clinikehr.com/v1/v1/listings/pharmacies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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.