Get the currently authenticated user
curl --request GET \
--url https://dashboard.hologram.io/api/1/users/me/ \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dashboard.hologram.io/api/1/users/me/"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://dashboard.hologram.io/api/1/users/me/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://dashboard.hologram.io/api/1/users/me/';
const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"data": {
"id": 123,
"email": "jsmith@example.com",
"first": "<string>",
"last": "<string>",
"role": "<string>",
"partnerid": 123,
"registered": "2023-11-07T05:31:56Z",
"is_verified": 0,
"has_password": 0,
"defaultaddressid": 123,
"deleted": 0,
"personal_org": 123,
"impersonated_by": {}
}
}Personal account
Get the currently authenticated user
GET
/
users
/
me
/
Get the currently authenticated user
curl --request GET \
--url https://dashboard.hologram.io/api/1/users/me/ \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dashboard.hologram.io/api/1/users/me/"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://dashboard.hologram.io/api/1/users/me/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://dashboard.hologram.io/api/1/users/me/';
const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"data": {
"id": 123,
"email": "jsmith@example.com",
"first": "<string>",
"last": "<string>",
"role": "<string>",
"partnerid": 123,
"registered": "2023-11-07T05:31:56Z",
"is_verified": 0,
"has_password": 0,
"defaultaddressid": 123,
"deleted": 0,
"personal_org": 123,
"impersonated_by": {}
}
}Authorizations
HTTP Basic authentication using API keys. Set the username to apikey and the password to your API key. You can find your API key on the Hologram Dashboard under Account Settings.
Was this page helpful?