Get the caller's profile
curl --request GET \
--url https://api.next.orenda.finance/v1/access-management/me \
--header 'Authorization: Bearer <token>' \
--header 'x-program-id: <api-key>'const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'x-program-id': '<api-key>'}
};
fetch('https://api.next.orenda.finance/v1/access-management/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.next.orenda.finance/v1/access-management/me"
headers = {
"Authorization": "Bearer <token>",
"x-program-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"type": "BO_USER",
"profile": {
"userId": "usr_6a3b9c2d",
"email": "ada.lovelace@example.com",
"identity": "ada.lovelace@example.com",
"roleAlias": "ADMIN",
"roleId": "role_admin",
"programId": "prog_orenda_eu"
}
}
}Introspection
Get the caller's profile
Returns the caller’s profile and role. For a back-office user the response carries type: "BO_USER"; for a software user the response carries type: "SOFTWARE_USER".
GET
/
v1
/
access-management
/
me
Get the caller's profile
curl --request GET \
--url https://api.next.orenda.finance/v1/access-management/me \
--header 'Authorization: Bearer <token>' \
--header 'x-program-id: <api-key>'const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'x-program-id': '<api-key>'}
};
fetch('https://api.next.orenda.finance/v1/access-management/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.next.orenda.finance/v1/access-management/me"
headers = {
"Authorization": "Bearer <token>",
"x-program-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"type": "BO_USER",
"profile": {
"userId": "usr_6a3b9c2d",
"email": "ada.lovelace@example.com",
"identity": "ada.lovelace@example.com",
"roleAlias": "ADMIN",
"roleId": "role_admin",
"programId": "prog_orenda_eu"
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The program the request acts on.
⌘I