Skip to content

Brands

Create a brand

POST/v1/brands

Create a brand with the domains its forms may be embedded on, its theme and its tracking. Every form and webhook belongs to a brand. Fails with 403 plan_limit when the workspace has all the brands its plan includes. A guest's workspace has one brand, so there it fills that brand in instead and returns it.

Body

JSON, with Content-Type: application/json.

  • namestringrequired

    The brand's name, such as "Bright Smile Dental".

    1–200 chars

  • workspaceIdstring

    Optional. Your API key already belongs to one workspace.

  • domainsarray of string

    Hostnames the brand's forms may be embedded on. Subdomains match; empty means any site.

    max 100 items

  • themeobject

    Only the theme values you want to set; the rest use the defaults.

    Show 13 fields
    • accentstring
    • accentTextstring
    • backgroundstring
    • surfacestring
    • textstring
    • mutedstring
    • borderstring
    • radiusnumber

      0–48

    • buttonRadiusnumber

      0–48

    • fontstring
    • headingFontstring

      max 500 chars

    • backdropstring
    • fontStylesheetstring

      max 2000 chars · uri

  • trackingobject

    Only the tracking values you want to set. The rest use the defaults. Turning on Meta or GA4 needs the plan's tracking feature, and Jornaya needs leadId. TrustedForm needs leadId too, and is in alpha, so other workspaces get 403 feature_unavailable. A missing plan feature answers 403 plan_feature. Anything already on stays on.

    Show 4 fields
    • metaobject
      Show 4 fields
      • enabledboolean
      • pixelIdstring
      • pageViewboolean
      • capiboolean
    • ga4object
      Show 2 fields
      • enabledboolean
      • measurementIdstring
    • jornayaobject
      Show 2 fields
      • enabledboolean
      • campaignKeystring
    • trustedFormobject
      Show 1 field
      • enabledboolean
  • metaCapiTokenstring

    The Meta Conversions API access token. It is never returned. Reads show hasMetaCapiToken instead.

    1–1000 chars

Response

  • idstringrequired

    The brand's id.

  • namestringrequired

    The brand's name.

  • domainsarray of stringrequired

    Hostnames the brand's forms may be embedded on. Subdomains match too. An empty list means any site.

  • avatarUrlstring or nullrequired

    The 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.

  • themeobjectrequired

    The theme values the brand sets. The rest use the defaults.

    Show 13 fields
    • accentstring
    • accentTextstring
    • backgroundstring
    • surfacestring
    • textstring
    • mutedstring
    • borderstring
    • radiusnumber

      0–48

    • buttonRadiusnumber

      0–48

    • fontstring
    • headingFontstring

      max 500 chars

    • backdropstring
    • fontStylesheetstring

      max 2000 chars · uri

  • trackingobjectrequired

    The tracking settings in effect, which are the brand's values on top of the defaults.

    Show 4 fields
    • metaobjectrequired
      Show 4 fields
      • enabledbooleanrequired
      • pageViewbooleanrequired
      • capibooleanrequired
      • pixelIdstring
    • ga4objectrequired
      Show 2 fields
      • enabledbooleanrequired
      • measurementIdstring
    • jornayaobjectrequired
      Show 2 fields
      • enabledbooleanrequired
      • campaignKeystring
    • trustedFormobjectrequired
      Show 1 field
      • enabledbooleanrequired
  • hasMetaCapiTokenbooleanrequired

    Whether a Meta Conversions API token is saved. The token itself is never returned.

  • webhookCountintegerrequired

    How many webhooks the brand has, its own and its forms', counted up to 100. GET /v1/webhooks lists them.

    -9007199254740991–9007199254740991

  • starterbooleanrequired

    True for a guest's starter brand, which has no website or name yet. False for every other brand.

  • createdAtnumberrequired

    When the brand was made, in milliseconds since the epoch.

  • workspaceIdstringrequired

    The workspace the brand belongs to.

Errors answer with a status and the error shape.