# Role templates Get a list of suggested role templates that can be used as starting points when creating custom roles. Returns static template suggestions with recommended capability combinations for common organizational needs. #### Path Parameters **`organization_id`** string required Organization ID (org_ prefixed string). ## Returns An array of role template objects, each with a name, description, and suggested capabilities. Request ```bash cURL curl "https://api.aitronos.com/v1/organizations/org_abc123/roles/templates" \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") templates = client.organizations.roles.templates( organization_id="org_abc123", ) for t in templates: print(t.name, t.capabilities) ``` ```python Python import requests response = requests.get( "https://api.aitronos.com/v1/organizations/org_abc123/roles/templates", headers={"Authorization": "Bearer YOUR_ACCESS_TOKEN"}, ) print(response.json()) ``` ```javascript JavaScript const response = await fetch( "https://api.aitronos.com/v1/organizations/org_abc123/roles/templates", { headers: { Authorization: "Bearer YOUR_ACCESS_TOKEN" }, } ); const templates = await response.json(); console.log(templates); ``` Response ```json 200 OK [ { "name": "Team Lead", "description": "Manage team members and view audit logs", "capabilities": ["manage_users", "invite_users", "view_audit_log"] }, { "name": "Content Manager", "description": "Manage knowledge and view audit logs", "capabilities": ["manage_knowledge_slices", "view_audit_log"] }, { "name": "HR Manager", "description": "Full user management within departments", "capabilities": [ "manage_users", "invite_users", "deactivate_users", "remove_users", "manage_departments", "view_audit_log" ] } ] ``` ## Related Resources - [Create custom role](/docs/api-reference/organizations/roles/create-role) - [List capabilities](/docs/api-reference/organizations/roles/capabilities) - [Retrieve role](/docs/api-reference/organizations/roles/retrieve)