The httpClient submodule includes helper methods for making HTTP requests within the Wix platform.
fetchWithAuth()Makes HTTP requests to Wix REST APIs and endpoints that require a Wix access token, such as endpoints hosted by a Wix app backend. The Wix development framework generates the access token. The token reflects the identity of the current site user and is automatically included in requests from this method as an Authorization header.
Notes:
fetchWithAuth() method instead.| Name | Type | Description |
|---|---|---|
url | string | URL of the REST API to call. |
options | object | Standard fetch request options. |
Standard fetch() response.
Call the List Published Site Urls endpoint:
Last updated: 4 November 2026