Guide API reference API reference: Any key

API reference: Any key

On this page

Any key of the company can call these, whatever sections it holds.

GET /v1/companies/{companyId}

Parameter In Type Required Notes
companyId path string (uuid) yes

Answers 200 with CompanyResponse.

GET /v1/companies/{companyId}/ai

Parameter In Type Required Notes
companyId path string (uuid) yes

Answers 200 with CompanyAiView.

GET /v1/companies/{companyId}/config

Parameter In Type Required Notes
companyId path string (uuid) yes

Answers 200 with CompanyConfigResponse.

Types

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)

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

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

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

This page is made from /docs/v1/api/any-key.md, the Markdown that AI assistants read. Questions: hi@determesh.com.