Skip to main content
POST
Creates a replay conversation from an existing conversation and target Fini response event. The replay runs immediately, stores its result as a separate conversation, and returns the replay conversation.
This endpoint needs write scope. It creates a replay record, but it does not change the original conversation or publish any configuration changes.
Use List conversations or Get conversation to find the original conversation ID and the Fini response event ID.

Headers

string
required
Bearer token containing your Fini workspace API key. Format: Bearer fini_... The key needs write scope.
string
required
Send application/json.

Body parameters

string
required
ID of the original conversation to replay.
string
required
ID of the Fini response event to replay. The response must have a linked user event in the same conversation.
enum
FINI_ZERO (default) or AGENT_RUNNER. Agent Runner must be enabled for the original conversation’s agent. Omission uses FINI_ZERO, not the agent’s enabled capability. null and unknown values are invalid.
enum
Replay mode. Use until to replay up to the selected response, or single to replay only that response. Defaults to until.
enum
How Rulebook logic should run during the replay. Use simulate to evaluate current rules with saved action results, reuse to reuse the original rule choice and rule result payloads, or execute to run current rules and live external actions. Defaults to simulate.
object
Optional model overrides for this replay run. Supported keys are performPlanning, searchKnowledge, generateAnswer, and tagSelection; each value must be a non-empty model name.
object
Optional answer-generation artifacts to inject into the replay. Use this only when you have validated artifact data from Fini’s conversation tooling.
object
Optional FINI_ZERO pipeline overrides: parallelSearch and mergeInputTags, each a boolean. Unsupported for Agent Runner.

Agent Runner replays

Set orchestrationMode to AGENT_RUNNER and mode to single. Omit ruleExecutionMode or set it to reuse. Do not send artifacts, mlModels, or replyPipeline: these overrides are rejected for Agent Runner, even when empty. The target must be a non-empty text reply linked to a user message. Conversation history through that user message must contain no attachments or widget forms. Conflicting recorded customer identity values are rejected. Agent Runner uses the stored conversation history and recorded tool results. Matching lookup results are reused; missing matches can trigger live lookups. Actions are mocked, not performed externally. No reply is sent to the customer, and the original conversation stays unchanged. A separate replay conversation stores the result. The request examples below use the default FINI_ZERO path. For Agent Runner, use the same IDs with this body instead:

Response

Returns the replay conversation record. The examples use synthetic IDs. Agent Runner returns its execution trace instead of the standard rule-execution metadata.
string
Replay conversation ID.
string
Original conversation ID this replay was created from.
enum
Execution path used: FINI_ZERO or AGENT_RUNNER.
object
Replay metadata, including target_event_id and status. Standard replays can include rule_execution_mode, ml_models, and reply_pipeline. Agent Runner instead includes agentic execution metadata and trace; see Replays.

Errors

Agent Runner is not enabled for the agent, its request restrictions are not met, the history contains attachments or forms, or recorded customer identity is ambiguous. Otherwise, the body failed validation. interactionId and eventId must be UUIDs, mode must be until or single, ruleExecutionMode must be reuse, simulate, or execute, and mlModels can only include supported operation keys with non-empty string values.
The API key is missing, malformed, revoked, or invalid.
The API key does not include the write scope required for this route.
The target event does not exist in the workspace, or the event does not belong to the supplied conversation.
The target event is not a Fini response, the response has no linked user event to replay, or the replay run failed.