Appearance
Get the embed key and allowed websites ​
http
GET https://api.onehazel.com/onehazel-api/operators/me/surfaces/embedThe operator's public embed key for the install snippet and its allowed websites list: { public_key, allowed_origins, rotated_at }. The key is created on the first call, with an empty list, so the embed loads nowhere until a website is added. The key is public (it goes in page source) and only works on the listed websites. Session sign-in only, any member of the operator account. Answers 404 SURFACES_DISABLED while OneHazel Surfaces is not enabled.
Section: Surfaces
Operation id: getOperatorsMeSurfacesEmbed
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 GET "https://api.onehazel.com/onehazel-api/operators/me/surfaces/embed" \
-H "Authorization: Bearer YOUR_SESSION_TOKEN"Machine-readable: openapi.yaml, openapi.json.