Create Role
Create a new role with specific permissions for your workspace.
POST
Headers
API key used for authenticating requests to the API.
Workspace identifier for the API.
Request Body
Name of the role (e.g., “Agent Manager”, “Viewer”).
Description of the role and its intended use.
Array of permission ID strings to assign to this role. Always required — pass an empty array
[] if no permissions are needed. Each item must be a plain string (e.g., "agent_view"), not an object. Use the List Permissions endpoint to retrieve available permission IDs.Array of user IDs to assign this role to.
Response Fields
Unique identifier for the created role.
Name of the role.
Description of the role.
Array of permission objects assigned to the role.
Workspace ID associated with the role.
Timestamp when the role was created.
