Skip to main content

Get a Role by Id

Get a specific role by its roleId.

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 Get Object endpoint instead.

Endpoint

GET /v1/roles/:roleId

Parameters

ParameterDescriptionTypeRequired
roleIdId of the role to retrieve.URL paramyes

Request

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

Response

{
"roleId": "admin",
"name": "Admin",
"desciption": "Grants a user admin access to the application"
}