Skip to main content
POST

Headers

string
required
API key used for authenticating requests to the API.
string
required
Workspace identifier for the API.

Request Body

string
required
Name of the role (e.g., “Agent Manager”, “Viewer”).
string
Description of the role and its intended use.
array of strings
required
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
Array of user IDs to assign this role to.

Response Fields

string
Unique identifier for the created role.
string
Name of the role.
string
Description of the role.
array
Array of permission objects assigned to the role.
string
Workspace ID associated with the role.
string
Timestamp when the role was created.