---
title: "Get Widget Config"
method: GET
path: "/api/products/{product_id}/widget-config"
tags: ["products"]
---

# Get Widget Config

`GET /api/products/{product_id}/widget-config`

## Request

- Base URL: `https://api.usecrow.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.usecrow.ai/api/products/{product_id}/widget-config`
- Auth: none declared
- TypeScript: <https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas/docs/api/products/:product_id/widget-config/get.ts> (a function with typed inputs; its response is checked against the schema)

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).

## Path parameters

- `product_id` string, required

## Query parameters

- `language` string, nullable: ISO 639-1 language code for welcome message translation

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas.md) - [All operations](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas/llms.txt) - [OpenAPI document](https://skmtc.dev/usecrow/apis/crow-backend-multi-tenant-saas/revisions/b2950af46532?raw)
