Settings

Set Trusted Preview Hosts

Changed on

Sets the host patterns trusted to embed previews for a team.

put/settings/preview-hosts

Request

  • Base URL
    https://api.v0.dev/v2
  • URL
    https://api.v0.dev/v2/settings/preview-hosts
  • Auth
    HTTP bearer

Request body

hostsstring[] required

The complete list of exact or wildcard hostname patterns trusted to embed previews. Provide hostnames only, without a scheme, port, path, userinfo, query string, or fragment. Use *.example.com for exactly one subdomain label and **.example.com for one or more. Wildcards do not include example.com itself; add the apex as a separate entry when needed.

Response

Response for status 200

hostsstring[] required

Canonicalized hostname patterns trusted to embed previews. Exact hosts match only themselves; *.example.com matches exactly one subdomain label; **.example.com matches one or more subdomain labels. Wildcards do not include the apex, so list example.com separately when it should also be trusted.

Changes