Skip to content
For LLMsView as Markdown·

Mint or rotate the Surfaces embed secret ​

http
POST https://api.onehazel.com/onehazel-api/operators/me/surfaces/embed-secret

Creates the secret that signs player tokens for real-money play, or replaces it (tokens signed with the old one stop verifying at once). Answers 201 with { secret, created_at, rotated }; the secret is returned only here, once. Session sign-in only, owner or admin of the operator account. Answers 404 SURFACES_DISABLED while OneHazel Surfaces is not enabled.

Section: Surfaces
Operation id: postOperatorsMeSurfacesEmbedSecret

Authentication ​

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

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/embed-secret" \
  -H "Authorization: Bearer YOUR_SESSION_TOKEN"

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