API reference: Company settings
On this page
PATCH /v1/companies/{companyId}
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Body (application/json): UpdateCompanyRequest
Answers 200 with CompanyResponse.
PUT /v1/companies/{companyId}/ai
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Body (application/json): AiChoiceRequest
Answers 200 with CompanyAiView.
PATCH /v1/companies/{companyId}/config
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Body (application/json): UpdateCompanyConfigRequest
Answers 200 with CompanyConfigResponse.
GET /v1/companies/{companyId}/resources
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes | |
identityId |
query | string (uuid) |
Answers 200 with list of ResourceResponse.
DELETE /v1/companies/{companyId}/smtp
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Answers 204.
GET /v1/companies/{companyId}/smtp
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Answers 200 with CompanySmtpResponse.
PUT /v1/companies/{companyId}/smtp
| Parameter | In | Type | Required | Notes |
|---|---|---|---|---|
companyId |
path | string (uuid) | yes |
Body (application/json): CompanySmtpRequest
Answers 200 with CompanySmtpResponse.
Types
UpdateCompanyRequest
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | at most 200 characters; at least 1 characters | |
summary |
string | at most 20000 characters | |
status |
ACTIVE | SUSPENDED | PENDING_DELETION | DELETED |
CompanyResponse
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
name |
string | yes | |
status |
ACTIVE | SUSPENDED | PENDING_DELETION | DELETED |
yes | |
summary |
string | ||
createdAt |
string (date-time) | yes | |
updatedAt |
string (date-time) | yes | |
deletionDueAt |
string (date-time) |
AiChoiceRequest
| Field | Type | Required | Notes |
|---|---|---|---|
offeringId |
string (uuid) | ||
secondaryOfferingId |
string (uuid) | ||
clearSecondary |
boolean | yes | |
embeddingProviderId |
string (uuid) |
CompanyAiView
| Field | Type | Required | Notes |
|---|---|---|---|
offeringId |
string (uuid) | ||
secondaryOfferingId |
string (uuid) | ||
embeddingProviderId |
string (uuid) | ||
offerings |
list of OfferingCard | yes | |
embeddingProviders |
list of EmbeddingCard | yes | |
notices |
list of AiNotice | yes |
UpdateCompanyConfigRequest
| Field | Type | Required | Notes |
|---|---|---|---|
fallbackStatement |
string | at most 5000 characters | |
fallbackResourceId |
string (uuid) | ||
blockText |
string | at most 5000 characters | |
qualityThreshold |
integer (int32) | from 1; up to 10 | |
blockThreshold |
integer (int32) | from 1 | |
blockWindowMinutes |
integer (int32) | from 1 | |
blockDurationMinutes |
integer (int32) | from 1 | |
allowedIps |
list of string | at most 100 items | |
retentionDays |
integer (int32) | from 1; up to 36500 | |
shareLinksEnabled |
boolean | ||
shareLinkHours |
integer (int32) | from 1; up to 2160 | |
verificationHours |
integer (int32) | from 1; up to 87600 | |
reportMakerEnabled |
boolean |
CompanyConfigResponse
| Field | Type | Required | Notes |
|---|---|---|---|
companyId |
string (uuid) | yes | |
fallbackStatement |
string | ||
fallbackResourceId |
string (uuid) | ||
blockText |
string | ||
qualityThreshold |
integer (int32) | yes | |
blockThreshold |
integer (int32) | yes | |
blockWindowMinutes |
integer (int32) | yes | |
blockDurationMinutes |
integer (int32) | yes | |
allowedIps |
list of string | yes | |
retentionDays |
integer (int32) | yes | |
shareLinksEnabled |
boolean | yes | |
shareLinkHours |
integer (int32) | yes | |
verificationHours |
integer (int32) | yes | |
reportMakerEnabled |
boolean | yes | |
updatedAt |
string (date-time) | yes |
ResourceResponse
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
parentId |
string (uuid) | ||
name |
string | yes | |
kind |
GROUP | EXTERNAL_API | FILE | JS_CODE | DATABASE | NOTES |
yes | |
type |
DATA | VERIFIER |
yes | |
accessStrategy |
ACCEPT_IDENTITY_POLICY | SELF_MANAGED |
yes | |
summary |
string | ||
baseUrl |
string | ||
authHeaderNames |
list of string | yes | |
accessCheckPath |
string | ||
allowedHosts |
list of string | ||
groupId |
string (uuid) | ||
createdAt |
string (date-time) | yes | |
updatedAt |
string (date-time) | yes | |
access |
READ | MANAGE |
yes | |
notesFor |
string (uuid) | ||
ownerIdentityId |
string (uuid) | ||
notesId |
string (uuid) |
CompanySmtpResponse
| Field | Type | Required | Notes |
|---|---|---|---|
host |
string | yes | |
port |
integer (int32) | yes | |
security |
string | yes | |
username |
string | yes | |
fromAddress |
string | yes | |
fromName |
string | ||
enabled |
boolean | yes | |
updatedAt |
string (date-time) | yes |
CompanySmtpRequest
| Field | Type | Required | Notes |
|---|---|---|---|
host |
string | yes | at most 255 characters |
port |
integer (int32) | yes | from 1; up to 65535 |
security |
string | yes | |
username |
string | yes | at most 254 characters |
password |
string | at most 500 characters | |
fromAddress |
string (email) | yes | at most 254 characters |
fromName |
string | at most 100 characters | |
enabled |
boolean | yes |
OfferingCard
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
name |
string | yes | |
location |
string | yes | |
trainsOnData |
NO | YES | NOT_STATED |
yes | |
perMessage |
MessagePrice | yes | |
tokens |
TokenRanges | yes | |
rates |
list of ClientRates | yes | |
expiresAt |
string (date-time) | ||
listed |
boolean | yes |
EmbeddingCard
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string (uuid) | yes | |
name |
string | yes | |
location |
string | yes | |
trainsOnData |
NO | YES | NOT_STATED |
yes | |
pricePerMillion |
number | yes | |
expiresAt |
string (date-time) | ||
listed |
boolean | yes | |
reembeds |
boolean | yes |
AiNotice
| Field | Type | Required | Notes |
|---|---|---|---|
kind |
string | yes | |
text |
string | yes |