Skip to main content
POST
/
v1
/
openai
/
chat
/
completions
OpenAI Chat Completion
curl --request POST \
  --url https://{customer-tenant}.nuwacom.ai/api/v1/openai/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "<string>",
  "temperature": 123,
  "top_p": 123,
  "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agentPublished": true,
  "voiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "capabilities": {
    "webSearch": true,
    "knowledgeBaseSearch": true,
    "briefingSearch": true,
    "contentSearch": true,
    "visionEnabled": true,
    "canvasEnabled": true
  },
  "attachmentIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "briefingIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "contentIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "folderIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "messages": [
    {
      "role": "assistant",
      "content": "<string>"
    }
  ],
  "stream": true,
  "parent_message_id": 123,
  "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "space_id": "<any>"
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
messages
object[]
required
Minimum length: 1
space_id
any
required
model
string | null
temperature
number
top_p
number
agentId
string<uuid> | null
agentPublished
boolean
voiceId
string<uuid> | null
taskId
string<uuid> | null
capabilities
object
attachmentIds
string<uuid>[]
briefingIds
string<uuid>[]
contentIds
string<uuid>[]
folderIds
string<uuid>[]
stream
boolean
parent_message_id
number | null
conversation_id
string<uuid> | null

Response

200

Successful completion response (see OpenAI Completions Object)

I