Get the Logged In User (Vet)
1 min
GET
/api/v1/auth/me
Query Parameters
- includestringDescription
Responses
200
- object
- dataMeDescription
- idintegerExample
- first_namestringExample
- last_namestringExample
- full_namestringExample
- emailstringExample
- name_with_titlestringExample
- video_linkstring
- profile_picturestringExample
- employeeobject
- idintegerExample
- chat_userChatUserDescription
- namestringExample
- uidstringExample
- is_activebooleanExampleDescription
- is_verifiedbooleanExampleDescription
- userobjectDescription
- clinicobject
- idintegerExample
- namestringExample
- logostringExample
- preferencesobject
- language_localestringExample
- timezonestringExample
- date_formatstringExample
- datetime_formatstringExample
- discount_reason_requiredstring
- hasClinicLegalInfobooleanExample
- hasOnlinePaymentEnabledbooleanExample
- chat_userChatUserDescription
- namestringExample
- uidstringExample
- is_activebooleanExampleDescription
- is_verifiedbooleanExampleDescription
- userobjectDescription
- care_credit_merchantobject
- idintegerExample
- is_activebooleanExample
curl
curl --request GET \
--url /api/v1/auth/me \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("/api/v1/auth/me", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("/api/v1/auth/me")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "/api/v1/auth/me"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful operation
{
"data": {
"id": 1,
"first_name": "Sarah",
"last_name": "Connolly",
"full_name": "Sarah Connolly",
"email": "[email protected]",
"name_with_title": "DVM Sarah Connolly",
"video_link": "",
"profile_picture": "https://dev-1-public-digitail.s3.eu-central-1.amazonaws.com/ionut/uploads/KXy8Rlv2vluiZYqwRCy2",
"employee": {
"id": 2,
"chat_user": {
"name": "DVM Sarah Connolly",
"uid": "e58ed763-928c-4155-bee9-fdbaaadc15f3",
"is_active": true,
"is_verified": true,
"user": {}
}
},
"clinic": {
"id": 766,
"name": "Animal Hospital of All Pets",
"logo": "https://dev-1-public-digitail.s3.eu-central-1.amazonaws.com/ionut/uploads/KXy8Rlv2vluiZYqwRCy2",
"preferences": {
"language_locale": "en-us",
"timezone": "America/New_York",
"date_format": "m-d-Y",
"datetime_format": "m-d-Y g:i A",
"discount_reason_required": ""
},
"hasClinicLegalInfo": true,
"hasOnlinePaymentEnabled": true,
"chat_user": {
"name": "DVM Sarah Connolly",
"uid": "e58ed763-928c-4155-bee9-fdbaaadc15f3",
"is_active": true,
"is_verified": true,
"user": {}
},
"care_credit_merchant": {
"id": 1,
"is_active": true
}
}
}
}