---
title: "Create multiple websites with AI (batch, max 25)"
method: POST
path: "/v1/ai/workspace/website/batch"
tags: ["Workflows"]
---

# Create multiple websites with AI (batch, max 25)

`POST /v1/ai/workspace/website/batch`

## Request

- Base URL: `https://api.lindo.ai`
- URL: `https://api.lindo.ai/v1/ai/workspace/website/batch`
- Auth: HTTP bearer

Start up to 25 website-creation workflows in one request. Each returns its own `workflow_id` that can be polled via `/v1/ai/workspace/website/status/{workflow_id}`. Credits are deducted upfront and refunded per-failure.

## Request body

- BatchCreateWebsiteRequest
  - `items` BatchWebsiteItem[], required: Array of websites to create. Between 1 and 25 items.
    - `prompt` string, required: AI prompt describing this website
    - `schedule_at` string: Optional ISO 8601 date to schedule for later
    - `client` object: Optional per-item client assignment
      - `client_id` string
      - `email` string, email
      - `name` string

## Response `200`

Batch processed. Check per-item `success`.

- BatchCreateResponse
  - `success` true, required: The batch request was processed. Individual items may still have failed — check per-item `success`.
  - `total` number, required: Total items in the batch
  - `succeeded` number, required: Number of items successfully accepted
  - `failed` number, required: Number of items that failed to start
  - `items` BatchCreateItemResult[], required: Per-item result, in the same order as the request
    - `success` boolean, required: Whether this item was accepted and scheduled
    - `workflow_id` string: Workflow id (present when success is true)
    - `error` string: Error message (present when success is false)

## Other responses

- `400`: Invalid request or insufficient credits
- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/lindo/apis/lindo-unified-api.md) · [All operations](https://skmtc.dev/lindo/apis/lindo-unified-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lindo/apis/lindo-unified-api/revisions/2672f34525a4?raw)
