Skip to main content
GET
/
v1
/
ai
/
workspace
/
website
/
status
/
{workflow_id}
Check status of a website-creation workflow
curl --request GET \
  --url https://api.lindo.ai/v1/ai/workspace/website/status/{workflow_id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.lindo.ai/v1/ai/workspace/website/status/{workflow_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.lindo.ai/v1/ai/workspace/website/status/{workflow_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lindo.ai/v1/ai/workspace/website/status/{workflow_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.lindo.ai/v1/ai/workspace/website/status/{workflow_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.lindo.ai/v1/ai/workspace/website/status/{workflow_id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.lindo.ai/v1/ai/workspace/website/status/{workflow_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "success": true,
  "done": true,
  "status": "complete",
  "workflow_id": "wf_abc123xyz789",
  "message": "Page published at /about",
  "poll_after_ms": 5000,
  "result": {
    "website_id": "website_def456",
    "pages_summary": {
      "total": 5,
      "complete": 4,
      "running": 0,
      "errored": 1
    },
    "pages": [
      {
        "slug": "about",
        "path": "/about",
        "status": "complete",
        "page_id": "page_xyz789",
        "error_message": "<string>"
      }
    ],
    "website_name": "Acme Bakery",
    "domain": "https://acmebakery.com",
    "home_page_id": "page_home_abc"
  },
  "error": "Insufficient credits: daily limit reached"
}
{
"success": false,
"error": "<string>"
}
{
"success": false,
"error": "<string>"
}
{
"success": false,
"error": "<string>"
}
{
"success": false,
"error": "<string>"
}

Authorizations

Authorization
string
header
required

Enter your API key (starts with lindo_sk_)

Path Parameters

workflow_id
string
required

The workflow_id returned by the create-website endpoint

Example:

"wf_abc123xyz789"

Response

Status retrieved

success
enum<boolean>
required

The status poll succeeded. This is independent of whether the workflow itself succeeded; check status for that.

Available options:
true
Example:

true

done
boolean
required

True once the workflow has reached a terminal state (complete, partial, or errored). While false, clients should poll again after poll_after_ms.

Example:

true

status
enum<string>
required
  • scheduled: queued to run in the future
  • running: currently executing
  • complete: fully finished with no errors
  • partial: finished, but some sub-steps (e.g. individual pages of a website) failed
  • errored: the workflow itself failed
Available options:
scheduled,
running,
complete,
partial,
errored
Example:

"complete"

workflow_id
string
required

The workflow_id you polled

Example:

"wf_abc123xyz789"

message
string
required

Human-readable, safe-to-quote status message. Agents can surface this directly to end users.

Example:

"Page published at /about"

poll_after_ms
number

When done is false, suggested delay before the next status check, in milliseconds. Absent when done is true.

Example:

5000

result
object

Present as soon as the website record is created. While running, pages_summary and pages track per-page progress. When status is complete, every page succeeded; when partial, the website exists but one or more additional pages failed.

error
string

When status is errored, a machine-readable error message

Example:

"Insufficient credits: daily limit reached"