Skip to content

Inject User Message

POST
/api/v1/team-chat/threads/{thread_id}/intervene
curl --request POST \
--url https://api.ultimateteam.ai/api/v1/team-chat/threads/example/intervene \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "content": "example", "metadata": {}, "override_action": "example", "redirect_to_roles": [ "example" ] }'

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.

thread_id
required
Thread Id
string
Media typeapplication/json
UserIntervention

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
Content
string
metadata
Any of:
object
key
additional properties
any
override_action
Any of:
string
redirect_to_roles
Any of:
Array<string>
Examplegenerated
{
"content": "example",
"metadata": {},
"override_action": "example",
"redirect_to_roles": [
"example"
]
}

Successful Response

Media typeapplication/json
MessageResponse

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
Content
string
created_at
required
Created At
string format: date-time
id
required
Id
string format: uuid
message_type
required
Message Type
string
metadata
required
Any of:
object
key
additional properties
any
sender_id
required
Any of:
string
sender_role
required
Sender Role
string
thread_id
required
Thread Id
string format: uuid
Examplegenerated
{
"a2a_task_id": "example",
"artifacts": [
"example"
],
"content": "example",
"created_at": "2026-04-15T12:00:00Z",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"message_type": "example",
"metadata": {},
"sender_id": "example",
"sender_role": "example",
"thread_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}