List all roles
GET
/v1/roles
const url = 'https://api.varman.io/v1/roles';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.varman.io/v1/roles \ --header 'X-API-Key: <X-API-Key>'List all roles in Varman. Create custom roles and resolve permission sets for organization-level access control.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”List of roles
Media typeapplication/json
object
builtInRoles
Array<object>
object
name
string
isBuiltIn
boolean
description
string
customRoles
Array<object>
object
id
string
name
string
permissions
object
isBuiltIn
boolean
createdAt
string format: date-time
updatedAt
string format: date-time
Example generated
{ "builtInRoles": [ { "name": "example", "isBuiltIn": true, "description": "example" } ], "customRoles": [ { "id": "example", "name": "example", "permissions": {}, "isBuiltIn": true, "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z" } ]}Unauthorized