Ops Lab Playbook: Site Runtime Ops
Last updated: 2026-03-08
1. Purpose and when to use this
Use this module to create site deployments, preview deployment output, and change site mode safely.
2. User roles and auth modes
JWT creator: deployment create and preview.JWT owner: site mode updates.
3. Prerequisites checklist
- Primer completed: Onboarding and API Primer
- Handle has site/profile configuration.
JWT_TOKENwith creator/owner role depending on action.- Deployment payload includes a root
index.htmlfile. Without this, deployment activation fails withmissing_entrypoint.
4. UI onboarding flow
- Open
https://app.10x.in/creator/site-runtime. - Create a deployment and capture deployment ID.
- Request deployment preview.
- Update site mode if needed.
5. API workflow map
SR-01:POST /v2/handles/{handle}/site-deploymentsSR-02:GET /v2/handles/{handle}/site-deployments/{deploymentId}/previewSR-03:PUT /v2/handles/{handle}/site-mode
6. cURL examples
Set module variables:
export DEPLOYMENT_ID="<deployment-id>"
SR-01 Create deployment
curl -sS -X POST "${API_BASE}/v2/handles/${HANDLE}/site-deployments" \
-H "authorization: Bearer ${JWT_TOKEN}" \
-H 'content-type: application/json' \
-d '{"note":"creator deploy"}'
SR-02 Preview deployment
curl -sS "${API_BASE}/v2/handles/${HANDLE}/site-deployments/${DEPLOYMENT_ID}/preview" \
-H "authorization: Bearer ${JWT_TOKEN}"
SR-03 Update site mode
curl -sS -X PUT "${API_BASE}/v2/handles/${HANDLE}/site-mode" \
-H "authorization: Bearer ${JWT_TOKEN}" \
-H 'content-type: application/json' \
-d '{"mode":"LINKTREE"}'
7. Expected success outputs and verification checks
- Deployment create returns
201with deployment identifier and upload URLs. - Preview returns a signed
previewUrl(temporary access link to deploymentindex.html). - Do not use raw S3 object URLs for preview checks; bucket objects are not public.
- Site mode update returns persisted mode confirmation.
8. Failure modes and remediation
403on site mode update:- Remediation: use owner JWT for mode change.
- Preview not available yet:
- Remediation: wait for deployment processing completion and retry.
400 missing_entrypointon deploy activation:- Remediation: include root
index.htmlin deployment files. 409 deployment_entrypoint_missingon preview:- Remediation: ensure deployment
index.htmlexists (or active deployment has liveprofiles/{handle}/index.htmlfallback). 404deployment ID errors:- Remediation: confirm deployment ID belongs to current handle.
9. Async behavior notes
- Deployment draft creation and preview URL issuance are synchronous API actions.
- File upload is client-driven via presigned PUT URLs.
- Activation copies uploaded files into the live
profiles/{handle}/prefix and then marks deployment active.