Generate a new domain

Generates a new domain name.

get

Generates a new domain name that is not in use by any brand. The domain name will be a random alphanumeric string and will be available in the system.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Responses
200

The request was successful.

application/json
get
GET /api/v1/brands/generate-domain HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Accept: */*
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "rootDomain": "jframework.io",
    "subDomain": "dev-p0zhsi9",
    "fullDomain": "dev-p0zhsi9.jframework.io"
  },
  "errors": []
}

Last updated

Was this helpful?