Skip to main content
POST
Create response

Authorizations

Authorization
string
header
required

Session JWT from Ageneral sign-in. Send as Authorization: Bearer <token>.

Headers

Ageneral-Project-Id
string
required

Project id. You must be a member with access.

Ageneral-Session-Id
string

Existing platform chat session to continue. Omit to create a new session on first non-/new turn.

Body

application/json

At least one chat-style message; last user text drives the turn. model is optional when a server default applies.

messages
object[]
required
Minimum array length: 1
model
string
Example:

"openai/gpt-4o-mini"

Response

Success. JSON or SSE stream.

OpenAI-compatible Responses output when not streaming.