CompanyDNA API Documentation (V1)

Documentation for CompanyDNA APIs

Chat Operations

Start a chat session

Start a new chat session with the given parameters.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
subscriptionId
integer

The subscription ID of the company.

companyModelId
integer

The ID of the company model.

companyId
integer

The ID of the company.

appId
integer

The application ID.

prompt
string

The prompt for the chat session.

history
Array of strings

Chat history.

Responses

Request samples

Content type
application/json
{
  • "subscriptionId": 123456789,
  • "companyModelId": 123456789,
  • "companyId": 123456789,
  • "appId": 123456789,
  • "prompt": "Can you help me with my request?",
  • "history": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "output of chat"
}

Start a chat session with an avatar

Start a new chat session using an avatar with the given parameters.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
subscriptionId
integer

The subscription ID of the company.

companyModelId
integer

The ID of the company model.

companyId
integer

The ID of the company.

appId
integer

The application ID.

prompt
string

The prompt for the chat session.

history
Array of strings

Chat history.

Responses

Request samples

Content type
application/json
{
  • "subscriptionId": 123456789,
  • "companyModelId": 123456789,
  • "companyId": 123456789,
  • "appId": 123456789,
  • "prompt": "What can this avatar do?",
  • "history": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "output of chat with avatar"
}

Start a general chat session

Start a general chat session with the given parameters.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
subscriptionId
integer

The subscription ID of the company.

companyModelId
integer

The ID of the company model.

companyId
integer

The ID of the company.

appId
integer

The application ID.

prompt
string

The prompt for the chat session.

history
Array of strings

Chat history.

Responses

Request samples

Content type
application/json
{
  • "subscriptionId": 123456789,
  • "companyModelId": 123456789,
  • "companyId": 123456789,
  • "appId": 123456789,
  • "prompt": "General chat session request",
  • "history": [
    ]
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "output of chat with general"
}

Company Data

Get company apps

Retrieve a list of apps associated with the company.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
companyId
integer

The ID of the company.

Responses

Request samples

Content type
application/json
{
  • "companyId": 123456789
}

Response samples

Content type
application/json
{
  • "apps": [
    ]
}

Get company avatars

Retrieve a list of avatars associated with the company.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
companyId
integer

The ID of the company.

Responses

Request samples

Content type
application/json
{
  • "companyId": 123456789
}

Response samples

Content type
application/json
{
  • "avatars": [
    ]
}

Get company models

Retrieve a list of models associated with the company.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
companyId
integer

The ID of the company.

Responses

Request samples

Content type
application/json
{
  • "companyId": 123456789
}

Response samples

Content type
application/json
{
  • "models": [
    ]
}

Get company chief availability

Retrieve the availability status of the company's chief executive.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
companyId
integer

The ID of the company.

Responses

Request samples

Content type
application/json
{
  • "companyId": 123456789
}

Response samples

Content type
application/json
{
  • "name": "CompanyDNA",
  • "is_chief_available": true
}

Test

Test the API

Test if the API is running and reachable.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
companyId
integer

The ID of the company.

Responses

Request samples

Content type
application/json
{
  • "companyId": 123456789
}

Response samples

Content type
application/json
{
  • "success": true,
  • "message": "Succeeded"
}