Skip to main content
POST
Chat completions (OpenAI-compatible)

Authorizations

Authorization
string
header
required

Unit API Key mapped to an agent in the agents collection. The proxy forces session_id = agentId.

Body

application/json
messages
object[]
required
session_id
string

Placeholder — overwritten by the proxy.

top_k
integer
default:5
metadata_filter
object | null
model
string | null

Response

Chat completion result.

The response is of type object.