List the caller's programs and permissions
curl --request GET \
--url https://api.next.orenda.finance/v1/access-management/program-claims \
--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/program-claims', 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/program-claims"
headers = {
"Authorization": "Bearer <token>",
"x-program-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"claims": {
"access-management:read": true,
"access-management:write": true,
"invites:create": true,
"*": false
},
"programs": [
{
"programId": "prog_orenda_eu",
"name": "Orenda EU",
"region": "eu-west-1"
}
]
}
}{
"success": false,
"code": "<string>",
"message": "<string>"
}Introspection
List the caller's programs and permissions
Returns the permission claims the caller holds (a * claim means all) and the programs they can act on. This endpoint does not require the x-program-id header.
GET
/
v1
/
access-management
/
program-claims
List the caller's programs and permissions
curl --request GET \
--url https://api.next.orenda.finance/v1/access-management/program-claims \
--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/program-claims', 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/program-claims"
headers = {
"Authorization": "Bearer <token>",
"x-program-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"claims": {
"access-management:read": true,
"access-management:write": true,
"invites:create": true,
"*": false
},
"programs": [
{
"programId": "prog_orenda_eu",
"name": "Orenda EU",
"region": "eu-west-1"
}
]
}
}{
"success": false,
"code": "<string>",
"message": "<string>"
}⌘I