Workflows

Edit website with AI prompt

Starts an AI-driven edit workflow on an existing website. The agent wakes up in a sandbox, edits the site (across its pages) per the prompt, and publishes the changes. Requires website ownership verification. Returns a workflow_id you can poll via GET /v1/ai/workspace/website/edit/status/{workflow_id}.

post/v1/ai/workspace/website/{website_id}/edit

Request

  • Base URL: https://api.lindo.ai
  • URL: https://api.lindo.ai/v1/ai/workspace/website/{website_id}/edit
  • Auth: HTTP bearer

Path parameters

website_idstring required

The ID of the website to edit

Example:website_abc123

Request body

promptstring required

AI prompt describing the change to make to the website. Must be at least 10 characters.

publishboolean

When true, the edited page(s) are published to the live website. When false or omitted, the changes are saved as drafts that can be reviewed and published from the editor ("Publish all").

schedule_atstring

Optional ISO 8601 date to schedule the workflow for future execution.

Example request

{
  "prompt": "Update the hero headline on the home page and add a testimonials section to the about page",
  "schedule_at": "2026-05-01T09:00:00Z"
}

Response

Workflow started successfully

successtrue required

Indicates the workflow was started successfully

Example response

{
  "success": true,
  "result": {
    "workflow_id": "wf_abc123xyz789",
    "website_id": "webWD4bkJrgKERaOAvh"
  }
}

Changes

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