# Soartana developer docs These docs cover the public Soartana APIs: the Hosting deploy API for publishing static sites, and the Drive API's changelog and compatibility rules. Start with the quickstart, or hand the whole job to an AI agent. ## Where do I start? - [Hosting quickstart](/docs/developer/hosting/v1/quickstart): your first deploy from the dashboard, then from a script. - [Ship with an AI agent](/docs/developer/ship-with-an-ai-agent): one key and one prompt, and your agent publishes the site. - [Custom domains](/docs/developer/hosting/v1/custom-domains): Domain Connect or two DNS records, verified with HTTPS. ## Which references are there? - [Hosting API reference](/docs/developer/hosting/v1/api), generated from the route contract, also as [OpenAPI 3.1](/openapi/hosting-v1.json). - [Limits and plans](/docs/developer/hosting/v1/limits) and [Errors](/docs/developer/hosting/v1/errors). - [Hosting changelog](/docs/developer/hosting/v1/changelog), [Drive changelog](/docs/developer/drive/v1/changelog) and the [Drive deprecation policy](/docs/developer/drive/v1/deprecation-policy). ## Can my tools read these docs? Every page has a markdown mirror: add `.md` to its address (this page is [index.md](/docs/index.md)). [llms.txt](/docs/llms.txt) lists every page for language models, and [llms-full.txt](/docs/llms-full.txt) holds them all in one file. --- # Ship with an AI agent The only thing your agent needs from you is a site API key; every step after that can be delegated. Paste the prompt below into Claude Code, ChatGPT, Cursor or any agent that can run commands, and it ships the site with the deploy API. ## What does the agent need from me? 1. A Soartana account and a site: open **Hosting** and choose **New site**. 2. A site API key: on the site page open **API keys**, create one, and copy it. It is shown once. 3. The key in your agent's environment as `SOARTANA_API_KEY`. Shell setup ```sh export SOARTANA_API_KEY="shk_..." # never commit it export API="https://api.soartana.com/api/public/hosting/v1" ``` ## What do I paste into the agent? Agent prompt ```text You are deploying a static website to Soartana Hosting for me. 1. Read https://app.soartana.com/docs/llms.txt, then https://app.soartana.com/docs/developer/ship-with-an-ai-agent.md. 2. My site API key is in the environment variable SOARTANA_API_KEY (it starts with shk_). Never print it, log it or commit it. 3. Build the site if it needs a build, and find the output folder that contains index.html. 4. Deploy that folder with the Soartana Hosting deploy API v1 at https://api.soartana.com/api/public/hosting/v1: create the deploy from a manifest of every file, PUT each file to its presigned URL with every header the API returned, finalize the deploy, then promote it. 5. If a call fails, read error_code and message, fix the cause and start a new deploy. Do not retry a failed deploy. 6. When it is live, tell me the site's default_url. ``` > **Warning:** The key can deploy, promote and roll back this one site. Keep it out of chats you share and out of your repository; revoke it on the API keys tab if it leaks. ## Which calls will the agent make? The same four calls a person makes, shown for one `index.html`: 1\. Start the deploy: send the manifest, get one presigned PUT per file ```sh 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 ```sh 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 ```sh curl -sS -X POST "$API/deploys/$DEPLOY_ID/finalize" \ -H "Authorization: Bearer $SOARTANA_API_KEY" ``` 4\. Promote the deploy to production ```sh curl -sS -X POST "$API/deploys/$DEPLOY_ID/promote" \ -H "Authorization: Bearer $SOARTANA_API_KEY" ``` ## Is there a script that does all of it? Yes. This one file has no dependencies, uploads a whole folder and prints the live address. Run it with `node deploy.mjs ./dist`. deploy.mjs ```js // deploy.mjs. Usage: SOARTANA_API_KEY=shk_... node deploy.mjs ./dist import { readdir, readFile, stat } from "node:fs/promises"; import { join, relative, sep } from "node:path"; const API = "https://api.soartana.com/api/public/hosting/v1"; const KEY = process.env.SOARTANA_API_KEY; const root = process.argv[2] ?? "dist"; if (!KEY) throw new Error("Set SOARTANA_API_KEY to a site API key."); async function walk(dir) { const files = []; for (const entry of await readdir(dir, { withFileTypes: true })) { if (entry.name === "node_modules") continue; if (entry.name.startsWith(".") && entry.name !== ".well-known") continue; const full = join(dir, entry.name); if (entry.isDirectory()) files.push(...(await walk(full))); else if (entry.isFile()) files.push(full); } return files; } async function call(method, path, body) { const res = await fetch(API + path, { method, headers: { Authorization: `Bearer ${KEY}`, ...(body ? { "Content-Type": "application/json" } : {}) }, body: body ? JSON.stringify(body) : undefined, }); const json = await res.json(); if (!json.success) throw new Error(`${res.status} ${json.error_code ?? ""} ${json.message}`); return json.data; } const files = []; for (const full of await walk(root)) { files.push({ path: relative(root, full).split(sep).join("/"), size: (await stat(full)).size }); } const { deploy, uploads } = await call("POST", "/deploys", { files }); for (const upload of uploads) { const body = await readFile(join(root, upload.path)); const res = await fetch(upload.url, { method: "PUT", headers: upload.headers, body }); // 412 means this exact file is already stored (a retried upload). if (!res.ok && res.status !== 412) throw new Error(`Upload of ${upload.path} answered ${res.status}`); } await call("POST", `/deploys/${deploy.id}/finalize`); const site = await call("POST", `/deploys/${deploy.id}/promote`); console.log(`Live at ${site.default_url}`); ``` ## Where does the agent read more? - [llms.txt](/docs/llms.txt): the index for agents, with the base URL and the auth header. - [API reference](/docs/developer/hosting/v1/api) and [the OpenAPI document](/openapi/hosting-v1.json) for every field. - [Errors](/docs/developer/hosting/v1/errors) for every code, and [Limits and plans](/docs/developer/hosting/v1/limits) for the caps. --- # 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://.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 ```sh 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 ```sh 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 ```sh 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 ```sh curl -sS -X POST "$API/deploys/$DEPLOY_ID/finalize" \ -H "Authorization: Bearer $SOARTANA_API_KEY" ``` 4\. Promote the deploy to production ```sh 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](/docs/developer/hosting/v1/limits); the codes the API answers with are on [Errors](/docs/developer/hosting/v1/errors). ## Where next? - [Custom domains](/docs/developer/hosting/v1/custom-domains): serve the site on your own hostname. - [API reference](/docs/developer/hosting/v1/api): every endpoint with its fields. - [Ship with an AI agent](/docs/developer/ship-with-an-ai-agent): hand these steps to Claude Code, ChatGPT or Cursor. --- # Hosting API reference The deploy API v1 lives under /api/public/hosting/v1 and acts on the site its key belongs to, so no site id appears in a path. This reference is generated from the same route contract the API validates against. ## How do requests authenticate? Send a site API key as a bearer token on every request. Keys are created on the site's **API keys** tab and shown once; see [the quickstart](/docs/developer/hosting/v1/quickstart). Request header ```text Authorization: Bearer shk_... ``` The budget is 120 requests / minute per key. ## What do responses look like? Successful responses are `{ success: true, message, data }` and lists add `meta` with paging. Errors are `{ success: false, message, error_code?, errors? }`: branch on `error_code` and show `message`. Every code is listed on [Errors](/docs/developer/hosting/v1/errors). The same contract as an OpenAPI 3.1 document: [/openapi/hosting-v1.json](/openapi/hosting-v1.json). ## Endpoints - [GET /api/public/hosting/v1/site](#get-site) - [GET /api/public/hosting/v1/deploys](#list-deploys) - [POST /api/public/hosting/v1/deploys](#create-deploy) - [GET /api/public/hosting/v1/deploys/:deployId](#get-deploy) - [POST /api/public/hosting/v1/deploys/:deployId/finalize](#finalize-deploy) - [POST /api/public/hosting/v1/deploys/:deployId/promote](#promote-deploy) - [POST /api/public/hosting/v1/rollback](#rollback) ### GET /api/public/hosting/v1/site The key's site with its production deploy and the domains pointed at it. GET /api/public/hosting/v1/site: response 200 | Field | Type | Required | | --- | --- | --- | | `success` | `true` | required | | `message` | `string` | required | | `data` | `object` | required | | `data.publication_receipt` | `object \| null` | optional | | `data.publication_receipt.event_id` | `uuid` | required | | `data.publication_receipt.origin_product` | `"formlab" \| "arch" \| "hosting"` | required | | `data.id` | `uuid` | required | | `data.slug` | `string` | required | | `data.name` | `string` | required | | `data.status` | `"active" \| "archived"` | required | | `data.production_deploy_id` | `uuid \| null` | required | | `data.last_published_at` | `string \| null` | optional | | `data.primary_domain` | `object \| null` | optional | | `data.primary_domain.hostname` | `string` | required | | `data.primary_domain.status` | `"pending" \| "verified" \| "failed" \| "removed"` | required | | `data.primary_domain.cert_status` | `string \| null` | required | | `data.arch_site_id` | `uuid \| null` | optional | | `data.default_url` | `string` | required | | `data.created_at` | `string` | required | | `data.updated_at` | `string` | required | | `data.production_deploy` | `object \| null` | required | | `data.production_deploy.id` | `uuid` | required | | `data.production_deploy.site_id` | `uuid` | required | | `data.production_deploy.status` | `"uploading" \| "ready" \| "failed" \| "discarded"` | required | | `data.production_deploy.source` | `"upload" \| "api" \| "arch"` | required | | `data.production_deploy.file_count` | `integer` | required | | `data.production_deploy.byte_size` | `integer` | required | | `data.production_deploy.created_by` | `uuid` | required | | `data.production_deploy.created_at` | `string` | required | | `data.production_deploy.finalized_at` | `string \| null` | required | | `data.production_deploy.failed_reason` | `string \| null` | required | | `data.production_deploy.is_production` | `boolean` | required | | `data.production_deploy.preview_url` | `string` | required | | `data.production_deploy.preview` | `boolean` | optional | | `data.domains` | `object[]` | required | | `data.domains[].id` | `uuid` | required | | `data.domains[].hostname` | `string` | required | | `data.domains[].kind` | `"apex" \| "subdomain"` | required | | `data.domains[].status` | `"pending" \| "verified" \| "failed" \| "removed"` | required | | `data.domains[].failure_reason` | `string \| null` | required | | `data.domains[].target_type` | `"none" \| "forms" \| "site" \| "email" \| "portal" \| "tracking" \| "members"` | required | | `data.domains[].target_id` | `uuid \| null` | required | | `data.domains[].cert_status` | `string \| null` | required | | `data.domains[].records` | `object[]` | required | | `data.domains[].records[].type` | `"TXT" \| "CNAME"` | required | | `data.domains[].records[].name` | `string` | required | | `data.domains[].records[].value` | `string` | required | | `data.domains[].records[].purpose` | `"ownership" \| "routing"` | required | | `data.domains[].records[].status` | `"pending" \| "ok" \| "failed"` | required | | `data.domains[].records[].checked_at` | `string \| null` | required | | `data.domains[].verified_at` | `string \| null` | required | | `data.domains[].last_checked_at` | `string \| null` | required | | `data.domains[].created_at` | `string` | required | | `data.primary_domain_id` | `uuid \| null` | optional | ### GET /api/public/hosting/v1/deploys The site's 50 newest deploys, newest first. GET /api/public/hosting/v1/deploys: response 200 | Field | Type | Required | | --- | --- | --- | | `success` | `true` | required | | `message` | `string` | required | | `data` | `object[]` | required | | `data[].id` | `uuid` | required | | `data[].site_id` | `uuid` | required | | `data[].status` | `"uploading" \| "ready" \| "failed" \| "discarded"` | required | | `data[].source` | `"upload" \| "api" \| "arch"` | required | | `data[].file_count` | `integer` | required | | `data[].byte_size` | `integer` | required | | `data[].created_by` | `uuid` | required | | `data[].created_at` | `string` | required | | `data[].finalized_at` | `string \| null` | required | | `data[].failed_reason` | `string \| null` | required | | `data[].is_production` | `boolean` | required | | `data[].preview_url` | `string` | required | | `data[].preview` | `boolean` | optional | | `meta` | `object` | required | | `meta.current_page` | `integer` | required | | `meta.last_page` | `integer` | required | | `meta.per_page` | `integer` | required | | `meta.total` | `integer` | required | | `meta.from` | `integer \| null` | required | | `meta.to` | `integer \| null` | required | ### POST /api/public/hosting/v1/deploys Start a deploy from a manifest: returns one presigned PUT (15 min) per file; PUT each file with the returned headers, then finalize. 422 HOSTING\_MANIFEST\_INVALID / HOSTING\_DEPLOY\_TOO\_LARGE / HOSTING\_TOO\_MANY\_PENDING. The deploy is always recorded with source 'api' (a body \`source\` is ignored). POST /api/public/hosting/v1/deploys: request body (JSON) | Field | Type | Required | | --- | --- | --- | | `source` | `"upload" \| "api" \| "arch"` | optional | | `cms_bindings_hash` | `string` | optional | | `files` | `object[]` | required | | `files[].path` | `string` | required | | `files[].size` | `number` | required | | `files[].content_type` | `string` | optional | POST /api/public/hosting/v1/deploys: response 201 | Field | Type | Required | | --- | --- | --- | | `success` | `true` | required | | `message` | `string` | required | | `data` | `object` | required | | `data.deploy` | `object` | required | | `data.deploy.id` | `uuid` | required | | `data.deploy.site_id` | `uuid` | required | | `data.deploy.status` | `"uploading" \| "ready" \| "failed" \| "discarded"` | required | | `data.deploy.source` | `"upload" \| "api" \| "arch"` | required | | `data.deploy.file_count` | `integer` | required | | `data.deploy.byte_size` | `integer` | required | | `data.deploy.created_by` | `uuid` | required | | `data.deploy.created_at` | `string` | required | | `data.deploy.finalized_at` | `string \| null` | required | | `data.deploy.failed_reason` | `string \| null` | required | | `data.deploy.is_production` | `boolean` | required | | `data.deploy.preview_url` | `string` | required | | `data.deploy.preview` | `boolean` | optional | | `data.uploads` | `object[]` | required | | `data.uploads[].path` | `string` | required | | `data.uploads[].url` | `string` | required | | `data.uploads[].headers` | `Record` | required | | `data.reused` | `string[]` | optional | ### GET /api/public/hosting/v1/deploys/:deployId One deploy of the site. GET /api/public/hosting/v1/deploys/:deployId: path parameters | Field | Type | Required | | --- | --- | --- | | `deployId` | `uuid` | required | GET /api/public/hosting/v1/deploys/:deployId: response 200 | Field | Type | Required | | --- | --- | --- | | `success` | `true` | required | | `message` | `string` | required | | `data` | `object` | required | | `data.id` | `uuid` | required | | `data.site_id` | `uuid` | required | | `data.status` | `"uploading" \| "ready" \| "failed" \| "discarded"` | required | | `data.source` | `"upload" \| "api" \| "arch"` | required | | `data.file_count` | `integer` | required | | `data.byte_size` | `integer` | required | | `data.created_by` | `uuid` | required | | `data.created_at` | `string` | required | | `data.finalized_at` | `string \| null` | required | | `data.failed_reason` | `string \| null` | required | | `data.is_production` | `boolean` | required | | `data.preview_url` | `string` | required | | `data.preview` | `boolean` | optional | ### POST /api/public/hosting/v1/deploys/:deployId/finalize Verify every uploaded file and mark the deploy ready; 422 HOSTING\_DEPLOY\_INCOMPLETE (the deploy is then failed and its files deleted). POST /api/public/hosting/v1/deploys/:deployId/finalize: path parameters | Field | Type | Required | | --- | --- | --- | | `deployId` | `uuid` | required | POST /api/public/hosting/v1/deploys/:deployId/finalize: response 200 | Field | Type | Required | | --- | --- | --- | | `success` | `true` | required | | `message` | `string` | required | | `data` | `object` | required | | `data.id` | `uuid` | required | | `data.site_id` | `uuid` | required | | `data.status` | `"uploading" \| "ready" \| "failed" \| "discarded"` | required | | `data.source` | `"upload" \| "api" \| "arch"` | required | | `data.file_count` | `integer` | required | | `data.byte_size` | `integer` | required | | `data.created_by` | `uuid` | required | | `data.created_at` | `string` | required | | `data.finalized_at` | `string \| null` | required | | `data.failed_reason` | `string \| null` | required | | `data.is_production` | `boolean` | required | | `data.preview_url` | `string` | required | | `data.preview` | `boolean` | optional | ### POST /api/public/hosting/v1/deploys/:deployId/promote Make a ready deploy the site's production deploy. POST /api/public/hosting/v1/deploys/:deployId/promote: path parameters | Field | Type | Required | | --- | --- | --- | | `deployId` | `uuid` | required | POST /api/public/hosting/v1/deploys/:deployId/promote: response 200 | Field | Type | Required | | --- | --- | --- | | `success` | `true` | required | | `message` | `string` | required | | `data` | `object` | required | | `data.publication_receipt` | `object \| null` | optional | | `data.publication_receipt.event_id` | `uuid` | required | | `data.publication_receipt.origin_product` | `"formlab" \| "arch" \| "hosting"` | required | | `data.id` | `uuid` | required | | `data.slug` | `string` | required | | `data.name` | `string` | required | | `data.status` | `"active" \| "archived"` | required | | `data.production_deploy_id` | `uuid \| null` | required | | `data.last_published_at` | `string \| null` | optional | | `data.primary_domain` | `object \| null` | optional | | `data.primary_domain.hostname` | `string` | required | | `data.primary_domain.status` | `"pending" \| "verified" \| "failed" \| "removed"` | required | | `data.primary_domain.cert_status` | `string \| null` | required | | `data.arch_site_id` | `uuid \| null` | optional | | `data.default_url` | `string` | required | | `data.created_at` | `string` | required | | `data.updated_at` | `string` | required | ### POST /api/public/hosting/v1/rollback Instant rollback: point production at an earlier ready deploy of the site. POST /api/public/hosting/v1/rollback: request body (JSON) | Field | Type | Required | | --- | --- | --- | | `deploy_id` | `uuid` | required | POST /api/public/hosting/v1/rollback: response 200 | Field | Type | Required | | --- | --- | --- | | `success` | `true` | required | | `message` | `string` | required | | `data` | `object` | required | | `data.publication_receipt` | `object \| null` | optional | | `data.publication_receipt.event_id` | `uuid` | required | | `data.publication_receipt.origin_product` | `"formlab" \| "arch" \| "hosting"` | required | | `data.id` | `uuid` | required | | `data.slug` | `string` | required | | `data.name` | `string` | required | | `data.status` | `"active" \| "archived"` | required | | `data.production_deploy_id` | `uuid \| null` | required | | `data.last_published_at` | `string \| null` | optional | | `data.primary_domain` | `object \| null` | optional | | `data.primary_domain.hostname` | `string` | required | | `data.primary_domain.status` | `"pending" \| "verified" \| "failed" \| "removed"` | required | | `data.primary_domain.cert_status` | `string \| null` | required | | `data.arch_site_id` | `uuid \| null` | optional | | `data.default_url` | `string` | required | | `data.created_at` | `string` | required | | `data.updated_at` | `string` | required | ## Related pages - [Limits and plans](/docs/developer/hosting/v1/limits) - [Custom domains](/docs/developer/hosting/v1/custom-domains) - [Hosting changelog](/docs/developer/hosting/v1/changelog) --- # Custom domains Every site is live at its default address, and your own domain is optional. Connect it in one step with Domain Connect where your DNS provider supports it, or publish two DNS records yourself; Soartana verifies them and issues the HTTPS certificate. ## What is the default address? Each site is served at `https://.soartana.app/` as soon as a deploy is promoted, with HTTPS included. Nothing to configure. Pointing your own domain at a site needs a paid Hosting plan (Starter or above; see [Limits and plans](/docs/developer/hosting/v1/limits)). On Free, attaching one is refused with `422 HOSTING_CUSTOM_DOMAIN_PLAN` and the site keeps its default address. A domain already connected stays connected if the plan changes later. ## How do I add my domain? 1. In **Settings, Domains**, add the hostname, for example `www.example.com`. Workspace admins only. 2. On the site page, open **Domains** and attach it. The tab shows what to publish until the domain is live. 3. Use Domain Connect if the domain offers it, or add the two records below at your DNS provider with the copy buttons. ## How does Domain Connect work? When your DNS provider supports the open Domain Connect standard and our template, the domain shows a **Connect automatically** button naming the provider. The provider asks you to sign in and approve the two records, then sends you straight back to Soartana, and verification runs at once. - Only workspace admins see the button, and only while the domain is not yet verified. - Providers without the template, and root domains such as `example.com`, get no button: the records table below is the way in. - Nothing is written to your DNS until you approve it at the provider. ## Which DNS records do I add? Domain verification and routing records | Type | Name | Value | Purpose | | --- | --- | --- | --- | | TXT | `_soartana.www.example.com` | `soartana-verify=` | Proves you own the domain | | CNAME | `www.example.com` | `edge.soartana.app` | Points traffic to Soartana | Some providers append your domain to the name automatically; if so, enter only the part before it (`_soartana.www` and `www`). For a root domain the routing record is still a CNAME: use a provider that flattens CNAMEs at the apex (CNAME flattening, ALIAS or ANAME records). ## What do verified and certificate mean? - **Verified**: both records were found. The TXT proves ownership and the CNAME routes traffic. A hostname can be verified by one workspace only; the first to verify it keeps it. - **Certificate**: once verified, Soartana requests an HTTPS certificate for the hostname. It is issued automatically, usually within minutes. - Verified domains are re-checked regularly. If the CNAME disappears, the domain becomes `failed` after repeated misses; it is never removed for you. ## How long does verification take? DNS changes can take up to 72 hours to propagate. While a domain is pending, Soartana re-checks it every 10 minutes for 72 hours, and the first check waits a little after you add the domain so records published right away verify on the first pass. **Verify now** runs a check immediately; lookups go to your domain's authoritative nameservers, so a record is seen as soon as your provider serves it. Check what your nameservers answer ```sh dig +short TXT _soartana.www.example.com dig +short CNAME www.example.com ``` After 72 hours without both records the domain is marked `failed` with the missing record; fix it and use **Retry validation**. To deploy to the site meanwhile, follow [the quickstart](/docs/developer/hosting/v1/quickstart) or [ship with an AI agent](/docs/developer/ship-with-an-ai-agent). --- # Hosting limits and plans What a workspace can host depends on its Hosting plan, while file, path and request limits are the same on every plan. The numbers below are read from the live plan catalog, so this page changes when the catalog does. ## What does each plan include? Hosting plans and their limits | Plan | Price per month | Sites | Deploy size | Deploys kept per site | | --- | --- | --- | --- | --- | | Free | Free | 1 | 50 MB | 5 | | Starter | USD 5.00 | 1 | 250 MB | 5 | | Plus | USD 12.00 | 5 | 250 MB | 10 | | Arch Site | USD 15.00 | 1 | 500 MB | 20 | | Arch Pro | USD 35.00 | 3 | 500 MB | 20 | | Arch Managed | USD 105.00 | 10 | 500 MB | 20 | Free sites stay on their soartana.app address; every paid plan can point custom domains at its sites (see [Custom domains](/docs/developer/hosting/v1/custom-domains)). Going over a limit after a downgrade deletes nothing: only creating one more site (`422 HOSTING_SITE_LIMIT`) or a deploy over the new size cap is refused. ## Which limits apply to every deploy? - 2,000 files per deploy and 100 MB per file (`422 HOSTING_DEPLOY_TOO_LARGE` beyond). - A path is at most 1,024 characters; keep it under 900 bytes of UTF-8 so it always fits the storage object name. Only `.well-known` may start with a dot. - At most 3 deploys can be uploading at once per site (`422 HOSTING_TOO_MANY_PENDING`). ## Which limits apply to an API key? - 120 requests per minute per key (`429 RATE_LIMIT_EXCEEDED` beyond). - Listing deploys answers the newest 50. Each code above is explained on [Errors](/docs/developer/hosting/v1/errors); the fields are in the [API reference](/docs/developer/hosting/v1/api). --- # Hosting API errors A failed call answers with success false, a readable message and a stable error\_code. Branch on the code, show the message, and use the table below to decide whether to retry. ## Which codes can the API return? Deploy API error codes | Status | Code | Meaning | | --- | --- | --- | | 400, 413, 415 | `HTTP_ERROR` | The server could not read the request: malformed JSON (400), a body over the server's size limit (413) or a Content-Type other than application/json (415). | | 401 | `UNAUTHENTICATED` | Missing, unknown or revoked key, or its site, workspace, creator seat or hosting plan is no longer active. No further detail is given. | | 404 | `HOSTING_DEPLOY_NOT_FOUND` | The deploy does not exist or does not belong to the key's site. | | 409 | `HOSTING_DEPLOY_NOT_UPLOADING` | Finalize was called on a deploy that is no longer uploading. | | 409 | `HOSTING_DEPLOY_NOT_READY` | Promote or rollback named a deploy that is not ready. | | 409 | `HOSTING_DEPLOY_IS_PREVIEW` | Promote or rollback named an Arch editor preview (preview: true in the deploy list). A preview was never live and never goes live this way: publish the site from Arch. | | 409 | `HOSTING_SITE_IN_ARCH_TRASH` | Promote or rollback was refused because the site's website is in Arch's Trash. Restore it in Arch to publish it again. | | 422 | `VALIDATION_ERROR` | The body or a path id has the wrong shape (for example a manifest entry without a path, or a deploy id that is not a UUID). The errors field names each field. | | 422 | `HOSTING_MANIFEST_INVALID` | A manifest path is empty, absolute, contains .. or a dot-segment, or is too long. | | 422 | `HOSTING_DEPLOY_TOO_LARGE` | Too many files, one file too large, or the whole deploy over the hosting plan's size cap. | | 422 | `HOSTING_TOO_MANY_PENDING` | 3 deploys are already uploading for this site. | | 422 | `HOSTING_DEPLOY_INCOMPLETE` | Finalize found a missing or wrong-sized file; the deploy is now failed and its files are deleted. | | 429 | `RATE_LIMIT_EXCEEDED` | More than 120 requests in a minute with one key. | | 500 | `INTERNAL_ERROR` | Something failed on Soartana's side. Retry with backoff; a deploy that was not created or finalized is safe to start again. | | 409 | `CONFLICT` | Another change to the same record landed at the same moment. Read the current state (for example the deploy list), then repeat the call if it is still needed. | | 503 | `RETRYABLE` | Soartana was briefly busy with a conflicting change. Nothing was saved: wait the seconds in the Retry-After header, then repeat the same call. | ## When should a client retry? - `429`: wait for the next minute, then retry the same call. - `503` (`RETRYABLE`): wait the seconds in the `Retry-After` header, then retry the same call. - `500`: retry with backoff; if it keeps failing, start a new deploy later. - `409` (`CONFLICT`): read the current state first, then repeat the call if it is still needed. - `400`, `413`, `415`, `422` and the other `409` codes: fix the request first; a failed deploy is never resumed, so start a new one. - `401`: check the key on the site's API keys tab; a revoked key never comes back. Field-level problems arrive in `errors`, keyed by field. The plan caps behind the 422 codes are on [Limits and plans](/docs/developer/hosting/v1/limits), the request shapes in the [API reference](/docs/developer/hosting/v1/api), and a working sequence in [the quickstart](/docs/developer/hosting/v1/quickstart). --- # Hosting changelog This log lists changes to Soartana Hosting and its deploy API v1, newest first. Shipping code does not switch a feature on by itself: availability follows the plan and release gates. ## 1.0.0, October 11, 2026 - Deploy API v1 under `/api/public/hosting/v1`, authenticated with per-site API keys (shown once, revocable). See the [API reference](/docs/developer/hosting/v1/api). - Hosting plans on the workspace subscription with per-plan site and deploy-size limits ([Limits and plans](/docs/developer/hosting/v1/limits)). - A default `.soartana.app` address for every site, served from the edge. - Custom domains with TXT ownership and CNAME routing records, checked against the domain's authoritative nameservers ([Custom domains](/docs/developer/hosting/v1/custom-domains)). - A per-site setup checklist in the dashboard. --- # Drive Developer API changelog This log records changes to the Drive Developer API v1, newest first. A source release does not activate anything in production: plan, release and regulated-profile gates decide availability. ## 1.0.0-source.1, August 11, 2026 - OpenAPI 3.1 contract generated from the public v1 route contracts: [openapi.json](/developer/drive/v1/openapi.json). - Generated TypeScript SDK, safe token helper, examples, and dual-key webhook verification. - Diamond-tier developer console with scoped roots, diagnostics, audit visibility, and canonical quota overview. - Sandbox, regulated API activation, package publication, and production composition remain disabled pending independent gates. Compatibility rules are on [Drive deprecation policy](/docs/developer/drive/v1/deprecation-policy). For publishing sites, see [the Hosting quickstart](/docs/developer/hosting/v1/quickstart) and the [docs home](/docs). --- # Drive API compatibility and deprecation The /api/drive/v1 path is the major compatibility boundary of the Drive API. Additive changes ship within v1, and anything breaking waits for a new major version with at least a year of support for the old one. ## What counts as a breaking change? - Additive optional fields are non-breaking; clients must ignore unknown fields. - Breaking field, input, or authorization changes require a new major version. - Deprecated operations receive at least 365 days of support unless an immediate security, privacy, legal, or integrity risk requires earlier action. - Responses use `Deprecation`, `Sunset` and `Link` headers, and the changelog names the successor and migration path. - Versions remain available while regulated retention, export, recovery, or legal-hold obligations depend on them. Every dated change is in the [Drive changelog](/docs/developer/drive/v1/changelog). Hosting follows the same rule for its v1 ([Hosting changelog](/docs/developer/hosting/v1/changelog)); the [docs home](/docs) lists every API. --- # Resell Soartana to your clients An agency can either let each client pay Soartana and earn the partner share, or pay for the client itself and bill the client on its own Stripe account. This guide sets up the second way with recurring invoices and explains what changes for statements and payouts. ## Which model fits your agency? Client pays compared with agency pays | | Client pays Soartana | Agency pays and resells | | --- | --- | --- | | Who Soartana bills | The client | Your agency | | What you earn | A 30% partner share of each paid plan invoice | Your own margin: you set the price your client pays you | | Partner share | Yes, on monthly statements | None: plans your agency pays for earn no share | | Who collects from the client | Soartana | You, on your own Stripe account | Both models use the same agency link between your workspace and the client's. You pick the payer when you add the client in **Agency → Sub-accounts**, and Soartana never moves money between you and your client. ## How do I bill a client on my own Stripe account? 1. Add the client with **Agency pays** as the payer, so your workspace pays for the client's plans. 2. In **Payments → Settings**, connect your Stripe account with a restricted key. Payments go straight to you; Soartana takes no fee on them. 3. Create a customer for the client and choose the client's workspace under **Client Portal**, so its invoices appear in the client's portal. 4. Open **Payments → Recurring** and create a monthly schedule for that customer with your price. Each cycle issues and emails an invoice with a pay link. > **Note:** You are the seller of record for these invoices, so sales tax or VAT on them is yours to charge and report. If you host the client's sites as well, the [Hosting quickstart](/docs/developer/hosting/v1/quickstart) and the [custom domains guide](/docs/developer/hosting/v1/custom-domains) cover deploys and the client's own address. ## How are partner shares paid out? For clients who pay Soartana themselves, every month gets a statement once its 30-day refund window has passed. Download it as a PDF in **Settings → Agency** and request a payout there. Payout methods and their minimums | Method | How it arrives | Smallest request | | --- | --- | --- | | Bank transfer | Sent by hand to your bank account | USD 100.00 | | Wise | Sent by hand to your Wise account | USD 100.00 | | Platform credit | Added to your Soartana credit wallet; it pays a monthly usage invoice when it covers the whole invoice (otherwise your card is charged as usual), never a subscription invoice, and is not withdrawable | USD 25.00 | A balance under USD 25.00 always rolls into the next month. For the plans and limits behind each client's sites, see [limits and plans](/docs/developer/hosting/v1/limits), and for everything else start at the [docs home](/docs). --- # Soartana help center These guides explain how to use each Soartana app and how to run your account and workspace. Pick the app you are working in, or search for a word. ## Which app does what? - [Hosting](/docs/help/hosting): publish a static site, roll back, use your own domain. Working with others: [Hosting as a team](/docs/help/hosting-team). - [Arch](/docs/help/arch): build a site from blocks and publish it to Hosting. - [FormLab](/docs/help/formlab): forms and surveys, shared by link, QR code or embed. - [Drive](/docs/help/drive): files, folders and collaborative documents. - [Slate](/docs/help/slate): documents that people sign online. - [Sync](/docs/help/sync): booking pages for appointments. - [Relay](/docs/help/relay): transactional email from your own domain. - [Broadcast](/docs/help/broadcast): email campaigns and journeys to opted-in audiences. - [LeadDeck](/docs/help/leaddeck): leads, deals and a sales pipeline. - [Nexus](/docs/help/nexus): projects and tasks for a team. - [Bridge](/docs/help/bridge): workflows that connect the apps. - [Soara](/docs/help/soara): the assistant that reads, drafts and asks before it changes anything. ## Where do I manage my account, my team and payment? - [Account](/docs/help/account): sign-in, profile and two-factor protection. - [Workspaces](/docs/help/workspaces): members, invitations, domains and ownership. - [Billing](/docs/help/billing): plans, seats and your payment method. - [Agency](/docs/help/agency): client workspaces and the Client Portal. ## Where are the developer docs? The developer tree documents the public APIs. Start with the [developer overview](/docs), the [Hosting quickstart](/docs/developer/hosting/v1/quickstart) or the [Ship with an AI agent](/docs/developer/ship-with-an-ai-agent) page. ## How do I find a page quickly? Press the slash key anywhere in the docs, or use the search field in the header, and type a word. Every page also has a markdown version: add .md to its address. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Publish a site with Hosting Hosting publishes a static website from a folder of files and keeps every earlier version so you can go back. You can drive it from the dashboard, from the deploy API, or by asking Soara. ## What is a site and what is a deploy? A **site** is one website with its own address. A **deploy** is one uploaded set of files for that site. Only one deploy is live at a time; the others stay ready so you can switch back. - A new deploy starts as `uploading`, becomes `ready` when every file is verified, and is then published to production. - A deploy that is not live can be discarded, which deletes its files. - Every site gets a default address on the Soartana domain the moment it exists, before any DNS work. ## How do I publish my first site? 1. Open Hosting and choose Sites, then create a site and give it a name. 2. Upload the folder that holds your `index.html` from the site page, or run the four-call deploy described in the [quickstart](/docs/developer/hosting/v1/quickstart). 3. Wait for the deploy to show Ready, then promote it. The production card shows Live. > **Tip:** If you have an AI agent, hand it the [Ship with an AI agent](/docs/developer/ship-with-an-ai-agent) page and a site API key instead of doing the steps yourself. ## How do I undo a bad deploy? Open the site, pick an earlier ready deploy and choose rollback. Production points back at it immediately, and the deploy you left stays in the list. Rolling back never deletes anything. ## How do I use my own domain? Add the domain on the site or under Domains, then publish the DNS records shown, or use the one-click Domain Connect flow where your registrar supports it. HTTPS turns on once the records are verified. The [custom domains guide](/docs/developer/hosting/v1/custom-domains) lists both records and what each check means. > **Note:** A custom domain needs a paid Hosting plan. The [limits and plans](/docs/developer/hosting/v1/limits) page lists what each plan includes, read from the live catalog. ## What are site API keys for? A site API key lets a script or an agent deploy to one site without your password. Create it on the site page, keep it in `SOARTANA_API_KEY`, and never paste it into a chat or commit it. The [API reference](/docs/developer/hosting/v1/api) documents every call, and [Errors](/docs/developer/hosting/v1/errors) explains each refusal. ## What can Soara do with my sites? - **Read:** list your sites and their deploys, and read one site or one deploy. - **Draft:** create a site, start a deploy and finalize it. Nothing goes live until you confirm. - **Confirm:** promote a deploy, roll back, attach a domain or discard a deploy. Soara shows a card naming the site and waits for you. ## How do we work on a site as a team? Anyone with Hosting can upload and preview; promote and rollback are one click each, and workspace admins hold the API keys and domains. The [team guide](/docs/help/hosting-team) covers the roles, a review habit, and a GitHub Actions workflow you can copy to deploy from CI. ## Can an agency host client sites? Yes. The Clients tab under Hosting is where an agency manages the sites of its client workspaces. See the [agency guide](/docs/help/agency) for linking a client and handing a site over. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Build a website with Arch Arch is the website builder inside Hosting. You compose pages from blocks, ask an assistant to change them, and publish the result to a live address. ## How is Arch different from Hosting? Hosting serves files you already have. Arch makes the files for you, from blocks, and publishes them onto Hosting. Both use the same access key and the same plan, so there is no second subscription for the builder. If you only want to upload a folder, use [Hosting](/docs/help/hosting) directly. ## How do I start a site? 1. Open Arch and create a project. Each project is one site with its own pages. 2. Pick a starting point, then fill the first page with blocks such as a hero, features, testimonials and a footer. 3. Select a block to change its text, images and style. The Layers outline lists every block on the page. ## Can I change the whole site's footer? Yes. Select the site footer and open its Variants panel. It offers five footer layouts from the section library: Classic link columns, Simple inline links, Columns on a surface, Display wordmark, and Contact details and columns. A layout that needs something your site does not have yet says so: Display wordmark needs the site's wordmark, and Contact details and columns needs its contact strip. Picking a layout adds it as a named variant; Save variants keeps it, and your existing footer stays as it was. ## What else can I set on text and layout? - A split hero can show its photo on either side. - A rich-text section can be aligned to the start or centred. - Headings can be set in italic for a display look, on one block, a page or the site. - A page or the whole site can read right to left, for languages such as Arabic or Hebrew. - The style controls name each font by its face, never by an internal key. ## How do I get both phone and desktop right? The editor has a viewport switch. Edit on Desktop first, then switch to Mobile and reorder blocks there. Dragging a block on the canvas or from the Layers list writes the same order the numeric control writes, and the desktop order is left alone. > **Tip:** Check Mobile before you publish. Most visitors arrive on a phone. ## What can the assistant change? Describe the change in plain words in the assistant panel, for example a new headline or a pricing section. The assistant edits blocks in your draft and shows what changed; it does not publish for you. Read the change before you keep it. > **Note:** The assistant works on the draft. Publishing is always your action. Soara, the assistant in the side panel, uses the same page-building core: it can describe the blocks, plan a new site from a sitemap you approve, compose pages and import an existing site as a **draft** plan; saving those pages, setting the brand, preset, navigation or site-wide style, adding an image and publishing are **confirm** cards that name what changes and wait for you. ## How do I publish, and what happens to deleted pages? Publish from the project to make the current draft live on the site address. A deleted page or project moves to Trash first, where you can restore it. The [custom domains guide](/docs/developer/hosting/v1/custom-domains) applies to Arch sites exactly as it does to uploaded ones. ## What else is in Arch? - Each publish is a Hosting deploy, so the rollback described in the [Hosting guide](/docs/help/hosting) works for Arch sites too. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Collect responses with FormLab FormLab builds forms and surveys and collects the answers in one place. A form is a draft until you publish it, and anyone with the link can answer once it is live. ## How do I build a form? 1. Open FormLab and create a form. It starts as an unpublished draft. 2. Add questions on one or more pages, then add logic to show or skip questions based on earlier answers. 3. Use Preview to answer it as a respondent would before anyone else can. ## How do I put the form in front of people? Publish the form, then open the Publish tab. It offers three ways to share: a link, a QR code you can print, and an embed snippet for your own page. A site hosted on [Hosting](/docs/help/hosting) can embed the form directly. ## Where do I read and sort responses? Open the form and choose Submissions. Pick which questions show as columns, then add labels, a star or a private note to any response. Filters narrow the list by answer, label, date or payment status, and the same columns apply to the export. ## Can a form take a payment or book an appointment? When your workspace has it switched on, a form can include a payment element that charges through your own Stripe account, or an appointment element that offers the booking pages from [Sync](/docs/help/sync). The form lists card payments with their confirmed status, and amounts are always shown in the currency you charged. > **Warning:** Money moves on your Stripe account, not through Soartana. Connect Stripe before you publish a form with a payment element. ## What are survey outcomes? A scored survey can show each respondent a result when they finish. The result is saved with the response and cannot be edited afterwards, so what you read later is what they saw. ## How do I act on a new response? A submitted form is an event that [Bridge](/docs/help/bridge) workflows can start from, for example to notify a teammate or create a lead in [LeadDeck](/docs/help/leaddeck). Soara can list forms, read a form, create a draft form and read responses; changing labels or columns is prepared as a draft for you to accept. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Store and share files in Drive Drive keeps your files and collaborative documents in folders your workspace controls. Sharing is explicit, and anything you delete waits in Trash until you empty it. ## How do I upload and organize files? Open Files and drag files in, or use the upload button. Create folders to group them; a folder opens at its own address, so you can bookmark it. Recent lists what changed lately, Starred holds the files you starred, and Tags lists every tag in use. ## How does sharing work? Share a file or folder with a person or the whole workspace. You grant **viewer** or **editor** access. Ownership is not something a share can grant: only the real owner can delete, and an ownership transfer is its own action. The Shared page shows what others shared with you. - A link request lets someone outside your workspace send you a file without an account. - Removing a share takes effect at once. ## What is a collaborative document? A Drive document is a file you write in the browser together with other people. Changes appear live, and Drive keeps snapshots you can restore. It sits in folders like any other file. ## How do I get a deleted file back? Open Trash, choose the file or folder, and restore it to where it was. Emptying Trash is permanent. ## How much storage do I have? The Drive storage view shows what you use, what is still uploading and which kinds of file take the most space. Workspace plans and what they include are explained in [billing help](/docs/help/billing). ## What can Soara and other modules do with Drive? - **Soara reads:** list files, open one file, search titles, show recent files and read your storage. - **Soara drafts:** create a new collaborative document for you to edit. - **Soara confirms:** sharing a file shows a confirmation card naming the file and the person before anything changes. - Other modules attach Drive files, for example a [Slate](/docs/help/slate) document or a [Nexus](/docs/help/nexus) task. > **Note:** The Developers page is for programmatic access. Its API is not switched on for everyone; the [deprecation policy](/docs/developer/drive/v1/deprecation-policy) states how changes are announced. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Send documents for signature with Slate Slate creates documents that people can read and sign online. Each signature is recorded with a fingerprint of the document so any later change is detectable. ## How do I create a document? 1. Open Slate and choose Documents, then create a new document. 2. Write it in the editor, add the fields people must fill in, and set who has to sign. 3. Set your logo and colors once under Brand; every new document starts with them. ## How do I send it and see what happens? Send the document to each signer by email. Slate records when it was sent, viewed and signed, and sends reminders you can see in the document history. The dashboard counts documents by status, shows what is awaiting signature and what expires soon. - A signer can sign, or decline with a reason. - A document with a deadline expires if nobody signs in time. ## What does a signer see? The signer opens a private link, reads the document, completes their fields and signs. At the end they see the document fingerprint, the same value you see, so both sides can check that the signed text is the text that was sent. > **Note:** A signed document is sealed. To change it you create a new document; the sealed one is kept as it was. ## How does Slate connect to the rest of Soartana? Finished documents can be filed in [Drive](/docs/help/drive). The events sent, viewed, signed, completed, declined, reminded and expired start [Bridge](/docs/help/bridge) workflows, so a signature can notify a teammate or move a [LeadDeck](/docs/help/leaddeck) deal. ## What can Soara do in Slate? Soara can list the documents you can see and read workspace figures or one document's views, signatures and deadline. For a written document it can draft page setup changes, such as the page size, margins, header and footer text, which you review before they apply. Sending a prepared document, an imported PDF, to its signers waits for your confirmation on a card. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Take bookings with Sync Sync lets people book time with you from a public booking page. It checks your availability and your calendar, so double bookings do not happen. ## What is an appointment type? An appointment type is one thing people can book, with a title, a duration and its own availability. Create one on the Event types tab in Sync with New appointment type, set your weekly hours, and add buffers before or after if you need breathing room. Search the list of types by title. While public booking is on, each type shows whether it is Published or still a Draft, and a published type has Copy link for its booking page. ## How do people book? Publish the appointment type and share its public link, or embed it on a page. The booking calendar marks the days of the month that still have a free time and opens on the first of them. A visitor picks a time in their own time zone, enters their details and receives a confirmation. A published type announces itself to [Bridge](/docs/help/bridge) so you can automate follow-up. ## How do I keep my calendar in step? Connect Google Calendar from the calendar panel. Busy times on the connected calendar are taken into account when slots are offered. Disconnecting returns Sync to your own availability rules only, and future bookings keep working. ## How do I reschedule or cancel? Open the booking from your list and choose reschedule or cancel. Both actions work on the version of the booking you are looking at, so if someone else changed it first you are asked to reload instead of overwriting their change. ## Can I take payment, share bookings across a team, or sell gifts? Not yet. Today Sync takes free bookings: a person picks a slot on your booking page and you both get a confirmation. Paid bookings, round robin across a team and gift cards are not available, and this guide will cover them when they are. ## What can Soara do with bookings? Soara can list your upcoming bookings and appointment types and read one of each. Reserving a slot, rescheduling and cancelling are shown on a confirmation card first. Forms can offer your booking page too; see [FormLab](/docs/help/formlab). ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Send transactional email with Relay Relay sends the emails your product depends on, such as receipts and sign-in links, from your own verified domain. It records what happened to every message. ## How do I start sending? 1. Open Relay, choose Domains and add the domain you want to send from. 2. Publish the DNS records shown until the domain is verified. 3. Create an API key, then send your first email from the API or from the dashboard. > **Note:** Relay only sends from a verified domain of your workspace. Mail from any other domain is refused. ## How do I know an email arrived? Each message in Emails shows its recipients, every attempt and each event the provider reported: accepted, delivered, bounced or complained. If the provider's outcome is unknown, Relay says so and never resends on its own. ## How do I find an email or export a list? Search Emails by the start of a recipient's address or by an email id, and narrow it by status, a date range and the API key that sent it. The search covers your whole sending history, not only the page on screen; when a stretch of history has few matches, Relay stops and offers to search older emails. Workspace managers can choose Export to download the matching emails as a CSV file, up to 1,000 at a time. If the export ends before that, the message says why: the 1,000-row limit, or the search stopping early on a filter that matches rarely. ## Can I use templates and schedule a send? Templates hold a draft and a published version with variables written as `{{name}}`, and a preview renders them exactly as a send would. A scheduled email can be moved or cancelled until it is released, and then it is never sent. ## What are suppressions? A suppression stops Relay sending to an address, because it bounced, complained, or you added it yourself. The Suppressions page lists each address and the reason. Removing a manual suppression lets mail flow again. ## Can I track opens and clicks, or get webhooks? Open and click tracking is off by default and is chosen per sending domain. Opens are estimates, because privacy proxies open mail. Webhooks post delivery events to your own endpoint, and the usage page shows your plan allowance and the daily safety limit. When a webhook endpoint was down, its delivery list offers Replay failed: after you confirm, each failed delivery on that page is sent again, one by one, and any that cannot be replayed are named. ## Who else uses Relay? Other modules send through Relay, including [Broadcast](/docs/help/broadcast) for campaigns and [Bridge](/docs/help/bridge) workflow steps. Soara can read your emails, usage and suppressions; sending an email or changing a suppression asks you to confirm. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Manage leads and deals with LeadDeck LeadDeck is the sales workspace for leads, deals and organizations. Every contact carries one timeline, so you see forms, bookings and campaigns together. ## What is the difference between a lead and a deal? A **lead** is a person who has shown interest. A **deal** is a possible sale for a contact, with a value and a stage. Create a lead by hand or let a form create it, then create a deal when there is something to sell. ## How does the pipeline work? Pipeline shows deals in columns, one per stage. Drag a deal to the next stage, or ask Soara to move it. A new workspace can set up the default Sales pipeline: Lead, Qualified, Proposal, Won and Lost. Reports show stage conversion and the days a deal sits in each stage. ## Where do companies go? Organizations group the people and deals of one company. Open an organization to see everyone linked to it and the deals open against it. ## What are response-time targets? Operations holds the service-level rules for new leads. Each new lead is assigned a target, counted in your working hours and holidays in the workspace time zone, and a breach is recorded as an event that [Bridge](/docs/help/bridge) can act on. ## Where do leads come from? - A published [FormLab](/docs/help/formlab) form can create or update a lead. - A booking from [Sync](/docs/help/sync) appears on the contact's timeline. - Campaign activity from [Broadcast](/docs/help/broadcast) appears there as well. ## Can I add my own fields and bring my data from GoHighLevel? - Settings has **Lead fields** (up to 60) and **Deal fields** (up to 40): yes or no, a choice, text, number, date, phone or web address. Deal fields show on the deal, can be columns and filters in the Deals list and the pipeline, and are in the CSV export. - Deals carry their own tags from the same tag list as contacts. Filter the Deals list or the pipeline by a tag. - Import a GoHighLevel contacts, opportunities or notes export. Each record keeps the time it was created in GoHighLevel, opportunity tags land on the deal, and you can match the owner names in the export to your members once; LeadDeck remembers the match for the next import. Imported records notify nobody and start no workflow. - Select deals in the Deals list to move up to 100 to Trash at once. Undo brings them back, and Trash keeps them for 30 days. ## Can my team share lists, and how do I stop messages to a contact? - Save a view or smart list and tick **Share with the workspace**: everyone with LeadDeck can use it, and only you or a LeadDeck manager can change it. Managers can pin a list for the team; anyone can copy one into their own lists. A shared list only filters: nobody sees a lead they could not already see. - On a lead, **Do not contact** blocks e-mail, text, WhatsApp, calls or Facebook / Instagram messages, or all of them. Nothing is sent on a blocked channel, whether from Broadcast, Bridge, a reply or Soara. The lead shows who set it, when, and whether it came from an import or an unsubscribe link. Use the smart-list condition **Do not contact** to list them. - Add **followers** to a lead or deal: they are told when the stage, result or owner changes, like the owner. Turn these notices off in your notification settings. - A lead keeps up to 10 more e-mails and 10 more phones, each with a label. Search finds a lead by any of them, and you can make one the primary. - Imports never notify anyone, never start a workflow and never start a response-time clock, whatever file you import. ## What can Soara do in LeadDeck? Soara can list leads and deals, read a contact timeline and explain a lead score. Changing a lead's status, source or owner, and adding a tag, are prepared as drafts for you to accept. Creating a lead or a deal, advancing a deal, removing a tag, setting up the default pipeline and bulk changes each ask you to confirm. A bulk change runs as a tracked job whose progress you can read. > **Tip:** Ask Soara for the leads that have breached their response target. It reads the same list you see in Operations. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Run projects and tasks in Nexus Nexus is where a team plans and tracks its work. Projects hold tasks and discussions, and My Tasks shows only what is assigned to you. ## How is work organized? Work lives in projects, and projects belong to teams. You see the projects of teams you belong to. Members lists the teams and who is on each; project admins can pin discussions and set the order of tasks. ## How do I create and assign a task? 1. Open a project and add a task with a title. 2. Set its status, priority, assignee and due date. 3. Comment on it. The assignee is notified when a task is assigned to them. ## Where do I see my own work? My Tasks lists the open tasks assigned to you across every project, so you do not have to visit each board. The Dashboard summarizes the state of your projects. ## How do discussions work? A discussion is a thread inside a project for decisions that do not belong on one task. A project admin can pin the thread that matters. If you delete a comment by mistake, you can restore it. ## Who gets told when something changes? The people concerned are notified in the app, for example the assignee when a task is assigned to them. Notifications appear in the bell and. ## How does Nexus connect to other modules? - Where your workspace has it switched on, a won deal in [LeadDeck](/docs/help/leaddeck) can start a project. - Task events, such as created, updated and completed, start [Bridge](/docs/help/bridge) workflows. - Soara can list and read tasks and projects. Creating a task or project, changing a task, restoring a comment and pinning a discussion are prepared as drafts for you to accept. See [Soara](/docs/help/soara). ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Automate work with Bridge workflows Bridge connects Soartana modules with workflows: when something happens, do something else. A workflow is a draft until you publish it, and a published revision never changes. ## What is in a workflow? A workflow has one **trigger** and a graph of steps. Triggers are events from modules, a manual start, or an inbound webhook. Steps are actions from modules, a message to a teammate, a call to an external HTTPS service, and logic that branches or waits. ## How do I build one? 1. Open Bridge and create a workflow, or apply one of the seeded templates. 2. Add the trigger, then add steps on the canvas and choose each step's settings. 3. Save the draft. Publish when it is ready; publishing creates a new immutable revision and shows what it is authorized to do. > **Note:** Editing a published workflow edits a new draft. The live revision keeps running as published until you publish again. ## How do I see what happened? Each run is recorded when it starts, completes or fails, with the result of every step. A manual run starts from the workflow page. Pausing a workflow stops new runs without deleting its history. ## Can an outside system start a workflow? Yes. A webhook trigger gives the workflow its own endpoint and signing secret. Requests must carry a valid signature, and the endpoint accepts a limited number of calls a minute. The external call step is the reverse direction and is guarded: HTTPS only, a short timeout and a size cap. > **Warning:** Treat the signing secret like a password. Rotate it if it is ever shown in a chat or a log. ## Which modules can I automate? - [FormLab](/docs/help/formlab): a form is submitted or published. - [LeadDeck](/docs/help/leaddeck): a lead is created, a deal changes stage or is won or lost. - [Slate](/docs/help/slate): a document is sent, viewed, signed or declined. - [Hosting](/docs/help/hosting): a site is created or a deploy is promoted. - [Relay](/docs/help/relay): a message is delivered, bounced or complained about. ## What can Soara do in Bridge? Soara can list and read workflows and list the templates. It prepares new drafts, saves changes and applies a template as drafts for you to review. Publishing, starting a manual run and pausing are confirmed on a card. > **Tip:** Ask Soara to build a draft from a sentence, then open it on the canvas to check each step before you publish. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Send campaigns with Broadcast Broadcast sends email campaigns and automated journeys to audiences that opted in. Every subscriber carries the consent that put them there. ## Who can I send to? An audience is a list of subscribers who consented, and each subscription records where that consent came from, such as a FormLab form. People who unsubscribe are removed from every future send. A plan can cap the number of contacts; a form opt-in that would exceed the cap is not added and you are told. ## How do I write and send a campaign? 1. Create a campaign for an audience and write it in the editor, or start from a template. 2. Send yourself a test, then review the campaign. 3. Send it now, or schedule it once or on a repeat. A scheduled campaign can be moved or cancelled until it is released. ## Where do I see every campaign and how it did? Campaigns lists every campaign with its status (Draft, Scheduled or Sent), its send date, and its open and click rates. Search by name or subject, and filter by status or audience; the search and filters cover all your campaigns, not only the ones loaded on screen. Rates count delivered messages only, so a bounce does not lower them. ## How does an A/B test work? Send two variants to a share of the audience, look at the result, then choose the winner. Broadcast sends the winner to everyone else. The choice is yours; nothing is picked automatically. ## What is a journey? A journey is a series of steps for a subscriber: send, wait, check a condition. People enter by a trigger, a form opt-in, or because you enroll them. A journey you publish becomes an immutable version, and you can see where each person is and how they left. ## How is mail delivered, and what if it fails? Campaigns are delivered through [Relay](/docs/help/relay), so the sending domain, bounces and suppressions are the same ones you manage there. A scheduled send that cannot run safely sends nothing and records why. ## What can Soara do in Broadcast? Soara can list your audiences, campaigns and journeys and read plan usage. Creating a campaign or journey and saving changes are drafts for you to review. Scheduling, archiving, publishing a journey, enrolling people and choosing an A/B winner each ask you to confirm. [LeadDeck](/docs/help/leaddeck) shows campaign activity on the contact timeline. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Work with the Soara assistant Soara is the assistant inside the app. She does only what you could do yourself, and she asks before she changes anything. ## How do I talk to Soara? Choose her avatar at the bottom of the app rail. A chat window opens over the page you are on, and it stays open as you move between modules. Ask in plain words, for example which of your sites are live or what is on your task list today. Dock the window to the right to keep it beside your work as a full-height panel, or minimise it: a minimised chat waits behind the avatar in the app rail. The header shows how much of this month's allowance is used. Regenerate asks the last question again, and Share copies the chat as text without sending it anywhere. ## What happens when I ask her to do something? - **Read:** Soara looks it up and answers. Nothing changes. - **Draft:** Soara prepares the thing, such as a form, a site or a campaign, and leaves it unpublished for you to review. - **Confirm:** for changes that matter, such as sharing a file or promoting a deploy, a card names exactly what will happen and waits for your approval. ## Can she see more than I can? No. Soara runs as you. Each tool she uses is a module action that goes through the same checks as your own click, so she only sees what your role allows and cannot reach a module your workspace does not have. ## Which modules does she know? She learns a module from its manifest, so what she can do grows with the modules that publish one. Today that includes [Hosting](/docs/help/hosting), [FormLab](/docs/help/formlab), [Drive](/docs/help/drive), [Slate](/docs/help/slate), [Sync](/docs/help/sync), [Relay](/docs/help/relay), [LeadDeck](/docs/help/leaddeck), [Nexus](/docs/help/nexus), [Bridge](/docs/help/bridge) and [Broadcast](/docs/help/broadcast). Each module guide ends with what she can do there. ## What are her limits? - She can be wrong. Read a draft before you accept it. - She has a usage budget for the workspace, and tells you when it is used up. - She does not act on her own schedule; she works when you ask. For recurring work use [Bridge](/docs/help/bridge). > **Warning:** Never paste a password or a `SOARTANA_API_KEY` into the chat. She does not need either. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Manage your Soartana account Your account is you, across every workspace you belong to. Your profile and sign-in settings follow you from one workspace to the next. ## How can I sign in? You can sign in with your email and password, or with Google when you have linked your Google account in your profile. You can link or unlink Google at any time, as long as one way to sign in remains. ## How do I change my name, picture or password? 1. Open Settings, then Profile. 2. Edit your name or choose an avatar. 3. To change your password, enter the current one first, then the new one. ## How do I protect my account? Turn on two-factor sign-in in your security settings. After that, signing in asks for a code from your authenticator app as well as your password. You are shown recovery codes once and cannot see them again, so keep them somewhere safe; they are the way back in if you lose your phone. > **Warning:** Recovery codes are shown only once. Copy them when they appear. ## Where am I signed in? The profile page lists your active sessions with their device. Sign out of any session you do not recognize, then change your password. ## What belongs to my account and what to a workspace? Your profile, password and sign-in methods belong to you. Apps, files, billing and members belong to a workspace; see [Workspaces](/docs/help/workspaces) for those, and [Billing](/docs/help/billing) for payment. The assistant is described in [Soara help](/docs/help/soara). ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Understand billing and plans Billing belongs to the workspace, not to a person. A workspace holds a payment method and chooses a plan for each app it uses. ## What do I pay for? Each app has its own plans, so a workspace can use Hosting on one plan and another app on another. Some apps charge by seat, which means the number of people who can use them. Prices and limits are shown in the app at the moment you choose; this guide never quotes them so it cannot go out of date. For Hosting, the [limits and plans](/docs/developer/hosting/v1/limits) page is read from the live catalog. ## How do I add a payment method? 1. Open Settings, then Billing. 2. Choose Add a workspace payment method and enter your card with Stripe's secure form. 3. Pick or change a plan for each app you use. > **Note:** Only people with billing permission in the workspace see this page. Ask an owner if it is missing for you. ## What happens when I reach a limit? Nothing is taken without asking. When an action needs a higher plan, such as a custom domain on [Hosting](/docs/help/hosting), the app shows a card naming the plan that unlocks it and one button. After you upgrade, you return to the action you were taking. ## How do seats and access keys work? A seat lets one person use an app. Under Licenses you can buy seats, assign a key to a member, reduce seats and see which keys are unused. [Workspaces](/docs/help/workspaces) explains who can manage members. ## Where are my invoices? Your subscription charges are listed under Billing. Sending invoices to your own customers is a different product and is not covered here. ## What if my agency pays? An agency that manages a workspace may arrange the payment for it. Who pays is shown in the workspace's Billing settings; the [agency guide](/docs/help/agency) explains the link between the two workspaces. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Set up your workspace and members A workspace is the shared home of your team's apps, files and settings. Owners and managers decide who joins and what each person can open. ## How do I add a teammate? 1. Open Settings, then Members, and choose Invite. 2. Enter their email and pick a role. They receive an invitation. 3. Track it under Invitations. You can resend or cancel it until it is accepted. ## How do I control which apps someone can open? Access is per app and per person. A person sees an app in the rail only when they hold a key for it, and some screens inside an app need a higher level than others. An owner can also enable an app for all members at once, and can hide apps the workspace does not want to show. > **Tip:** If a teammate cannot see an app, check Licenses first. They usually just need a key assigned. ## What are access requests? A member who needs an app they do not have can ask for it. Requests appear under Requests, where a manager approves or declines with one click. ## Where do I manage domains? Settings has a Domains page that lists every domain of the workspace and what it is used for, such as a site from [Hosting](/docs/help/hosting) or a forms address from [FormLab](/docs/help/formlab). Relay sending domains are managed in [Relay](/docs/help/relay). ## What does the Compliance page do? Compliance gathers the controls a regulated workspace needs, such as sign-in policy and review of access. Modules that cannot meet a regulated workspace's rules are left out of it by design, instead of failing later. ## How do I hand over a workspace? The owner can transfer ownership to another member from the Members page. The new owner becomes the owner of the workspace, pending handover codes are cancelled, and only the new owner can transfer it back. An agency can also hand a client workspace over; see [Agency](/docs/help/agency). > **Warning:** After a transfer only the new owner can transfer ownership back, so be sure before you confirm. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Serve clients as an agency An agency workspace can run other workspaces on behalf of its clients. A client keeps a workspace of their own, so they can take it with them if the relationship ends. ## How do I add a client? Open Settings, then Agency, and create a client workspace, or link one that already exists. A linked client shows under Clients in [Hosting](/docs/help/hosting) as well. Only members with permission to manage members can create or end links. ## What can I manage for a client? - Their sites and deploys in Hosting, following the same [quickstart](/docs/developer/hosting/v1/quickstart) you use for your own. - Their members and app access, through the client workspace's own settings. - What the client sees: a client signs in to the portal, not to your agency workspace. ## What is the Client Portal? The Client Portal is a branded dashboard for your clients, on an address you choose, with your name, logo and colors. Under Settings, then Agency, then Portal you set the brand and the host. ## How do I end a relationship properly? End the link to stop managing a client; the client keeps the workspace and their data. To pass a workspace to the client as its owner, start a handover: it issues a single-use code that the client redeems. A handover that has not been redeemed can be cancelled. ## Who pays for a client's apps? Either the client or the agency can be the payer. Money terms for agency programs are set in your agency agreement, not in this guide; [billing help](/docs/help/billing) covers the client side. ## Can Soara help an agency? With your confirmation Soara can create a client workspace, end a link or issue a handover code. She works only inside the workspace you are signed in to. See [Soara](/docs/help/soara) for how confirmations work. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide. --- # Working on a site as a team A site is shared by the whole workspace: anyone with Hosting can put a new version up and look at it privately, and going live or going back is one click. This guide covers who does what, the habits that keep a team out of trouble, and an automated deploy for developers. ## Who can do what? There are two kinds of people on a Hosting site: **members** and **admins**. Both need a Hosting seat in the workspace; the admin part comes from the workspace's own permissions (managing API keys needs the security permission, attaching domains the administrator one), not from a second license. - **Members** create sites, upload and discard deploys, open previews, publish a deploy, publish an earlier version, and read the site's history and the list of API keys (never the key itself). - **Admins** do everything a member does and also create and revoke **API keys** and attach custom domains. Those two decide who can change the site without signing in, and where it is served, so they are kept to administrators. Roles are per workspace. Every member with Hosting sees every site in the workspace; there are no per-site roles or preview comments yet. > **Note:** When someone leaves the workspace or loses their Hosting seat, the API keys they created stop working on their own. Create a new key from an admin account for the automation they ran. ## How does a change reach the live site? Every change is a new **deploy**. It never overwrites the live one, which is why going back is safe. 1. **Upload.** Send the folder. The deploy starts as `uploading` and becomes `ready` once every file is checked. Nobody sees it yet. 2. **Preview.** Each deploy has its own private link, signed and valid for 7 days. Share it with a teammate or a client; it works without signing in, so treat it like a secret link. 3. **Publish.** Make the previewed deploy the live one. Visitors get it immediately and the previous version stays in the list. 4. **Roll back.** Pick any earlier ready deploy and make it live again. Nothing is deleted, and you can roll forward again the same way. > **Tip:** Agree on one rule for the team: nobody publishes a deploy that nobody else has previewed. The preview link is the review. ## Which way should we deploy: dashboard, CI or Arch? All three do the same thing underneath, so they mix freely and show up in the same history. The site history records every deploy and publish with its date. - **The dashboard.** Open the site in Hosting, drop the folder, open the preview, press Publish. Best for non-developers and one-off changes. Rollback is the button on the production card. - **CI (an API key).** A script or GitHub workflow runs the same steps whenever code is merged. Best for developers who already build the site from a repository. See the section for developers below. - **Arch.** The [website builder](/docs/help/arch) publishes to Hosting for you. Each publish is a deploy, so previews and publishing here work on Arch sites too. A good split for a mixed team: designers edit in Arch or upload from the dashboard, developers deploy through CI, and everyone uses the same preview-then-publish habit. ## What should a team agree on? - Who is allowed to publish, and whether a second person must preview first. - Who owns the API keys. Give every automation its own key with a clear name, such as `github-actions`, so you can revoke one without stopping the others. - Where the key lives: only in your CI secret store, never in the repository and never in a chat. - How far back you can go. The plan keeps a limited number of recent deploys; the [limits and plans](/docs/developer/hosting/v1/limits) page shows how many. ## For developers: deploy from CI A site API key (it starts with `shk_`) works only for the site it was created on. Create it on the site page under API keys, as an admin. It is shown once. Store it as the repository secret `SOARTANA_API_KEY`. Every call sends `Authorization: Bearer ` to `https://api.soartana.com/api/public/hosting/v1`. Any credential problem is a `401 UNAUTHENTICATED`; the limit is 120 requests a minute per key. The workflow below uploads a built `dist/` folder on every push to `main`, checks the preview, then promotes behind a `production` environment. Add required reviewers to that environment in GitHub if you want a human to approve each go-live; a rollback uses the same environment. Run it by hand with a deploy id to roll back. The key is given only to the steps that call Soartana, never to your build. .github/workflows/soartana.yml ```text name: Soartana deploy on: push: branches: [main] workflow_dispatch: inputs: rollback_to: description: Deploy id to bring back (leave empty to deploy normally) required: false env: API: https://api.soartana.com/api/public/hosting/v1 # the key is NOT here: only the steps that call Soartana receive it # Two quick pushes must not finish out of order: one deploy at a time, in order. concurrency: group: soartana-deploy cancel-in-progress: false jobs: preview: if: ${{ inputs.rollback_to == '' }} runs-on: ubuntu-latest outputs: deploy_id: ${{ steps.upload.outputs.deploy_id }} steps: - uses: actions/checkout@v4 - run: npm ci && npm run build # your build; the folder to publish is dist/ - id: upload name: Upload env: SOARTANA_API_KEY: ${{ secrets.SOARTANA_API_KEY }} run: | set -euo pipefail # 1. Describe the folder: one entry per file, path and size in bytes. # Hidden files are left out, except .well-known (the rule of the other deploy scripts). (cd dist && find . -type f \( -path './.well-known/*' -o -not -path '*/.*' \) -not -path '*/node_modules/*' | sed 's|^\./||') > files.txt while IFS= read -r f; do jq -n --arg path "$f" --argjson size "$(wc -c < "dist/$f" | tr -d ' ')" '{path:$path,size:$size}' done < files.txt | jq -s '{files: .}' > manifest.json # 2. Start the deploy: the answer holds one presigned PUT per file. curl -sS --fail-with-body -X POST "$API/deploys" -H "Authorization: Bearer $SOARTANA_API_KEY" \ -H "Content-Type: application/json" -d @manifest.json > deploy.json || { cat deploy.json >&2; exit 1; } # 3. Upload every file with exactly the headers the API returned. jq -c '.data.uploads[]' deploy.json | while IFS= read -r u; do jq -r '.headers | to_entries[] | "header = \"\(.key): \(.value)\""' <<<"$u" > put.cfg curl -sS --fail-with-body -X PUT "$(jq -r .url <<<"$u")" -K put.cfg \ --data-binary @"dist/$(jq -r .path <<<"$u")" done # 4. Finalize: every file is checked for presence and exact size. DEPLOY_ID=$(jq -r .data.deploy.id deploy.json) curl -sS --fail-with-body -X POST "$API/deploys/$DEPLOY_ID/finalize" -H "Authorization: Bearer $SOARTANA_API_KEY" echo "deploy_id=$DEPLOY_ID" >> "$GITHUB_OUTPUT" - name: Preview env: SOARTANA_API_KEY: ${{ secrets.SOARTANA_API_KEY }} DEPLOY_ID: ${{ steps.upload.outputs.deploy_id }} run: | set -euo pipefail # The deploy carries its own signed preview link (valid for 7 days). RES=$(curl -sS --fail-with-body "$API/deploys/$DEPLOY_ID" -H "Authorization: Bearer $SOARTANA_API_KEY") || { echo "$RES" >&2; exit 1; } PREVIEW_URL=$(jq -r .data.preview_url <<<"$RES") curl -sS --fail-with-body -I "$PREVIEW_URL" > /dev/null echo "Preview: $PREVIEW_URL" >> "${GITHUB_STEP_SUMMARY:-/dev/null}" echo "Preview: $PREVIEW_URL" promote: needs: preview runs-on: ubuntu-latest environment: production # add required reviewers here for a human sign-off steps: - name: Promote env: SOARTANA_API_KEY: ${{ secrets.SOARTANA_API_KEY }} DEPLOY_ID: ${{ needs.preview.outputs.deploy_id }} run: | set -euo pipefail # Keep the API's own error message: a bare pipe into jq would swallow it. RES=$(curl -sS --fail-with-body -X POST "$API/deploys/$DEPLOY_ID/promote" -H "Authorization: Bearer $SOARTANA_API_KEY") || { echo "$RES" >&2; exit 1; } jq -r '"Live at " + .data.default_url' <<<"$RES" rollback: if: ${{ inputs.rollback_to != '' }} runs-on: ubuntu-latest environment: production # the same reviewers gate a rollback steps: - name: Roll back env: SOARTANA_API_KEY: ${{ secrets.SOARTANA_API_KEY }} ROLLBACK_TO: ${{ inputs.rollback_to }} run: | set -euo pipefail RES=$(curl -sS --fail-with-body -X POST "$API/rollback" -H "Authorization: Bearer $SOARTANA_API_KEY" \ -H "Content-Type: application/json" \ -d "$(jq -n --arg id "$ROLLBACK_TO" '{deploy_id: $id}')") || { echo "$RES" >&2; exit 1; } jq -r '"Production is back on " + .data.production_deploy_id' <<<"$RES" ``` Needs only bash, curl 7.76 or newer, and jq, which GitHub's Ubuntu runners include. The same calls by hand, for one file; the workflow does the same for a whole folder. Set these first: Environment ```sh export SOARTANA_API_KEY="shk_..." # never commit it export API="https://api.soartana.com/api/public/hosting/v1" ``` 1\. Start the deploy: send the manifest, get one presigned PUT per file ```sh 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 ```sh 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 ```sh curl -sS -X POST "$API/deploys/$DEPLOY_ID/finalize" \ -H "Authorization: Bearer $SOARTANA_API_KEY" ``` 4\. Promote the deploy to production ```sh curl -sS -X POST "$API/deploys/$DEPLOY_ID/promote" \ -H "Authorization: Bearer $SOARTANA_API_KEY" ``` 5\. Preview: read the signed link and check it answers (set DEPLOY\_ID) ```sh set -euo pipefail # The deploy carries its own signed preview link (valid for 7 days). RES=$(curl -sS --fail-with-body "$API/deploys/$DEPLOY_ID" -H "Authorization: Bearer $SOARTANA_API_KEY") || { echo "$RES" >&2; exit 1; } PREVIEW_URL=$(jq -r .data.preview_url <<<"$RES") curl -sS --fail-with-body -I "$PREVIEW_URL" > /dev/null echo "Preview: $PREVIEW_URL" >> "${GITHUB_STEP_SUMMARY:-/dev/null}" echo "Preview: $PREVIEW_URL" ``` 6\. Roll back: make an earlier ready deploy live again (set ROLLBACK\_TO) ```sh set -euo pipefail RES=$(curl -sS --fail-with-body -X POST "$API/rollback" -H "Authorization: Bearer $SOARTANA_API_KEY" \ -H "Content-Type: application/json" \ -d "$(jq -n --arg id "$ROLLBACK_TO" '{deploy_id: $id}')") || { echo "$RES" >&2; exit 1; } jq -r '"Production is back on " + .data.production_deploy_id' <<<"$RES" ``` To find the id to roll back to, list the newest 50 deploys; each carries its status, whether it is live, and its date: List deploys ```sh curl -sS --fail-with-body "$API/deploys" -H "Authorization: Bearer $SOARTANA_API_KEY" | jq -r '.data[] | "\(.id) \(.status) \(.created_at) live=\(.is_production)"' ``` - Upload links last 15 minutes and are create-only. A retried upload that answers `412` is already stored. - A run that stops half way (a failed upload, a cancelled job) leaves a deploy in `uploading`. A site holds only 3 of them; a fourth start answers `HOSTING_TOO_MANY_PENDING` until the old ones expire, or you discard them from the site page in the dashboard. - A finalize that finds a missing or short file marks the deploy `failed` and answers `HOSTING_DEPLOY_INCOMPLETE`. Start a new deploy. - Promote and rollback answer `HOSTING_DEPLOY_NOT_READY` for a deploy that is not ready. Every code is on the [Errors](/docs/developer/hosting/v1/errors) page and every field in the [API reference](/docs/developer/hosting/v1/api). > **Warning:** Never print the key in a workflow log or pass it on a command line you echo. If it leaks, revoke it on the site page; the next call with it is refused. ## How does this work for an agency and its clients? An agency builds and runs sites for clients who keep a workspace of their own. The same lifecycle applies; what changes is who sits where. - **The agency** sees its clients under the Clients tab in Hosting, and manages their sites with the same upload, preview and publish steps. The [agency guide](/docs/help/agency) shows how to link a client and who pays. - **The client** signs in to their own workspace or to the branded Client Portal. They see their sites and previews, and the agency's changes appear in the same history. Ending the link never takes the site away from them. - **Managed** is the plan for a site the agency runs for the client. It holds more sites than the self-serve plans. It does not include review by Soartana staff: the client approves any change an assistant proposes, and hands-on review of the work is a service the agency offers. Compare plans on [limits and plans](/docs/developer/hosting/v1/limits). > **Tip:** A clean agency habit: deploy, send the client the preview link, and publish only after they say yes. The history keeps the date of every publish. ## Did this answer it? If something here did not match what you see, ask Soara from the avatar in the app rail while you are on the screen in question, or [open the app](https://app.soartana.com/dashboard) and look at that screen again. The [help home](/docs/help) lists every module guide.