PATCH
/
v4
/
threads
/
{thread_id}
/
messages
/
{application_interaction_id}

Authorizations

x-api-key
string
headerrequired

Headers

x-selected-account-id
string | null

Path Parameters

thread_id
string
required
application_interaction_id
string
required

Query Parameters

fetch_by_account
boolean | null
default: false

Fetch the thread by account instead of user

Body

application/json
output_text
string

The output text generated by the application.

Response

200 - application/json
id
string
required
input
object
required
output
object
required
aggregated
boolean
required

Boolean of whether this interaction has been uploaded to s3 bucket yet, default is false

application_spec_id
string
required
application_variant_id
string
required
start_timestamp
string
required
duration_ms
integer
required

How much time the step took in milliseconds(ms)

operation_status
enum<string>
required

The outcome of the operation

Available options:
SUCCESS,
ERROR
created_at
string
required

The date and time when the entity was created in ISO format.

operation_metadata
object

The JSON representation of the metadata insights emitted through the execution. This can differ based on different types of operations

chat_thread_id
string
interaction_source
enum<string>
Available options:
EXTERNAL_AI,
EVALUATION,
SGP_CHAT,
AGENTS_SERVICE