Skip to content

List roles

Request

This endpoint lists the custom roles defined for the account. A page can contain fewer roles than limit, or none, while next_cursor is still set. Keep requesting the next page until next_cursor is null, even when items is empty.

Security
OAuth2(Required scopes: roles.readonly) or OAuth2(Required scopes: roles)
Query
cursorstring or null
limitinteger or null, (int32)
curl -i -X GET \
  https://api.brex.com/v2/roles \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

listRoles 200 response

Bodyapplication/json
next_cursorstring or null
itemsArray of objects(RoleResponse)required
Response
{ "next_cursor": "string", "items": [ { … } ] }