Generate Env Secret
Store a new random secret under a new key, and return nothing.
The value is secrets.token_urlsafe(32), 256 bits, the routes/passwords.py precedent. Create-only: a key that already has a row in that scope answers 409, so a generate never replaces a value the app depends on. The response carries no value; the console's audited reveal is the read path.
post/apps/{app_id}/env/{key}/generate
Request
- Base URL: https://api.xhostd.com (the document declares no server; this is the origin it was published from)
- URL: https://api.xhostd.com/apps/{app_id}/env/{key}/generate
- Auth: none declared
Path parameters
app_idstring uuid required
keystring required
Query parameters
channel_idstring uuid nullable
Headers
authorizationstring nullable
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.