List roles
GET
/api/v1/roles
const url = 'https://digize.com/api/v1/roles';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/roles \ --header 'x-api-key: <x-api-key>'The workspace’s roles: the three built-in ones (owner, admin, member) and the custom roles the owner made, each with the permissions it grants, the sites it’s limited to and how many members have it.
Needs the settings:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
Array<object>
object
id
required
string
name
required
string
description
required
string
builtIn
required
boolean
permissions
required
Array<string>
sites
required
Any of:
Array<string>
null
visibility
required
Which contacts, deals and conversations its members see: all, their teams’ (assigned to anyone in a team of theirs) or only those assigned to them.
string
members
required
number | null
Example
[ { "visibility": "all" }]What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}