Skip to content
Navigation

Get the booking site

GET
https://api.nicer.travel/identity/booking-site

The active agency's booking site: theme, switches, advisor-pages policy, the link the caller shares, and the agency's hostnames, each with the app it opens (booking site, portal or Pay). Advisors and admins of the agency: an admin sees every hostname and every advisor page, an advisor the agency's booking-site hostnames and their own page's.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Header parameters

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

Returns

200

OK

JSON
  • advisorSites
    boolean
    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}$
  • canManage
    boolean
    required
  • companyName
    string
    required
  • displayName
    string
    required
  • dnsTargetZone
    string
    required
  • enabled
    boolean
    required
  • envDomain
    string
    required
  • hosts
    array of
    object
    required
    • canonical
      boolean
      required
    • companyName
      string
      required
      minLength: 1
    • createdAt
      string
      required
    • createdBy
      string
      required
      minLength: 1
    • kind
      SUBDOMAIN
      or
      CUSTOM
      or
      ALIAS
      required
    • status
      PENDING_DNS
      or
      ISSUING
      or
      ACTIVE
      or
      FAILED_DNS
      or
      FAILED_CERT
      or
      REMOVING
      required
    • updatedAt
      string
      required
    • host
      string
      required
      minLength: 1
    • certificateIssued
      boolean
      required
    • hasTenant
      boolean
      required
    • advisorUserId
      optional
      string
      minLength: 1
    • aliasOf
      optional
      string
    • app
      optional
      BOOKING
      or
      PORTAL
      or
      PAY
    • attempt
      optional
      integer
      maximum: 9007199254740991 · minimum: 0
    • dnsTarget
      optional
      string
    • lastError
      optional
      string
    • validationMode
      optional
      cloudfront
      or
      self-hosted
    • validationRedirectFrom
      optional
      string
    • validationRedirectTo
      optional
      string
  • pages
    array of
    object
    required
    • advisorUserId
      string
      required
    • enabled
      boolean
      required
  • handle
    optional
    string
  • myShareUrl
    optional
    string
  • platformHost
    optional
    string

400

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

401

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

403

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

Type to search…

↑↓ navigate↵ selectEsc close