Skip to content

Websites

Sites built with AI and hosted here.

Open Websites
Checked against the dashboard on November 19, 2026

Websites has two public methods today, both on the Account microservice and both read-only. Making a website, uploading files, publishing a version, going back to an earlier one, connecting a domain, reading traffic and changing a plan are done in the dashboard. They have no public method.

Send a request with your key:

curl -s https://xuda.ai/cpi/get_account_static_websites \
  -H 'content-type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
const res = await fetch('https://xuda.ai/cpi/get_account_static_websites', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ api_key: 'YOUR_API_KEY' }),
});
const { code, data } = await res.json();
import requests

res = requests.post(
    'https://xuda.ai/cpi/get_account_static_websites',
    json={'api_key': 'YOUR_API_KEY'},
)

List your websites

get_account_static_websites takes no field besides your key. It answers every website you own, up to 1,000, as rows:

json
{
  "code": 1,
  "data": {
    "rows": [
      { "id": "WEBSITE_ID", "value": { "app_name": "Bean There", "app_type": "static_website" } }
    ]
  }
}

Each id is the website's own id and each value is the website's record, the same one the dashboard reads. It holds the site's name, its plan and its publish details. Websites shared with you are not in this list, only the ones you own, whichever workspace they are filed in.

Read the image modes

get_site_build_image_modes tells you which kinds of pictures the AI builder may use for your account. It is the same answer the builder uses to lock or open its image choices.

bash
curl -s https://xuda.ai/cpi/get_site_build_image_modes \
  -H 'content-type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
json
{
  "code": 1,
  "data": {
    "svg": true,
    "stock": true,
    "gen_low": false,
    "gen_high": false,
    "upgrade": true,
    "reason": "AI image generation needs a paid website plan and a workspace credit plan. Upgrade to unlock it."
  }
}

Methods

This is the same Account table that AI Workspace, Cloud Hosting and On-Prem each reference their own slice of.

How is this guide?

Last updated on November 12, 2026