Settings

Get Trusted Preview Hosts

Changed on

Returns the hostname patterns trusted to embed previews for the current team.

get/settings/preview-hosts

Request

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

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