Rigor

Generate execution plan

Classifies the task, resolves rigor level, selects an appropriate framework sequence, and returns a structured execution plan with cost estimates and insertion rules. Costs 5 credits.

post/api/rigor/plan

Request

  • Base URL: https://plith.ai
  • URL: https://plith.ai/api/rigor/plan
  • Auth: API key in header x-api-key

Request body

task_descriptionstring required

The task to plan.

task_typestring

Optional explicit task type. Bypasses classification when provided.

mode'plan' | 'execute' required

Workflow mode. Use 'plan' to receive a plan without executing.

webhook_urlstring uri

Optional webhook URL for async plan delivery.

workflow_idstring

Reference an existing workflow plan.

restart_from_stepinteger

Step index to restart execution from.

Response

Execution plan generated

request_idstring
credits_usedinteger
credits_remaininginteger
fallback_behaviorstring

Example response

{
  "request_id": "req_a1b2c3d4e5f6",
  "credits_used": 5
}

Changes

No recorded changes to this operation across all 1 revision of this API.