List custom roles

GET
/api/v2/roles

Get a complete list of custom roles. Custom roles let you create flexible policies providing fine-grained access control to everything in LaunchDarkly, from feature flags to goals, environments, and teams. With custom roles, it’s possible to enforce access policies that meet your exact workflow needs. Custom roles are available to customers on our enterprise plans. If you’re interested in learning more about our enterprise plans, contact sales@launchdarkly.com.

Query parameters

limitlongOptional

The maximum number of custom roles to return. Defaults to 20.

offsetlongOptional

Where to start in the list. Defaults to 0. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query limit.

Response

Custom roles collection response

itemslist of objects

An array of custom roles

totalCountintegerOptional

The total number of custom roles

Errors

Built with