Message the Assistant
POST/v1/assistant/sessions/:session_id/messages
Runs one turn as your account and answers with the messages it added: yours, then the Assistant's reply. The turn is paid from your credit and refused before it runs when the balance is below zero.
Request
Responses
- 201
- 400
- 401
- 402
- 403
- 404
- 409
- 502
- 503
The messages this turn added, oldest first.
content is missing or blank.
Missing or invalid credentials.
Your credit balance is below zero (insufficient_credit). Top up to message the Assistant again.
The credential cannot hold the account's conversation (access_denied): it is confined to one project, or it is the Assistant's own turn credential.
The resource does not exist (existence is not leaked).
The session is closed or expired (session_closed). Start a new conversation to continue.
The turn could not be run or read (upstream_unavailable).
This deployment serves no Assistant conversation (assistant_unavailable).