Domains

Bind a host. Hosts are created unverified — call /verify after publishing the TXT challenge.

post/api/v1/domains

Request

  • Base URL: https://qrlia.dev.castlesoft.eu
  • URL: https://qrlia.dev.castlesoft.eu/api/v1/domains
  • Auth: one of:
    • HTTP bearer
    • API key in cookie qrc_session

Request body

hoststring required

RFC 1035 hostname, lowercase. Trailing dots are stripped.

role'portal' | 'redirect' | 'landing' required

portal = login + admin UI. redirect = short-link host. landing = public landing pages.

companyIdstring uuid nullable

Pin to a company (white-label). Omit for tenant-wide hosts.

Response

Created

idstring uuid required
hoststring required
role'portal' | 'redirect' | 'landing' required

portal = login + admin UI. redirect = short-link host. landing = public landing pages.

tenantIdstring uuid required
companyIdstring uuid nullable required
isPrimaryboolean required
verifiedAtstring date-time nullable required
createdAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.