POST
Create a custom role

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Body

application/json
name
string
required
Required string length: 1 - 64
permissions
string[]
required
Minimum array length: 1
description
string
Maximum string length: 500

Response

Created.

id
string<uuid>
required
name
string
required
description
string
required
permissions
string[]
required
member_count
integer
required
created_at
string<date-time>
required
updated_at
string<date-time>
required