Show public organization branding
curl --request GET \
--url https://api.example.test/api/v1/sites/organizations/{id}import requests
url = "https://api.example.test/api/v1/sites/organizations/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.test/api/v1/sites/organizations/{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.example.test/api/v1/sites/organizations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.test/api/v1/sites/organizations/{id}"
req, _ := http.NewRequest("GET", url, nil)
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.example.test/api/v1/sites/organizations/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.test/api/v1/sites/organizations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "123",
"type": "organization",
"attributes": {
"name": "Demo Clinic",
"slug": "demo-clinic",
"landing_page_info": {},
"telehealth_request_slug": "demo-video",
"agenda": true,
"agenda_pro": false,
"email": "doctor@example.test",
"image_url": "https://s3.amazonaws.com/synthetic-assets/accounts/logos/000/000/456/original/doctor-logo.png",
"office_address": "123 Synthetic Avenue",
"office_city": "Test City",
"office_country": "MX",
"office_state": "Synthetic State",
"office_telephone": "+52 555 0100",
"office_zipcode": "01000",
"slug_organization_portal": "c/demo-doctor",
"template": 1,
"logo": "https://s3.amazonaws.com/synthetic-assets/images/images/000/000/789/medium/clinic-logo.png",
"main_color": "#1166aa",
"title": {},
"description": {},
"header": {},
"subheader": {},
"disclaimer": {},
"header_img": {},
"phone": {},
"telehealth_description": {},
"telehealth_image": {},
"schedule": {},
"services": {},
"about_us_practice": {},
"photo": {},
"about_organization_info": {},
"social_networks": {},
"configuration": {},
"secondary_color": {},
"clinic_gallery": {},
"latitud": {},
"longitud": {},
"header_services": {}
},
"relationships": {
"accounts": {
"data": [
{
"id": "456",
"type": "account"
}
]
}
}
}
}{
"error": "Not found"
}Sites
Show public organization branding
Resolves public organization branding by encoded slug or encoded custom domain, with plain slug or host fallback. Linked accounts are ordered by account ID.
GET
/
api
/
v1
/
sites
/
organizations
/
{id}
Show public organization branding
curl --request GET \
--url https://api.example.test/api/v1/sites/organizations/{id}import requests
url = "https://api.example.test/api/v1/sites/organizations/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.test/api/v1/sites/organizations/{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.example.test/api/v1/sites/organizations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.test/api/v1/sites/organizations/{id}"
req, _ := http.NewRequest("GET", url, nil)
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.example.test/api/v1/sites/organizations/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.test/api/v1/sites/organizations/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"id": "123",
"type": "organization",
"attributes": {
"name": "Demo Clinic",
"slug": "demo-clinic",
"landing_page_info": {},
"telehealth_request_slug": "demo-video",
"agenda": true,
"agenda_pro": false,
"email": "doctor@example.test",
"image_url": "https://s3.amazonaws.com/synthetic-assets/accounts/logos/000/000/456/original/doctor-logo.png",
"office_address": "123 Synthetic Avenue",
"office_city": "Test City",
"office_country": "MX",
"office_state": "Synthetic State",
"office_telephone": "+52 555 0100",
"office_zipcode": "01000",
"slug_organization_portal": "c/demo-doctor",
"template": 1,
"logo": "https://s3.amazonaws.com/synthetic-assets/images/images/000/000/789/medium/clinic-logo.png",
"main_color": "#1166aa",
"title": {},
"description": {},
"header": {},
"subheader": {},
"disclaimer": {},
"header_img": {},
"phone": {},
"telehealth_description": {},
"telehealth_image": {},
"schedule": {},
"services": {},
"about_us_practice": {},
"photo": {},
"about_organization_info": {},
"social_networks": {},
"configuration": {},
"secondary_color": {},
"clinic_gallery": {},
"latitud": {},
"longitud": {},
"header_services": {}
},
"relationships": {
"accounts": {
"data": [
{
"id": "456",
"type": "account"
}
]
}
}
}
}{
"error": "Not found"
}⌘I