# Rotate the embed key ```http POST https://api.onehazel.com/onehazel-api/operators/me/surfaces/embed/rotate ``` Replaces the operator's public embed key with a new random one. The old key stops working on the next request, so pages must be updated with the new install snippet. The allowed websites list is kept. Session sign-in only, owner or admin of the operator account. Answers 200 with `{ public_key, allowed_origins, rotated_at }`. Section: [Surfaces](./) Operation id: `postOperatorsMeSurfacesEmbedRotate` ## Authentication Signed-in session token (`Authorization: Bearer `). ## 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/rotate" \ -H "Authorization: Bearer YOUR_SESSION_TOKEN" ``` Machine-readable: [openapi.yaml](/openapi.yaml), [openapi.json](/openapi.json).