cURL
curl --request GET \ --url https://api-sandbox.rinne.com.br/core/v1/roles \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793", "name": "admin", "permissions": [ "user.create", "user.read", "role.create" ], "created_at": "2024-01-01T00:00:00.000Z", "updated_at": "2024-01-01T00:00:00.000Z", "description": "Administrator role with full access", "company_id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2793", "organization_id": "a3dbd0c2-9f79-4f86-8caa-47779b3f2794" } ], "pagination": { "page": 1, "limit": 20, "total": 50, "totalPages": 3, "hasNext": true, "hasPrev": false } }
Returns a paginated list of roles with optional filters
JWT token for user authentication
Page number for pagination
x >= 1
Number of roles per page
1 <= x <= 100
Filter by role name (partial match)
Filter by company ID
Paginated list of roles
Show child attributes