Skip to content
LogoLogo

Tenant branding schema

See Management API schema for every domain, the endpoint and authentication.

Queries

tenant

Reads a tenant and its branding by slug or hostname. Returns the default tenant when neither matches. Needs no authentication, and responses are cacheable for 5 minutes.

tenant(input: TenantInput!): Tenant! @cache(policy: "public, max-age=300, stale-while-revalidate=3600")

Types

Tenant

"""
A deployment of the dashboard with its own hostnames and branding, such as `picked`.
"""
type Tenant {
  """The tenant's identifier, such as `picked`."""
  slug: String!
  """The hostnames the tenant serves the dashboard on."""
  hosts: [String!]!
  """The tenant's logos, colours and border radii."""
  branding: Branding!
}

Branding

"""The visual identity of a tenant."""
type Branding {
  """The product name shown in the dashboard and in page titles."""
  productName: String!
  """The tenant's logos."""
  logos: BrandingLogos!
  """The tenant's colours."""
  colors: BrandingColors!
  """The tenant's border radii."""
  radii: BrandingRadii!
}

BrandingLogos

"""The logos of a tenant, as paths from the dashboard origin."""
type BrandingLogos {
  """The small logo in the dashboard header."""
  header: String!
  """The intrinsic size of the header logo file."""
  headerSize: BrandingLogoSize!
  """The larger logo on the sign-in and authorisation pages."""
  auth: String!
  """The intrinsic size of the auth logo file."""
  authSize: BrandingLogoSize!
  """The favicon. Null when the tenant has none."""
  favicon: String
}

BrandingLogoSize

"""The intrinsic size of a logo file, in pixels."""
type BrandingLogoSize {
  """The width in pixels."""
  width: Int!
  """The height in pixels."""
  height: Int!
}

BrandingColors

"""The colours of a tenant, as CSS colour values such as `#rrggbb`."""
type BrandingColors {
  """The primary brand colour."""
  primary: String!
  """The colour of focus rings."""
  focusRing: String!
  """The colours of the sign-in pages."""
  auth: BrandingAuthColors!
  """The colours of the signed-in dashboard."""
  app: BrandingAppColors!
}

BrandingAuthColors

"""The colours of a tenant's sign-in and authorisation pages."""
type BrandingAuthColors {
  """The page background."""
  shellBg: String!
  """The sign-in card background."""
  cardBg: String!
  """The text colour."""
  text: String!
  """The primary button background."""
  buttonBg: String!
  """The primary button text colour."""
  buttonText: String!
}

BrandingAppColors

"""The colours of a tenant's signed-in dashboard."""
type BrandingAppColors {
  """The background of the header and sidebar frame."""
  shellBg: String!
  """The colour of text and icons on the frame background."""
  shellText: String!
  """The content area background."""
  contentBg: String!
  """
  The background of muted surfaces in the content area, such as subdued cards.
  """
  contentBgSubdued: String!
  """The background behind page content."""
  pageBg: String!
  """The background of card headers and similar surfaces."""
  surfaceBg: String!
  """The sidebar background."""
  sidebarBg: String!
  """The background of secondary buttons and similar neutral surfaces."""
  neutralBg: String!
  """The text colour in the content area."""
  text: String!
  """The primary button background."""
  buttonBg: String!
  """The primary button text colour."""
  buttonText: String!
}

BrandingRadii

"""The border radii of a tenant, as CSS lengths such as `8px`."""
type BrandingRadii {
  """The border radius of buttons."""
  button: String!
  """The border radius of cards."""
  card: String!
}

TenantInput

"""The input of `tenant`. Both fields are optional."""
input TenantInput {
  """
  The dashboard hostname, such as `dashboard.convincely.com`. Used when `slug` is null or matches
  no tenant.
  """
  host: String
  """
  The tenant's slug. Takes precedence over `host` when it matches a tenant.
  """
  slug: String
}