Skip to main content
POST

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Body

application/json
name
string
required

Name shown to the user

Maximum string length: 255
Example:

"Loop Agent"

key
string

Lowercase letters, digits and underscores; derived from the name when omitted

Maximum string length: 255
Example:

"loop_agent"

product_key
string

Optional; when given, every scope must belong to this product and at least one scope is required

Example:

"loop"

scopes
string[]

Scope keys, all from the same product; omit for a role with no access yet

Example:

Response

Role created

success
boolean
Example:

true

message
string
Example:

"Workspace role created"

data
object