Skip to main content

API reference

Each running hosting-service serves its own HTTP reference. This page lists where that reference lives and groups the routes. Request and response fields are on the live schema, which matches the code you deployed.

Interactive docs​

PagePath
Swagger UI/api/docs/
ReDoc/api/docs/redoc/
OpenAPI schema/api/schema/

Both pages load ReDoc, Swagger UI and @shellui/sdk from the service's own static files, pinned with the release. Nothing on them comes from a CDN, so they work offline and a new upstream version cannot break them.

Open Swagger from Django admin and the session access token is applied for you. Otherwise choose Authorize and paste Bearer your_access_token_here, or the raw JWT.

GET /hosting/v1/health does not require a token. It returns status, version, the artifact backend, and which JWKS source is in use. Every other /hosting/v1/ route expects Authorization: Bearer your_access_token_here from identity-service. Preview deploy routes also accept a company deploy token (Bearer shellui_dt_...). See Deploy with the CLI.

Route groups​

Paths below are relative to the apex host, for example http://localhost:8002. App subdomains do not serve these routes. They serve the hosted site.

GroupPaths
HealthGET /hosting/v1/health
AccessGET and POST /hosting/v1/access, POST /hosting/v1/access/request
PreviewPOST /hosting/v1/preview
AppsGET and POST /hosting/v1/apps, GET and DELETE /hosting/v1/apps/{app_ref}, POST /hosting/v1/apps/{app_ref}/renew-expiry
DeploymentsGET and POST /hosting/v1/apps/{app_ref}/deployments
UploadPUT /hosting/v1/apps/{app_ref}/deployments/{id}/upload
Finalize and rollbackPOST /hosting/v1/apps/{app_ref}/deployments/{id}/finalize, same path with /rollback
Deploy tokensGET and POST /hosting/v1/deploy-tokens, POST /hosting/v1/deploy-tokens/{id}/revoke
StatsGET /hosting/v1/stats
Shellui Actions/api/v1/actions/events, /rules, /deliveries
Scheduled jobsGET /api/v1/scheduled-jobs (staff)
Event logGET /api/v1/actions/event-log

{app_ref} is an app UUID, a company-scoped name, or a public slug. {id} on a deployment is a UUID.

POST /hosting/v1/preview and finalize add oauth_redirect_registered, oauth_redirect_origin, and oauth_redirect_warning when registration fails. Field rules are in Preview sites and public URLs.

Who can call them​

Company members with company_id in the token can list and deploy their company's apps, after the waitlist says approved. See Company access and Apps and deployments.

RouteWho
GET /hosting/v1/statsThe caller's company. Staff may omit the company and receive every company
/api/v1/scheduled-jobsDjango staff. Company owners receive 403
/api/v1/actions/*Staff, or a company owner scoped to the token company_id
/hosting/v1/deploy-tokens*Staff or a company owner, for tokens of the JWT company_id
Deploy token (shellui_dt_...)Only POST /hosting/v1/preview, PUT .../upload and POST .../finalize on preview sites of its company. Everything else is 403

GET /hosting/v1/stats is JSON. Traces and metrics go to your OpenTelemetry collector, not to an HTTP route on this service. See Configuration.

Error JSON uses statusCode, error, and message. Hosting responses include X-Request-ID. When export is on, log lines also include trace_id and span_id.