Create an access-protection key
POST/api/v1/chatbots/:chatbotId/access-protection/keys
Mint a new widget access-protection key. The full plaintext key is returned ONCE in the response body. Store it immediately — it cannot be retrieved again. Subsequent reads expose only the keyPrefix display hint. Required scope: security:write.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 429
Key created. key is the one-time plaintext value.
Bad Request — invalid input
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
Too Many Requests — rate limit exceeded