Skip to main content
POST
/
api
/
chats
/
{chatId}
/
completions
Create chat completion
curl --request POST \
  --url https://api.upon-ai.com/api/chats/{chatId}/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": 42,
  "content": "Can you send me pricing for the enterprise plan?"
}
'
{
  "messages": [
    {
      "content": "<string>",
      "name": "<string>",
      "tool_calls": [
        {}
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Generate tokens from your profile settings at app.uponai.com.

Path Parameters

chatId
string
required

Chat identifier.

Body

application/json
workspaceId
integer
required
content
string
required

Response

201 - application/json

Chat completion messages.

messages
object[]