Practices
List practices
Returns practices available to the authenticated account. Filter by organization, explicit practice IDs, or region IDs to select the locations needed by an integration.
GET
/
api
/
practices
/
List practices
curl --request GET \
--url https://api.prod.peerlogic.com/api/practices/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.peerlogic.com/api/practices/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.peerlogic.com/api/practices/', 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.prod.peerlogic.com/api/practices/",
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.prod.peerlogic.com/api/practices/"
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.prod.peerlogic.com/api/practices/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.peerlogic.com/api/practices/")
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{
"meta": {
"page": 1,
"page_total": 1,
"page_size": 50,
"results_total": 2
},
"links": {
"previous": "<string>",
"self": "<string>",
"next": "<string>"
},
"results": [
{
"id": "practice_phoenix",
"name": "Example Veterinary Group - Phoenix",
"active": true,
"organization_id": "org_123",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"industry": "<string>",
"industry_type": "<string>",
"industry_specialization": "<string>",
"address_line_1": "<string>",
"address_line_2": "<string>",
"city": "<string>",
"address_us_state": "<string>",
"postal_code": "<string>",
"timezone": "America/Phoenix",
"phone_number": "<string>",
"practice_email": "jsmith@example.com",
"manager_name": "<string>",
"manager_email": "jsmith@example.com",
"dba_or_brand_name": "<string>",
"legal_company_name": "<string>",
"business_entity_type": "<string>",
"business_website": "<string>",
"is_aimee_enabled": true,
"is_pms_enabled": true,
"are_alerts_enabled": true,
"are_marketing_insights_enabled": true,
"is_automatic_outreach_enabled": true,
"is_confirmation_and_reminders_enabled": true
}
]
}{
"detail": "'Authorization' header is required"
}{
"message": "No permissions assigned to permit access to this endpoint."
}Authorizations
Bearer access token issued by Peerlogic.
Query Parameters
Return practices in this organization.
Comma-separated practice IDs. Only practices available to the authenticated account are returned.
Comma-separated region IDs. A practice is returned when it belongs to any requested region and is available to the authenticated account.
Filter by a case-insensitive partial practice name match.
Search practice name, address, phone number, email, manager, brand, legal name, or website.
Filter by active status.
Page number.
Required range:
x >= 1Number of results per page.
Required range:
x >= 1Was this page helpful?
List practices
curl --request GET \
--url https://api.prod.peerlogic.com/api/practices/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.peerlogic.com/api/practices/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.prod.peerlogic.com/api/practices/', 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.prod.peerlogic.com/api/practices/",
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.prod.peerlogic.com/api/practices/"
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.prod.peerlogic.com/api/practices/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.peerlogic.com/api/practices/")
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{
"meta": {
"page": 1,
"page_total": 1,
"page_size": 50,
"results_total": 2
},
"links": {
"previous": "<string>",
"self": "<string>",
"next": "<string>"
},
"results": [
{
"id": "practice_phoenix",
"name": "Example Veterinary Group - Phoenix",
"active": true,
"organization_id": "org_123",
"created_at": "2023-11-07T05:31:56Z",
"modified_at": "2023-11-07T05:31:56Z",
"industry": "<string>",
"industry_type": "<string>",
"industry_specialization": "<string>",
"address_line_1": "<string>",
"address_line_2": "<string>",
"city": "<string>",
"address_us_state": "<string>",
"postal_code": "<string>",
"timezone": "America/Phoenix",
"phone_number": "<string>",
"practice_email": "jsmith@example.com",
"manager_name": "<string>",
"manager_email": "jsmith@example.com",
"dba_or_brand_name": "<string>",
"legal_company_name": "<string>",
"business_entity_type": "<string>",
"business_website": "<string>",
"is_aimee_enabled": true,
"is_pms_enabled": true,
"are_alerts_enabled": true,
"are_marketing_insights_enabled": true,
"is_automatic_outreach_enabled": true,
"is_confirmation_and_reminders_enabled": true
}
]
}{
"detail": "'Authorization' header is required"
}{
"message": "No permissions assigned to permit access to this endpoint."
}