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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

x-program-id
string
header
required

The program the request acts on.

Response

The caller's profile

success
boolean
Example:

true

data
object