Skip to main content
POST
Create a custom role

Authorizations

X-API-Key
string
header
required

Organization API key. Format: "hp_live_{key}". Organization admins manage the key in the dashboard.

Body

application/json
name
string
required

Role name, unique within your organization

Required string length: 1 - 60
Example:

"Payout Desk"

permissions
object
required
Example:
description
string

Optional description shown in the roles list

Maximum string length: 300
Example:

"Reviews and executes payouts only"

Response

Role created

success
boolean
Example:

true

data
object