products

Get Widget Config

Get widget configuration for a product (PUBLIC ENDPOINT)

Returns the product's widget and copilot style configurations. This endpoint is called by the widget/copilot on initialization to fetch custom styles stored in the database.

The response includes:

  • productId: The product identifier
  • agentName: Display name for the AI agent
  • widgetStyles: Custom styling for the floating widget
  • copilotStyles: Custom styling for the copilot sidebar

When a non-English language query param is provided, the welcome message is translated on the fly using a fast LLM call (Haiku).

get/api/products/{product_id}/widget-config

Request

Path parameters

product_idstring required

Query parameters

languagestring nullable

ISO 639-1 language code for welcome message translation

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 4 revisions of this API.