FruxonDocs
ApiEmbed configs

Rotates the publishable key.

Mints a new key and invalidates the old one immediately — every snippet carrying the previous key stops opening sessions. Use after a suspected key leak or to retire an old embed.

POST
/v1/tenants/{tenant}/agents/{agent}/embedConfigs/{embedConfig}:rotateKey
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agent*string

The agent identifier.

embedConfig*string

The embed config id.

tenant*string

The tenant identifier

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/agents/string/embedConfigs/string:rotateKey"
{
  "id": "string",
  "agentId": "string",
  "key": "string",
  "enabled": false,
  "allowedOrigins": [
    "string"
  ],
  "greeting": "string",
  "suggestedPrompts": [
    "string"
  ],
  "themeJson": "string",
  "createdAt": 0,
  "modifiedAt": 0
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}