Skip to content

List roles

GET
/api/v1/roles
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.

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>
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
Allowed values: all team assigned
members
required
number | null
createdAt
required
Any of:
string format: date-time

Example

[
{
"visibility": "all"
}
]

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}