Skip to content
For LLMsView as Markdown·

Activate demo mode for a vendor ​

http
POST https://api.onehazel.com/onehazel-api/operators/me/surfaces/demo/{key}

Switches on the anonymous demo launch for one public connector, so the operator's surfaces can offer its play-money games. Session sign-in only, owner or admin of the operator account. Idempotent. Answers 201 with { key, mode }, 404 CONNECT_CONNECTOR_NOT_FOUND for an unknown key, or 409 SURFACE_DEMO_UNAVAILABLE with details.reason of not_public, tombstoned or no_demo_template.

Section: Surfaces
Operation id: postOperatorsMeSurfacesDemoByKey

Authentication ​

Signed-in session token (Authorization: Bearer <session token>).

Parameters ​

NameInRequiredDescription
keypathyes

Responses ​

200 { "success": true, "data": ... }

Errors return { "success": false, "error": { "code": "...", "message": "..." } } with a 4xx or 5xx status.

Example ​

bash
curl -X POST "https://api.onehazel.com/onehazel-api/operators/me/surfaces/demo/{key}" \
  -H "Authorization: Bearer YOUR_SESSION_TOKEN"

Machine-readable: openapi.yaml, openapi.json.