Authorizations
Body
Display name of the bot shown in the widget header (e.g. "Ava Support").
If true, the widget automatically starts a voice conversation when the page loads. Defaults to false.
Where the widget appears on the page. Allowed values:
BOT_POSITION_BOTTOM_RIGHT (default)
BOT_POSITION_BOTTOM_LEFT
BOT_POSITION_TOP_RIGHT
BOT_POSITION_TOP_LEFT
BOT_POSITION_UNSPECIFIED
URL of the bot avatar image displayed inside the widget.
Inline SVG markup for the floating widget button icon.
Custom form fields displayed to the user before starting a conversation (e.g. name, email, phone number).
Widget color theme and styling. Pass a theme configuration object to customize colors, fonts, and appearance.
Language code for widget UI text (e.g. en, es, fr, de).
Body text of the consent/privacy modal shown to users before call recording begins.
Title of the consent/privacy modal.
Response
Whether the request succeeded.
Human-readable status message.
The newly created widget settings object.
Unique widget settings ID (UUID) assigned by the server.
Whether the widget auto-starts.
Widget position on the page.
Custom form fields configuration.
Widget theme configuration.
Whether the settings are active (defaults to true).
Creation timestamp (ISO 8601).
Last update timestamp (ISO 8601).
curl -X POST https://api.ravan.ai/api/v1/widget-settings/ \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"bot_name": "Ava Support",
"bot_auto_start": false,
"bot_position": "BOT_POSITION_BOTTOM_RIGHT",
"language": "en"
}'
{
"success": true,
"message": "Widget settings created successfully",
"data": {
"id": "019d1fdb-6701-762d-97bd-93fc72606d7c",
"botName": "Ava Support",
"botAutoStart": false,
"botPosition": "bottom-right",
"customFormFields": null,
"theme": null,
"language": "en",
"isActive": true,
"createdAt": "2026-03-20T10:30:00Z",
"updatedAt": "2026-03-20T10:30:00Z"
}
}
Position of the bot widget on screen
Available options:
BOT_POSITION_UNSPECIFIED,
BOT_POSITION_BOTTOM_RIGHT,
BOT_POSITION_BOTTOM_LEFT,
BOT_POSITION_TOP_RIGHT,
BOT_POSITION_TOP_LEFT