GET /accounts/me
curl --request GET \
--url https://api.example.test/accounts/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.test/accounts/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.test/accounts/me', 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/accounts/me",
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.example.test/accounts/me"
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.example.test/accounts/me")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.test/accounts/me")
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{
"account": {
"avatar_url_large": "<string>",
"avatar_url_medium": "<string>",
"avatar_url_small": "<string>",
"certified_information": true,
"consultations_count": 123,
"email": "jsmith@example.com",
"eprescription_enabled": true,
"account_setup_completed": true,
"id": 123,
"role": "<string>",
"links": {
"response_templates": "<string>",
"physician_specialty": "<string>",
"location": "<string>"
},
"logo_url_large": "<string>",
"logo_url_medium": "<string>",
"name": "<string>",
"username": "<string>",
"office_state_id": 123,
"people_count": 123,
"survey_answered": true,
"physician_institution": null,
"physician_license": null,
"physician_specialty_id": 123,
"configuration": {
"locale": "<string>",
"schedule": {
"fri": [
"<string>"
],
"mon": [
"<string>"
],
"thu": [
"<string>"
],
"tue": [
"<string>"
],
"wed": [
"<string>"
],
"weeks_limit": {
"id": 123,
"time": 123,
"interval": "<string>"
},
"consultation_duration": 123
},
"timezone": "<string>",
"consultation": {
"odontogram": true,
"physical_exam": true,
"physiotherapy": true,
"treatment_plan": true
},
"custom_forms": {
"consultation": {
"vital_signs_elements": {
"height": true,
"weight": true,
"systole": true,
"diastole": true,
"body_mass": true,
"heart_rate": true,
"temperature": true,
"lean_body_mass": true,
"respiratory_rate": true,
"oxygen_saturation": true,
"head_circumference": true,
"body_fat_percentage": true
}
},
"medical_history": {
"diet": true,
"perinatal": true,
"postnatal": true,
"psychiatric": true,
"vaccines_mx": true,
"pathological": true,
"heredo_familial": true,
"non_pathological": true,
"gineco_obstetrics": true
}
},
"custom_roles": {
"administrator": true
},
"weekly_email": true,
"prescription_copy": true,
"interface_language": "<string>",
"prescription_template": "<string>",
"skip_cellphone_verification": true,
"assistant_has_charges_access": true,
"assistant_has_clinical_access": true
},
"settings": {},
"frequent_consultation_causes": [
"<unknown>"
],
"created_at": "2023-11-07T05:31:56Z",
"pending_confirmation_email": "jsmith@example.com",
"cellphone": "<string>",
"cellphone_verified": true,
"cellphone_country_id": 123,
"affiliation_id": 123,
"signature": "<string>",
"professional_standard": {},
"sis_type_of_staff": null,
"sis_specify_type_of_staff": null,
"referral_token": "<string>",
"should_reset_password": true,
"referral_token_meta": null,
"metadata": {
"campaign": {
"utm_term": null,
"utm_medium": null,
"utm_source": null,
"utm_content": null,
"utm_campaign": null
},
"referral_token": null
},
"temporary_schedules_expired": null,
"new_patients_count": 123,
"appointments_count": 123,
"bio": null,
"tax_rfc": null
}
}Authentication and accounts
GET /accounts/me
GET
/
accounts
/
me
GET /accounts/me
curl --request GET \
--url https://api.example.test/accounts/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.test/accounts/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.test/accounts/me', 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/accounts/me",
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.example.test/accounts/me"
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.example.test/accounts/me")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.test/accounts/me")
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{
"account": {
"avatar_url_large": "<string>",
"avatar_url_medium": "<string>",
"avatar_url_small": "<string>",
"certified_information": true,
"consultations_count": 123,
"email": "jsmith@example.com",
"eprescription_enabled": true,
"account_setup_completed": true,
"id": 123,
"role": "<string>",
"links": {
"response_templates": "<string>",
"physician_specialty": "<string>",
"location": "<string>"
},
"logo_url_large": "<string>",
"logo_url_medium": "<string>",
"name": "<string>",
"username": "<string>",
"office_state_id": 123,
"people_count": 123,
"survey_answered": true,
"physician_institution": null,
"physician_license": null,
"physician_specialty_id": 123,
"configuration": {
"locale": "<string>",
"schedule": {
"fri": [
"<string>"
],
"mon": [
"<string>"
],
"thu": [
"<string>"
],
"tue": [
"<string>"
],
"wed": [
"<string>"
],
"weeks_limit": {
"id": 123,
"time": 123,
"interval": "<string>"
},
"consultation_duration": 123
},
"timezone": "<string>",
"consultation": {
"odontogram": true,
"physical_exam": true,
"physiotherapy": true,
"treatment_plan": true
},
"custom_forms": {
"consultation": {
"vital_signs_elements": {
"height": true,
"weight": true,
"systole": true,
"diastole": true,
"body_mass": true,
"heart_rate": true,
"temperature": true,
"lean_body_mass": true,
"respiratory_rate": true,
"oxygen_saturation": true,
"head_circumference": true,
"body_fat_percentage": true
}
},
"medical_history": {
"diet": true,
"perinatal": true,
"postnatal": true,
"psychiatric": true,
"vaccines_mx": true,
"pathological": true,
"heredo_familial": true,
"non_pathological": true,
"gineco_obstetrics": true
}
},
"custom_roles": {
"administrator": true
},
"weekly_email": true,
"prescription_copy": true,
"interface_language": "<string>",
"prescription_template": "<string>",
"skip_cellphone_verification": true,
"assistant_has_charges_access": true,
"assistant_has_clinical_access": true
},
"settings": {},
"frequent_consultation_causes": [
"<unknown>"
],
"created_at": "2023-11-07T05:31:56Z",
"pending_confirmation_email": "jsmith@example.com",
"cellphone": "<string>",
"cellphone_verified": true,
"cellphone_country_id": 123,
"affiliation_id": 123,
"signature": "<string>",
"professional_standard": {},
"sis_type_of_staff": null,
"sis_specify_type_of_staff": null,
"referral_token": "<string>",
"should_reset_password": true,
"referral_token_meta": null,
"metadata": {
"campaign": {
"utm_term": null,
"utm_medium": null,
"utm_source": null,
"utm_content": null,
"utm_campaign": null
},
"referral_token": null
},
"temporary_schedules_expired": null,
"new_patients_count": 123,
"appointments_count": 123,
"bio": null,
"tax_rfc": null
}
}⌘I