Rotate KB widget public key
POST /api/widgets/kb/{widgetId}/rotate-key
POST
/api/widgets/kb/{widgetId}/rotate-key
Generate a new public key for the widget. The previous key is invalidated immediately, so any embedded instances must be updated with the new key.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” widgetId
required
string format: uuid
The unique identifier of the widget.
Responses
Section titled “ Responses ”A new public key was generated.
Response containing a newly generated public key for a widget.
object
publicKey
required
The new public key. The previous key is invalidated immediately.
string
Example
pk_wgt_x9y8z7w6v5u4No widget exists with the given ID in the authenticated tenant.
Standard error response returned by all endpoints on failure.
object
error
required
A human-readable error message describing what went wrong.
string
Example
Conversation not found