Skip to content

Rotate contact form widget public key

POST
/api/widgets/contact/{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.

widgetId
required
string format: uuid

The unique identifier of the widget.

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_x9y8z7w6v5u4

No 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