Skip to main content
Manage the allowed domains of the chat widget from your own tools, for example to allow each new customer site as soon as you create it. This is the same list as Allowed Domains on the Widget & SDK page: it controls which websites can embed the widget and call the SDK API. These endpoints are not available as MCP tools.

Authentication

Reading requires an API key with the settings:read scope; changes require settings:write. These scopes can only be granted to API keys, not to OAuth connections.
See API Key Authentication for setup instructions. Every endpoint returns the list as it is after the call:
An empty list lets any website embed the widget, but a website that calls the SDK API from the browser must always be in the list. A domain matches every website address that contains it: example.com allows https://app.example.com, but also https://example.com.other.net. Give full addresses, such as https://portal.example.com, to allow only the websites you choose.

List the allowed domains

Allow a domain

Adding a domain that is already in the list changes nothing. Spaces around the domain are removed; an empty domain returns 400.

Remove a domain

Pass the domain exactly as it appears in the list, URL-encoded. A domain that is not in the list returns 404. Removing the last domain leaves the list empty: any website can then embed the widget, and only your AGO sites can still call the SDK API from the browser.

Replace the list

The request replaces the whole list; duplicates are removed. An empty domain returns 400 and changes nothing.