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>"
}

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

Claims and programs

success
boolean
Example:

true

data
object