POST

Authorizations

x-api-key
string
header
required

Path Parameters

session_id
string
required

ID of the session (ses_ followed by 26 lowercase base32 characters). A session of another workspace, a deleted session and an unknown ID all answer 404 not_found_error without an error.code.

Body

application/json
events
object[]
required

The events to send, at least one, processed in order: user.message, user.interrupt, user.tool_confirmation, user.custom_tool_result and BMA's user.bma_controlled_message. A user.message needs a non-empty content of text and image blocks. user.define_outcome, user.tool_result and system.message are refused with 400.

Union type for event parameters that can be sent to a session.

Response

Success.

Events that were successfully sent to the session.

data
object[]

The events of the request as stored, in order, each with its id, bma_sequence and (for a user.message) bma_input_id; processed_at is absent until the event is processed.

A user message event in the session conversation.