Skip to content
Docs
Open app
Quickstart

Hosting quickstart

Any folder with an index.html can go live on Soartana Hosting in a few minutes. Deploy it once from the dashboard, then run the same four calls from a script or your CI.

How do I deploy from the dashboard?

  1. Open Hosting in your workspace and choose New site. The address slug becomes the site's default address: https://<slug>.soartana.app/.
  2. On the site page, drop your build folder or pick it. Hidden files and node_modules/ are left out, and every deploy gets its own preview link.
  3. When the preview looks right, Publish the deploy. Production now serves it, and Instant Rollback brings any earlier deploy back in one click.

How do I get an API key?

On the site page, open API keys and create a key (workspace admins only). The key starts with shk_ and is shown once, so store it in your CI secrets. A key can deploy, promote and roll back only the site it belongs to. It stops working when it is revoked, when its creator leaves the workspace or loses their Hosting seat, or when the workspace's hosting plan lapses.

Shell setup
export SOARTANA_API_KEY="shk_..."   # never commit it
export API="https://api.soartana.com/api/public/hosting/v1"

How do I deploy with the API?

The API follows the dashboard's own flow: send the manifest, upload each file to its presigned URL, finalize, then promote. The example ships a single index.html; for a real build, list every file and repeat the upload for each entry of data.uploads.

1. Start the deploy: send the manifest, get one presigned PUT per file
SIZE=$(wc -c < index.html | tr -d ' ')
curl -sS -X POST "$API/deploys" \
  -H "Authorization: Bearer $SOARTANA_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"files\":[{\"path\":\"index.html\",\"size\":$SIZE,\"content_type\":\"text/html\"}]}" \
  > deploy.json
DEPLOY_ID=$(jq -r '.data.deploy.id' deploy.json)
2. Upload the file with every header the API returned
jq -r '.data.uploads[0].headers | to_entries[] | "header = \"\(.key): \(.value)\""' deploy.json > put.cfg
curl -sS -X PUT "$(jq -r '.data.uploads[0].url' deploy.json)" -K put.cfg --data-binary @index.html
3. Finalize: every file is checked for presence and exact size
curl -sS -X POST "$API/deploys/$DEPLOY_ID/finalize" \
  -H "Authorization: Bearer $SOARTANA_API_KEY"
4. Promote the deploy to production
curl -sS -X POST "$API/deploys/$DEPLOY_ID/promote" \
  -H "Authorization: Bearer $SOARTANA_API_KEY"

Presigned URLs live 15 minutes and are create-only: a retried upload that answers 412 is already stored. A finalize that finds a missing or short file marks the deploy failed with the reason and answers 422 HOSTING_DEPLOY_INCOMPLETE; start a new deploy.

Which limits apply?

  • 120 requests per minute per key (429 beyond).
  • Up to 2,000 files per deploy and 100 MB per file; the total deploy size and the number of sites follow the workspace's hosting plan.
  • Paths are relative, with no leading slash, no .. and no backslashes.

Every number per plan is on Limits and plans; the codes the API answers with are on Errors.

Where next?