v3

latestOpenAPI 3.1.02026-08-0755220214.3 KB
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. The conversation must have an associated agent.

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 required

The system prompt to use when generating replay responses. Use this to test prompt changes against this conversation turn.

num_responsesinteger

Number of alternative responses to generate.

Response

Success response