latestOpenAPI 3.1.02026-08-2055221216.0 KB

dd8166a70626

conversationItems

Replay

Returns the alternative response(s) the assistant would have produced for this conversation turn given changes to the agent system prompt.

Only assistant items from ended conversations can be replayed. Omit the request body (or omit system_prompt) to replay the turn exactly as it originally ran.

post/conversation_items/{id}/replay

Path parameters

idstring required

The ID of the conversation item to replay.

Headers

Authorizationstring required

Bearer authentication header of the form Bearer <PHONIC_API_KEY>. Manage your API keys here.

Request body

system_promptstring

The system prompt to use when generating replay responses. Use this to test prompt changes against this conversation turn. Omit it to replay the turn with the system prompt it originally ran with.

num_responsesinteger

Number of alternative responses to generate.

Response

Success response