API reference: Sub users
On this page
- GET /v1/companies/{companyId}/sub-users
- POST /v1/companies/{companyId}/sub-users
- DELETE /v1/companies/{companyId}/sub-users/{subUserId}
- GET /v1/companies/{companyId}/sub-users/{subUserId}
- POST /v1/companies/{companyId}/sub-users/{subUserId}/2fa/reset
- PUT /v1/companies/{companyId}/sub-users/{subUserId}/access
- POST /v1/companies/{companyId}/sub-users/{subUserId}/set-password-link
- Types
GET /v1/companies/{companyId}/sub-users
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Answers 200 with list of SubUserResponse.
POST /v1/companies/{companyId}/sub-users
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Body (application/json): SubUserRequest
Answers 201 with SubUserResponse.
DELETE /v1/companies/{companyId}/sub-users/{subUserId}
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
subUserId |
path | string (uuid) | yes |
Answers 204.
GET /v1/companies/{companyId}/sub-users/{subUserId}
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
subUserId |
path | string (uuid) | yes |
Answers 200 with SubUserResponse.
POST /v1/companies/{companyId}/sub-users/{subUserId}/2fa/reset
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
subUserId |
path | string (uuid) | yes |
Answers 204.
PUT /v1/companies/{companyId}/sub-users/{subUserId}/access
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
subUserId |
path | string (uuid) | yes |
Body (application/json): SubUserAccessRequest
Answers 200 with SubUserResponse.
POST /v1/companies/{companyId}/sub-users/{subUserId}/set-password-link
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
subUserId |
path | string (uuid) | yes |
Answers 202.
Types
SubUserResponse
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
email |
string | yes | |
status |
PENDING | ACTIVE | DISABLED |
yes | |
totpEnabled |
boolean | yes | |
sections |
list of COMPANY | CHANNELS | KEYS | RESOURCES | RULES | IDENTITIES | THREADS | REQUESTS | AUDIT | BILLING | BILLING_CAP | SUB_USERS | CHAT |
yes | |
folders |
list of FolderGrant | yes | |
createdBy |
string (uuid) | ||
createdAt |
string (date-time) | yes |
SubUserRequest
| Field | Type | Required | Notes |
|---|---|---|---|
email |
string (email) | yes | at most 254 characters |
sections |
list of COMPANY | CHANNELS | KEYS | RESOURCES | RULES | IDENTITIES | THREADS | REQUESTS | AUDIT | BILLING | BILLING_CAP | SUB_USERS | CHAT |
yes | |
folders |
list of FolderGrant | yes | at most 200 items |
notes |
MIRROR | SEPARATE | LEAVE |
SubUserAccessRequest
| Field | Type | Required | Notes |
|---|---|---|---|
sections |
list of COMPANY | CHANNELS | KEYS | RESOURCES | RULES | IDENTITIES | THREADS | REQUESTS | AUDIT | BILLING | BILLING_CAP | SUB_USERS | CHAT |
yes | |
folders |
list of FolderGrant | yes | at most 200 items |
notes |
MIRROR | SEPARATE | LEAVE |
FolderGrant
| Field | Type | Required | Notes |
|---|---|---|---|
nodeId |
string (uuid) | ||
level |
READ | MANAGE |
yes |