Skip to content
View raw ↗

Quickstart ​

Your Site Star account is also your developer account. Create an account-level API key from the account page, then use HTTP or MCP to create and manage sites. This quickstart uses HTTP to create a site, follow its build, and request ongoing work. Run these examples on your server or in a terminal with curl and jq.

1. Get a key and check access ​

  1. Sign up for Site Star, or sign in to your existing account.
  2. Open your account page and go to Access.
  3. Create an API key and choose Entire account.
  4. Save the key and use it as the bearer credential in your application or MCP client.

No separate developer account is required. An account-level key lets your integration create sites and use the published HTTP and MCP capabilities across your account, subject to the key's permissions. Choose a specific site instead when an integration should only access that site. See authentication for details.

sh
export SITESTAR_API_URL="https://api.sitestar.io/api/v1/app"
export SITESTAR_API_KEY="YOUR_ACCOUNT_API_KEY"

curl --fail-with-body "$SITESTAR_API_URL/sites?limit=10" \
  -H "Authorization: Bearer $SITESTAR_API_KEY"

HTTP returns the operation payload directly: a list has items and possibly next; there is no additional data wrapper. An empty list is a valid result for a new account.

2. Create a site ​

sh
SITE_ID=$(curl --fail-with-body "$SITESTAR_API_URL/sites" \
  -H "Authorization: Bearer $SITESTAR_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"name":"Acme Plumbing","hostingMode":"managed","onboardingDomain":"example.com"}' \
  | jq -er '.id')
export SITE_ID

Store SITE_ID alongside your application's customer ID. There is no need to create a separate Site Star account per customer. onboardingDomain identifies an existing website for onboarding; it does not attach or verify a production domain. Omit it when there is no existing site.

3. Follow setup and review the draft ​

sh
curl --fail-with-body "$SITESTAR_API_URL/sites/$SITE_ID" \
  -H "Authorization: Bearer $SITESTAR_API_KEY"

curl --fail-with-body "$SITESTAR_API_URL/sites/$SITE_ID/owner-blocked" \
  -H "Authorization: Bearer $SITESTAR_API_KEY"

Poll with a delay and a deadline. provisioning means setup is running; building means the initial build is underway. Stop on failed and inspect the failure. The owner-blocked result's items includes a kind: "build" item when a draft awaits your decision; its id is the build ID. Require complete: true before concluding that nothing needs attention.

Inspect the actual draft before deciding. Follow sites and launch to approve or request a revision, then preview and confirm billing to launch. These are deliberate customer actions, not automatic polling steps.

4. Request an ongoing change ​

Once the site's initial build has completed:

sh
curl --fail-with-body "$SITESTAR_API_URL/sites/$SITE_ID/tasks" \
  -H "Authorization: Bearer $SITESTAR_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"title":"Update our opening hours","description":"Show Monday–Friday, 8am–6pm on the contact page.","idempotencyKey":"acme-hours-001"}'

Save the returned task.id. Reuse the same idempotency key when retrying that request. A receipt means the request was recorded, not that the website changed. Continue with tasks and change review.