Create an external-API key
POST/api/v1/chatbots/:chatbotId/external-api/keys
Mint a new external-API key. The full plaintext key is returned ONCE in the response body (key field). Store it immediately — it cannot be retrieved again. Subsequent reads expose only the keyPrefix display hint. Maximum 5 active keys per chatbot. 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