Returns the website widget’s look for the key’s assistant. The widget calls this when a page loads, before it draws the chat button. You only need it if you’re building your own chat window and want it to match the settings in the Widget section.
Accepts any key. From a browser, a website key works only on its listed websites. This endpoint isn’t rate-limited and isn’t charged.
Example
Section titled “Example”The Origin header here stands in for the browser, because a website key refuses requests without one.
Response
Section titled “Response”| Field | Type | Description |
|---|---|---|
title | string | The chat window’s title. When the Title setting is empty, this is the Assistant’s name from settings, then the assistant’s own name, then “Ask us”. |
greeting | string | The first message in the chat. Up to 300 characters. |
color | string | The accent colour, as #rrggbb. |
position | string | right or left: the bottom corner the chat button sits in. |
starters | array of strings | Up to four starter questions, each up to 80 characters. |
show_citations | boolean | Whether sources are shown under answers. |
size | string | small, medium or large. |
With a preview key, the response is the look that was shown in the Widget section when the preview was made, including unsaved changes.
Errors use the error format: 401 for a missing, unknown or revoked key, and 403 for a website key used from a site that isn’t on its list.