Practices
Get practice
Returns details for one practice available to the authenticated account.
GET
/
api
/
practices
/
{id}
/
Get practice
curl --request GET \
--url https://api.prod.peerlogic.com/api/practices/{id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.peerlogic.com/api/practices/{id}/"
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/{id}/', 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/{id}/",
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/{id}/"
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/{id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.peerlogic.com/api/practices/{id}/")
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{
"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."
}{
"detail": "The practice was not found."
}Authorizations
Bearer access token issued by Peerlogic.
Path Parameters
Practice ID.
Response
The requested practice.
A customer practice or location available to the authenticated account.
Unique practice ID.
Example:
"practice_phoenix"
Practice name.
Example:
"Example Veterinary Group - Phoenix"
Whether the practice is active.
ID of the organization that contains the practice.
Example:
"org_123"
Configured industry value.
High-level industry type, such as dental or veterinary.
Configured practice specialization.
IANA timezone used by the practice.
Example:
"America/Phoenix"
Primary practice phone number.
Was this page helpful?
Get practice
curl --request GET \
--url https://api.prod.peerlogic.com/api/practices/{id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.prod.peerlogic.com/api/practices/{id}/"
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/{id}/', 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/{id}/",
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/{id}/"
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/{id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prod.peerlogic.com/api/practices/{id}/")
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{
"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."
}{
"detail": "The practice was not found."
}