Skip to content
Navigation

Remove a booking-site hostname

DELETE
https://api.nicer.travel/identity/booking-site/hosts/{host}

Removes a hostname. A Nicer subdomain becomes an alias (handles are never released); a custom domain moves to REMOVING while its certificate and delivery setup are deleted. Admins remove any of the agency's hostnames, a portal or Pay domain included; an advisor removes only their own page's, while the agency allows advisor pages.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • host
    string
    required

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • 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

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