ApiEmbed configs
Creates an embed config for the agent, minting a fresh publishable key.
Returns the new config including its `key` — paste that into the embed snippet. The key is publishable (not a secret); the allowed origins, rate limits, and the single-agent session token are the real controls. Fails 404 if the agent doesn't exist in this tenant.
Authorization
Bearer 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.
tenant*string
The tenant identifier
Allowed origins and visitor-facing presentation.
allowedOrigins?|null
Origins the widget may be embedded on; a single "*" allows any (dev/open).
greeting?string|null
suggestedPrompts?|null
themeJson?string|null
Opaque client theme blob (colors, launcher icon, position, locale).
[key: string]?never
Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/agents/string/embedConfigs" \ -H "Content-Type: application/json" \ -d '{}'{
"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
}