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)
- Productionhttps://api.brex.com/v2/roles
- Staging (Note: This is not a sandbox. It will not work with customer tokens.)https://api-staging.brex.com/v2/roles
curl -i -X GET \
https://api.brex.com/v2/roles \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
{ "next_cursor": "string", "items": [ { … } ] }