Digitail API
Clinics

Retrieve a Clinic

1min
code examples curl location globoff 'https //developer digitail io/api/v1/clinic/{id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //developer digitail io/api/v1/clinic/{id}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));import requests import json url = "https //developer digitail io/api/v1/clinic/{id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) \<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //developer digitail io/api/v1/clinic/{id}', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'get', curlopt httpheader => array( 'accept application/json', 'content type application/json' ), )); $response = curl exec($curl); curl close($curl); echo $response; responses // successful operation { "data" { "id" 1, "name" "animal hospital of all pets", "address" "yigal alon st 126, tel aviv yafo, 6744332, israel", "phone" "555 555 5555", "email" "clinic\@example com", "street" "yigal alon street", "street number" 126, "region" "tel aviv district", "timezone" "asia/jerusalem", "zip" 6744332, "country" { "id" 6, "name" "united states", "iso code" "us", "code" "usa", "language" { "id" 6, "name" "english (us)", "short name" "en us", "code" "en us" } }, "owner" { "id" 1, "first name" "john", "last name" "doe", "full name" "john doe", "name with title" "dr john doe", "email" "vet\@example com", "phone" "123456789", "avatar" "https //vet digitail io/images/profilepic jpg", "stamp" "https //vet digitail io/images/signature jpg", "license number" "123456789", "job title" "dr ", "deleted at" "", "active" true, "video link" "https //digitail com/video", "public appointment link" "https //digitail com/clinics/clinic slug/vet slug", "type" "", "two factor enabled" true, "has chat user" true, "colleague order" 1, "is visible on calendar" false, "employees" \[ { "clinic id" 0, "vet role id" 0, "is available for appointments" false, "is visible on calendar" false, "type" "" } ] }, "vets" \[ { "id" 1, "first name" "john", "last name" "doe", "full name" "john doe", "name with title" "dr john doe", "email" "vet\@example com", "phone" "123456789", "avatar" "https //vet digitail io/images/profilepic jpg", "stamp" "https //vet digitail io/images/signature jpg", "license number" "123456789", "job title" "dr ", "deleted at" "", "active" true, "video link" "https //digitail com/video", "public appointment link" "https //digitail com/clinics/clinic slug/vet slug", "type" "", "two factor enabled" true, "has chat user" true, "colleague order" 1, "is visible on calendar" false, "employees" \[ { "clinic id" 0, "vet role id" 0, "is available for appointments" false, "is visible on calendar" false, "type" "" } ] } ], "hasgroup" false, "group id" 0, "rooms" \[ { "id" 1, "clinic id" 1, "name" "consultation room 1" } ], "services" \[ { "id" 1, "category id" 1, "label" "general checkup", "translation slug" "services checkups general checkup", "label en" "general checkup", "service details" { "clinic id" 1, "service id" 1, "duration" 30, "visible" true, "color" "#ff0000", "order" 30, "printable files" \[ { "id" 0, "title" "" } ], "service packages" \[ { "id" 0, "name" "" } ] }, "task templates" \[ { "id" 0, "name" "" } ] } ], "reminders" \[ { "id" 1, "period" 2, "period type" 2, "notification type" 1 } ], "meetings link" "https //meetings example com", "token" "", "cash register notes" "", "sms enabled" 0, "appointment sms" 0, "appointment email" 0, "reminder appointment sms" 0, "reminder appointment email" 0, "reminder health plan sms" 0, "reminder health plan email" 0, "first availability not before" 0, "has intake" 0 } }// the request was invalid or contained data that was not allowed { "message" "requested filter(s) `filter1` are not allowed allowed filter(s) are date, query, " }// the authorization token is missing or invalid // the user is not authorized to perform the requested operation // the user has sent too many requests in a given amount of time ("rate limiting") max 200 requests per minute