Skip to content

Inject User Message

POST
/api/v1/team-chat/threads/{thread_id}/intervene

Inject a user message or override into an agent thread.

Args: thread_id: The thread UUID string. body: User intervention data. user: The authenticated user context. svc: The intervention service (injected).

Returns: The user override message.

Authorizations

Parameters

Path Parameters

thread_id
required
string

Request Body required

Input schema for user intervention in agent conversations.

Attributes: content: The user’s message content. override_action: Optional action — “cancel” or “redirect”. redirect_to_roles: Roles to redirect conversation to. metadata: Optional extensible metadata.

object
content
required
string
metadata
Any of:
object
key
additional properties
any
override_action
Any of:
string
redirect_to_roles
Any of:
Array<string>

Responses

200

Successful Response

Response schema for a persisted conversation message.

Attributes: id: Unique message identifier. thread_id: Owning thread identifier. sender_role: Agent role or “user”. sender_id: User ID if sender is human. content: Message content text. message_type: Type of message. artifacts: List of artifact IDs referenced. a2a_task_id: Link to A2A task if applicable. metadata: Extensible metadata. created_at: When the message was created.

object
a2a_task_id
required
Any of:
string
artifacts
required
Any of:
Array<string>
content
required
string
created_at
required
string format: date-time
id
required
string format: uuid
message_type
required
string
metadata
required
Any of:
object
key
additional properties
any
sender_id
required
Any of:
string
sender_role
required
string
thread_id
required
string format: uuid

422

Validation Error

object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string