CreatorHero
CreatorHero API

Dashboard Role API

Team roles: named sets of creator permissions given to team members. Requires the agency owner or a team admin.


List roles

GET
https://backend.creatorhero.com
/dashboard/api/v1/roles

Roles of the agency sorted by name, including the default roles (isDefault = true), each with its members and permissions. A permission applies to creatorId, or to every creator when assignToAllCreators is true.

List roles › Responses

200

Roles

Team role with its members and permissions
id
​integer · int64 · required

Role ID

name
​string · required

Role name

​TeamMemberDto[] · unique · required

Team members who have this role

​CreatorRolePermissionDto[] · unique · required

Creator permissions granted by this role

isDefault
​boolean

true for a default role: it cannot be renamed or deleted and its permissions cannot change


Get role

GET
https://backend.creatorhero.com
/dashboard/api/v1/roles/{id}

One role of the agency with its members and permissions.

Get role › path Parameters

id
​integer · int64 · required

id of the role

Get role › Responses

Role

Team role with its members and permissions
id
​integer · int64 · required

Role ID

name
​string · required

Role name

​TeamMemberDto[] · unique · required

Team members who have this role

​CreatorRolePermissionDto[] · unique · required

Creator permissions granted by this role

isDefault
​boolean

true for a default role: it cannot be renamed or deleted and its permissions cannot change


List permissions

GET
https://backend.creatorhero.com
/dashboard/api/v1/roles/permissions

All creator permissions: value is the permission used in the API, displayName its label in the dashboard, display whether the dashboard shows it.

List permissions › Responses

200

Permissions

Permission with its display name
value
​string

Permission name used in the API, e.g. SEE_STATS.

displayName
​string

The name to be display for this permission.

display
​boolean

Whether this permission should be display or not.