Skip to main content

Add a user message

POST 

/api/v1/sessions/:session_id/messages

Saves a user message to the session. When auto_generate is enabled on the session and no generation is currently in progress, generation is triggered automatically and the response is the generated turn, the same body ?wait=true generate answers. Otherwise returns the saved user message.

Request​

Responses​

Duplicate request — original message returned (idempotency_key matched)