Skip to main content

Get Roles

Get list of roles.

caution

This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the List Objects endpoint instead.

Endpoint

GET /v1/roles

Request

curl "https://api.warrant.dev/v1/roles" \
-H "Authorization: ApiKey YOUR_KEY"

Response

[
{
"roleId": "admin"
},
{
"roleId": "owner"
},
{
"roleId": "role2"
}
]