Interactions

interactions

Methods

Create Application Interaction -> { id, application_variant_id, input, 8 more... }
post/v4/interactions/

Create Application Interaction

Security
API Key Header

Example: x-api-key: My API Key

Response fields
id: string

Unique identifier for the interaction.

application_variant_id: string

Identifier for the application variant that performed this interaction.

input: { query }

The input data for the interaction.

output: { response, context }

The output data from the interaction.

start_timestamp: string

Timestamp marking the start of the interaction.

duration_ms: number
Optional

Duration of the interaction in milliseconds.

guardrail_results: Array<{ id, application_interaction_id, application_spec_id, 11 more... }>
Optional

Results of the guardrails executed on the input

operation_metadata: unknown
Optional

Optional metadata related to the operation, including custom or predefined keys.

operation_status: "SUCCESS" | "ERROR"
Optional

The outcome status of the interaction.

thread_id: string
Optional

Optional UUID identifying the conversation thread associated with the interaction.The interaction will be associated with the thread if the id represents an existing thread.If the thread with the specified id is not found, a new thread will be created.

trace_spans: Array<{ id, application_interaction_id, node_id, 7 more... }>
Optional

List of trace span entities associated with the interaction.

Request example
200Example