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>",
    "status": "PENDING"
  }
}
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