POST
/
openai
/
chat
/
completions
curl --request POST \
  --url https://{customer-tenant}.nuwacom.ai/api/v1/openai/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "<string>",
      "content": [
        {
          "type": "<string>",
          "text": "<string>"
        }
      ]
    }
  ],
  "space_id": "<string>",
  "model": "azure-gpt-4o",
  "temperature": 0.5,
  "top_p": 0.5,
  "agentId": "<string>",
  "agentPublished": true,
  "capabilities": {
    "webSearch": true,
    "knowledgeBaseSearch": true,
    "briefingSearch": true
  },
  "attachmentIds": [
    "<string>"
  ],
  "briefingIds": [
    "<string>"
  ],
  "folderIds": [
    "<string>"
  ]
}'

Authorizations

Authorization
string
header
required

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

Body

application/json

Get a response from the AI model

The body is of type object.

Response

200

Successful completion response (see OpenAI Completions Object)