Brands
Create from a website
/v1/brands/from-siteCreate a brand from a website read. It is named after the site, using the suggested brand name or else the address. It lists the site's domains, with and without www. for a main address. It takes the site's look when that is ready, and the default look until then. If a brand you can see already lists the site's address, that brand is returned and nothing is created. Like POST /v1/brands, it fails with 403 plan_limit past the plan's brand limit, and fills in a guest's one brand instead.
Body
JSON, with Content-Type: application/json.
readIdstringrequiredThe read's
idfromPOST /v1/sites/read. A read still in progress fills in the brand's look and name when they land, unless the brand has its own by then.1–64 chars
workspaceIdstringOptional. Your API key already belongs to one workspace.
Response
idstringrequiredThe brand's id.
namestringrequiredThe brand's name.
domainsarray of stringrequiredHostnames the brand's forms may be embedded on. Subdomains match too. An empty list means any site.
avatarUrlstring or nullrequiredThe brand's favicon, fetched in the background from its first public domain. It is fetched again when the first public domain changes. Null until there is one, so show initials instead.
themeobjectrequiredThe theme values the brand sets. The rest use the defaults.
Show 13 fieldsHide 13 fields
accentstringaccentTextstringbackgroundstringsurfacestringtextstringmutedstringborderstringradiusnumber0–48
buttonRadiusnumber0–48
fontstringheadingFontstringmax 500 chars
backdropstringfontStylesheetstringmax 2000 chars · uri
trackingobjectrequiredThe tracking settings in effect, which are the brand's values on top of the defaults.
Show 4 fieldsHide 4 fields
metaobjectrequiredShow 4 fieldsHide 4 fields
enabledbooleanrequiredpageViewbooleanrequiredcapibooleanrequiredpixelIdstring
ga4objectrequiredShow 2 fieldsHide 2 fields
enabledbooleanrequiredmeasurementIdstring
jornayaobjectrequiredShow 2 fieldsHide 2 fields
enabledbooleanrequiredcampaignKeystring
trustedFormobjectrequiredShow 1 fieldHide 1 field
enabledbooleanrequired
hasMetaCapiTokenbooleanrequiredWhether a Meta Conversions API token is saved. The token itself is never returned.
webhookCountintegerrequiredHow many webhooks the brand has, its own and its forms', counted up to 100.
GET /v1/webhookslists them.-9007199254740991–9007199254740991
starterbooleanrequiredTrue for a guest's starter brand, which has no website or name yet. False for every other brand.
createdAtnumberrequiredWhen the brand was made, in milliseconds since the epoch.
workspaceIdstringrequiredThe workspace the brand belongs to.
Errors answer with a status and the error shape.