Skip to content
Navigation

Resolve a booking site

GET
https://api.nicer.travel/identity/public/site/{host}

Resolves a live hostname to the app it opens (booking site, portal or Pay), its agency, theme, addresses and, on a booking site, its advisor. With ref, a booking site also returns that advisor's card when they are an active member of the site's agency. Anyone may call it, without a token; the answer is cached at the edge.

Path parameters

  • host
    string
    required

Query parameters

  • ref
    optional
    string
    maxLength: 64

Returns

200

OK

JSON
  • advisorSites
    boolean
    required
  • canonicalHost
    string
    required
  • company
    object
    required
    • branding
      object
      required
      • accentColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • backgroundColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • bodyFont
        optional
        string
        ·
        one of 12 values
        Allowed values: Inter, DM Sans, Manrope, Poppins, Montserrat, Lato, Nunito, Work Sans, Playfair Display, Merriweather, Lora, Cormorant Garamond
      • borderColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • contact
        optional
        object
        • email
          optional
          string
          format: email · maxLength: 254 · pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
        • instagram
          optional
          string
          maxLength: 64
        • phone
          optional
          string
          maxLength: 32
        • whatsapp
          optional
          string
          maxLength: 32
      • faviconUrl
        optional
        string
      • headingFont
        optional
        string
        ·
        one of 12 values
        Allowed values: Inter, DM Sans, Manrope, Poppins, Montserrat, Lato, Nunito, Work Sans, Playfair Display, Merriweather, Lora, Cormorant Garamond
      • hero
        optional
        object
        • imageUrl
          optional
          string
          format: uri · maxLength: 2048
        • subtitle
          optional
          string
          maxLength: 160
        • title
          optional
          string
          maxLength: 80
      • logoDarkUrl
        optional
        string
        format: uri · maxLength: 2048
      • logoUrl
        optional
        string
      • mode
        optional
        light
        or
        dark
        or
        system
      • mutedTextColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • primaryColor
        optional
        string
      • privacyUrl
        optional
        string
        format: uri · maxLength: 2048
      • radius
        optional
        integer
        maximum: 24 · minimum: 0
      • seo
        optional
        object
        • description
          optional
          string
          maxLength: 160
        • title
          optional
          string
          maxLength: 60
      • surfaceColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
      • textColor
        optional
        string
        pattern: ^#[0-9a-fA-F]{6}$
    • companyName
      string
      required
    • displayName
      string
      required
    • urls
      optional
      object
      • payUrl
        string
        required
        format: uri · maxLength: 2048
      • portalUrl
        string
        required
        format: uri · maxLength: 2048
      • siteUrl
        string
        required
        format: uri · maxLength: 2048
  • host
    string
    required
  • advisor
    optional
    object
    • name
      string
      required
    • userId
      string
      required
    • username
      string
      required
    • avatarUrl
      optional
      string
    • biography
      optional
      string
    • instagram
      optional
      string
  • app
    optional
    BOOKING
    or
    PORTAL
    or
    PAY
  • refAdvisor
    optional
    object
    • name
      string
      required
    • userId
      string
      required
    • username
      string
      required
    • avatarUrl
      optional
      string
    • biography
      optional
      string
    • instagram
      optional
      string

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close