AdminTenantController_rotateApiKey
POST
/v1/admin/tenant/rotate-api-key
const url = 'https://example.com/v1/admin/tenant/rotate-api-key';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/admin/tenant/rotate-api-key \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
object
apiKey
required
Admin API key (Authorization: Bearer
string
publishableKey
required
Publishable key for the widget
string
tenant
required
object
createdAt
required
string format: date-time
createdBy
string
id
required
string
updatedAt
required
string format: date-time
updatedBy
string
account
required
object
allowedOrigins
required
Array<string>
apiKeyPrefix
required
First characters of the admin API key
string
categories
required
Array<string>
clientTools
required
Array<object>
object
components
required
object
controls
required
object
escalation
object
intents
required
Array<string>
llm
required
object
name
required
string
profile
required
object
publishableKey
required
string
remoteTools
required
Array<string>
settings
required
object
slug
required
string
status
required
string
subscription
required
object
theme
required
object
visitorTokenSecret
required
HS256 secret for minting visitor tokens server-side
string
Example generated
{ "apiKey": "example", "publishableKey": "example", "tenant": { "createdAt": "2026-04-15T12:00:00Z", "createdBy": "example", "id": "example", "updatedAt": "2026-04-15T12:00:00Z", "updatedBy": "example", "account": {}, "allowedOrigins": [ "example" ], "apiKeyPrefix": "example", "categories": [ "example" ], "clientTools": [ {} ], "components": {}, "controls": {}, "escalation": {}, "intents": [ "example" ], "llm": {}, "name": "example", "profile": {}, "publishableKey": "example", "remoteTools": [ "example" ], "settings": {}, "slug": "example", "status": "example", "subscription": {}, "theme": {} }, "visitorTokenSecret": "example"}