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>"
}Workflows
Check status of a website-creation workflow
Poll the status of a website-creation workflow started via POST /v1/ai/workspace/website. Aggregates the home page plus every additional page: status is only complete when every page has succeeded, partial if the website exists but one or more pages failed.
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>"
}Path Parameters
Response
Status retrieved
scheduled: queued to run in the futurerunning: currently executingcomplete: fully finished with no errorspartial: finished, but some sub-steps (e.g. individual pages of a website) failederrored: the workflow itself failed
Available options:
scheduled, running, complete, partial, errored Example:
"complete"
Was this page helpful?

