---
title: "Create a role"
slug: "create-a-role-1"
updated: 2025-07-13T08:17:48Z
published: 2025-07-13T08:17:48Z
canonical: "developers.torq.io/create-a-role-1"
---
> ## Documentation Index
> Fetch the complete documentation index at: https://developers.torq.io/llms.txt
> Use this file to discover all available pages before exploring further.
# Create a role
Post/v1alpha/roles
Creates a new role.
SecurityHTTPType bearer
Body parametersobject role_namestring
The name of the role being created. The name must be unique within the workspace.
role_descriptionstring
The description of the role being created.
scope_names Array of string
The permissions (scopes) to assign to the new role. For a full list of scopes, run the 'List roles' call or refer to our [documentation](https://kb.torq.io/en/articles/9145806-torq-roles-and-scopes-managing-access-and-permissions).
string
Responses200
A successful response.
Expand Allobject roleobject (apirolesv1alphaRole)
Role object
idstring (uuid)
The unique identifier of the role.
Example74e19393-3e94-48d2-8b60-26f2d2665942
namestring
The name of the role.
descriptionstring
The description of the role.
scope_names Array of string
The permissions (scopes) assigned to the role.
string
is_customboolean
The indication if the role is custom or not. This is 'true' if the role is a custom role.
201
Role created successfully.
object
400
Invalid request format or parameters.
object
401
Invalid bearer token. If you receive this message more than once try creating a new Client ID/Client Secret or generating a new bearer token.
object
403
You don't have permission to access this resource.
object
429
Resource exhausted.
object