Skip to content
TriedDocs
Calls

Rerun call analysis

Run post-call analysis again on an ended call.

POSThttps://api.tried.com.au/rerun-call-analysis/{call_id}

Runs post-call analysis again with the agent version's current post_call_analysis_data, analysis model and analysis prompts. Use it after you add or change analysis fields. The call_analyzed webhook is sent again in the background.

Request#

Path parameters#

Parameter Type Required Description
call_id string Yes An ended call.

Example request#

curl -X POST "https://api.tried.com.au/rerun-call-analysis/call_8d1e0f2a3b4c5d6e7f8a9b0c" \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/rerun-call-analysis/call_8d1e0f2a3b4c5d6e7f8a9b0c", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const data = await res.json();
import os, requests

res = requests.post(
    "https://api.tried.com.au/rerun-call-analysis/call_8d1e0f2a3b4c5d6e7f8a9b0c",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
data = res.json()

Response#

200 OK with the call object including the new call_analysis.

To re-analyse many calls at once, use Backfill call analysis.

Errors#

Status When
400 The call has not ended (Call analysis can only be rerun on ended calls).
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the calls scope.
404 No call with this ID in the workspace.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.