Skip to main content
POST
Chat completions
Call the workspace model from your backend. The request and response match OpenAI chat completions. Tokens are metered on your Comms plan. Scope: comms_ai
This is pass-through AI. You do not bring your own model key. Usage from this endpoint and from hosted agent replies share one meter.

Request

Headers

Body parameters

string
Workspace model id. Use claude-sonnet-5 or default.
array
required
Chat messages. Each item has role (system, user, assistant, or tool) and string content.
number
Optional. 02. Defaults to 0.7.
integer
Optional. 168192. Defaults to 1024.
boolean
Must be omitted or false. Streaming is not supported yet.

Response

Errors

Quota response: