Skip to content

Critique draft retention

Critique a hook or script draft against this channel's own retention evidence (hook signals, best openings, steepest drop-offs). Returns risk, issues with suggested rewrites, and a rewritten draft. Runs async: poll the operation or pass webhookUrl. Costs 8 credits; credits are released if the run fails (for example, fewer than 5 videos with retention curves).

POSThttps://hitfactorapp.com/api/v1/retention/critique
MCP toolcritique_retentionCost8 creditsModeAsync (202 Accepted)Scoperetention:readChannel syncRequired

Request examples

curl -sS -X POST "https://hitfactorapp.com/api/v1/retention/critique" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $HITFACTOR_API_KEY" \
  -H "Idempotency-Key: req_2026_001" \
  -d '{
  "draftType": "hook",
  "title": "Why Every AI Agent Breaks in Production",
  "text": "Every developer builds an AI agent demo in an afternoon, then watches it loop forever in production. Here are the three fixes that actually hold up.",
  "targetDurationSeconds": 5
}'

Parameters

Idempotency-Keyheaderstring

Unique retry key (up to 255 characters). Replaying the same key and body returns the original response with 0 extra credits charged.

maxLength: 255

Request body

Send a JSON object with Content-Type: application/json. Unknown keys are rejected with 400 invalid_input.

draftType"hook" | "script"required
titlestring
maxLength: 300
textstringrequired
minLength: 1maxLength: 30000
targetDurationSecondsinteger
min: 5max: 7200
webhookUrlstring (uri)
maxLength: 2000

Response (202 Accepted)

Returns HTTP 202 immediately with an operationId and pollUrl. Poll GET /operations/{operationId} (0 credits) or pass webhookUrl to receive the finished payload.

operationIdstringrequired
status"queued"required
pollUrlstringrequired
Example 202 response
{
  "data": {
    "operationId": "apiop_01j9example0000000000000",
    "status": "queued",
    "pollUrl": "/api/v1/operations/apiop_01j9example0000000000000"
  },
  "meta": {
    "requestId": "req_01j9example0000000000000",
    "creditsCharged": 1,
    "creditsRemaining": 499,
    "replayed": false
  }
}

Completed operation result

When the async operation reaches status: "succeeded", this schema is returned inside data.result on GET /operations/{operationId} and webhook deliveries.

overallRisk"low" | "medium" | "high"required
summarystringrequired
channelSignalsUsedstring[]required
issuesobject[]required
Show item fields
excerptstringrequired
reasonstringrequired
matchedChannelPatternstringrequired
citedVideoTitlestring
suggestedRewritestringrequired
rewrittenDraftstringrequired
Example completed result
{
  "overallRisk": "low",
  "summary": "example_summary",
  "channelSignalsUsed": [
    "example_channelSignalsUsed"
  ],
  "issues": [
    {
      "excerpt": "example_excerpt",
      "reason": "example_reason",
      "matchedChannelPattern": "example_matchedChannelPattern",
      "citedVideoTitle": "example_citedVideoTitle",
      "suggestedRewrite": "example_suggestedRewrite"
    }
  ],
  "rewrittenDraft": "Most AI agents pass a demo and fail on user two. Here are the three production guardrails that stop loops."
}

Error responses

400invalid_input
401Missing or invalid API key
402insufficient_credits
403insufficient_scope
404operation_not_found
409channel_sync_pending or idempotency_conflict
429rate_limited