API reference: Channels
On this page
- GET /v1/companies/{companyId}/channels
- PUT /v1/companies/{companyId}/channels/{channelId}/restriction
- GET /v1/companies/{companyId}/email
- POST /v1/companies/{companyId}/email
- DELETE /v1/companies/{companyId}/email/{channelId}
- GET /v1/companies/{companyId}/email/{channelId}
- PATCH /v1/companies/{companyId}/email/{channelId}
- GET /v1/companies/{companyId}/telegram
- POST /v1/companies/{companyId}/telegram
- DELETE /v1/companies/{companyId}/telegram/{channelId}
- GET /v1/companies/{companyId}/telegram/{channelId}
- PATCH /v1/companies/{companyId}/telegram/{channelId}
- GET /v1/companies/{companyId}/telegram/{channelId}/allow-entries
- POST /v1/companies/{companyId}/telegram/{channelId}/allow-entries
- DELETE /v1/companies/{companyId}/telegram/{channelId}/allow-entries/{entryId}
- Types
GET /v1/companies/{companyId}/channels
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Answers 200 with list of ChannelInfo.
PUT /v1/companies/{companyId}/channels/{channelId}/restriction
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
channelId |
path | string (uuid) | yes |
Body (application/json): RestrictionRequest
Answers 200 with list of string (uuid).
GET /v1/companies/{companyId}/email
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Answers 200 with list of MailboxResponse.
POST /v1/companies/{companyId}/email
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Body (application/json): ConnectMailboxRequest
Answers 201 with MailboxResponse.
DELETE /v1/companies/{companyId}/email/{channelId}
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
channelId |
path | string (uuid) | yes |
Answers 204.
GET /v1/companies/{companyId}/email/{channelId}
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
channelId |
path | string (uuid) | yes |
Answers 200 with MailboxResponse.
PATCH /v1/companies/{companyId}/email/{channelId}
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
channelId |
path | string (uuid) | yes |
Body (application/json): UpdateMailboxRequest
Answers 200 with MailboxResponse.
GET /v1/companies/{companyId}/telegram
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Answers 200 with list of TelegramBotResponse.
POST /v1/companies/{companyId}/telegram
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Body (application/json): ConnectTelegramRequest
Answers 201 with TelegramBotResponse.
DELETE /v1/companies/{companyId}/telegram/{channelId}
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
channelId |
path | string (uuid) | yes |
Answers 204.
GET /v1/companies/{companyId}/telegram/{channelId}
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
channelId |
path | string (uuid) | yes |
Answers 200 with TelegramBotResponse.
PATCH /v1/companies/{companyId}/telegram/{channelId}
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
channelId |
path | string (uuid) | yes |
Body (application/json): UpdateTelegramRequest
Answers 200 with TelegramBotResponse.
GET /v1/companies/{companyId}/telegram/{channelId}/allow-entries
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
channelId |
path | string (uuid) | yes |
Answers 200 with list of AllowEntryResponse.
POST /v1/companies/{companyId}/telegram/{channelId}/allow-entries
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
channelId |
path | string (uuid) | yes |
Body (application/json): CreateAllowEntryRequest
Answers 201 with AllowEntryResponse.
DELETE /v1/companies/{companyId}/telegram/{channelId}/allow-entries/{entryId}
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
channelId |
path | string (uuid) | yes | |
entryId |
path | string (uuid) | yes |
Answers 204.
Types
ChannelInfo
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
companyId |
string (uuid) | yes | |
kind |
API | TELEGRAM | EMAIL | WIDGET |
yes | |
name |
string | yes | |
summary |
string | ||
widget |
boolean | yes |
RestrictionRequest
| Field | Type | Required | Notes |
|---|---|---|---|
nodeIds |
list of string (uuid) | yes | at most 200 items |
notes |
MIRROR | SEPARATE | LEAVE |
MailboxResponse
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
address |
string | yes | |
imapHost |
string | yes | |
imapPort |
integer (int32) | yes | |
smtpHost |
string | yes | |
smtpPort |
integer (int32) | yes | |
smtpSecurity |
string | yes | |
allowedSenderDomains |
list of string | yes | |
trustedAuthservId |
string | ||
status |
string | yes | |
lastError |
string | ||
summary |
string | ||
restrictedTo |
list of string (uuid) | yes | |
connectedAt |
string (date-time) | yes |
ConnectMailboxRequest
| Field | Type | Required | Notes |
|---|---|---|---|
address |
string (email) | yes | at most 254 characters |
imapHost |
string | yes | at most 255 characters |
imapPort |
integer (int32) | yes | from 1; up to 65535 |
imapUsername |
string | yes | at most 254 characters |
imapPassword |
string | yes | at most 500 characters |
smtpHost |
string | yes | at most 255 characters |
smtpPort |
integer (int32) | yes | from 1; up to 65535 |
smtpSecurity |
string | yes | |
smtpUsername |
string | at most 254 characters | |
smtpPassword |
string | at most 500 characters | |
allowedSenderDomains |
list of string | yes | at most 100 items |
trustedAuthservId |
string | at most 255 characters | |
summary |
string | at most 2000 characters |
UpdateMailboxRequest
| Field | Type | Required | Notes |
|---|---|---|---|
summary |
string | at most 2000 characters | |
allowedSenderDomains |
list of string | at most 100 items |
TelegramBotResponse
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
botId |
integer (int64) | yes | |
botUsername |
string | yes | |
summary |
string | ||
allowedUserIds |
list of integer (int64) | yes | |
allowedGroupIds |
list of integer (int64) | yes | |
restrictedTo |
list of string (uuid) | yes | |
connectedAt |
string (date-time) | yes |
ConnectTelegramRequest
| Field | Type | Required | Notes |
|---|---|---|---|
botToken |
string | yes | at most 200 characters |
summary |
string | at most 2000 characters | |
allowedUserIds |
list of integer (int64) | at most 1000 items | |
allowedGroupIds |
list of integer (int64) | at most 1000 items |
UpdateTelegramRequest
| Field | Type | Required | Notes |
|---|---|---|---|
summary |
string | at most 2000 characters | |
allowedUserIds |
list of integer (int64) | at most 1000 items | |
allowedGroupIds |
list of integer (int64) | at most 1000 items |
AllowEntryResponse
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
userId |
integer (int64) | yes | |
validFrom |
string (date-time) | ||
validUntil |
string (date-time) | ||
usesLeft |
integer (int32) | ||
relayRequestId |
string (uuid) | ||
note |
string | ||
active |
boolean | yes | |
createdAt |
string (date-time) | yes |
CreateAllowEntryRequest
| Field | Type | Required | Notes |
|---|---|---|---|
userId |
integer (int64) | yes | |
validFrom |
string (date-time) | ||
validUntil |
string (date-time) | ||
uses |
integer (int32) | ||
note |
string | at most 200 characters |