Get a user by ID
curl --request GET \
--url https://dashboard.hologram.io/api/1/users/{userId}/ \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dashboard.hologram.io/api/1/users/{userId}/"
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/{userId}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://dashboard.hologram.io/api/1/users/{userId}/';
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": {},
"email_status": "CONFIRM_PENDING"
}
}Users
Get a user by ID
GET
/
users
/
{userId}
/
Get a user by ID
curl --request GET \
--url https://dashboard.hologram.io/api/1/users/{userId}/ \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://dashboard.hologram.io/api/1/users/{userId}/"
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/{userId}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://dashboard.hologram.io/api/1/users/{userId}/';
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": {},
"email_status": "CONFIRM_PENDING"
}
}Authorizations
Was this page helpful?