Skip to main content
POST
/
tasks
/
{taskIdOrSlug}
/
approve-plan
Approve plan
curl --request POST \
  --url https://twill.ai/api/v1/tasks/{taskIdOrSlug}/approve-plan \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "job": {
    "id": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.twill.ai/llms.txt

Use this file to discover all available pages before exploring further.

Use this endpoint after a task run in mode: "plan" finishes with planOutcome: "READY".

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

taskIdOrSlug
string
required

Response

Plan approved

success
boolean
required
job
object
required