AccountHostnames

Connect a hostname

POST
/v1/account/hostnames

Claims a hostname for this account. A custom hostname stays pending until its CNAME is confirmed (POST .../:id/check, or the worker checking in the background); a subdomain one is verified at once.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Request Body

application/json
  1. body
hostname*string
Length1 <= length <= 253
kind*string
Value in"subdomain""custom"

Response Body

Created

application/json
  1. response

Created

id*string
hostname*string
kind*string

subdomain is a label under your own portal address; custom is a domain of yours

Value in"subdomain""custom"
status*string

pending until its CNAME is confirmed, or always verified for a subdomain

Value in"pending""verified""failed"
attempts*integer

Failed CNAME checks so far

lastCheckedAt*|
Formatdate-time
verifiedAt*|
Formatdate-time
failure*|

Why the most recent check failed. Null once verified, and before the first check

createdAt*string
Formatdate-time
cnameTarget*|

What a custom hostname's CNAME must point at. Null for a subdomain one

curl -X POST "https://example.com/v1/account/hostnames" \  -H "Content-Type: application/json" \  -d '{    "hostname": "shop.northwind.example",    "kind": "subdomain"  }'
{  "id": "hst_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",  "hostname": "shop.northwind.example",  "kind": "subdomain",  "status": "pending",  "attempts": 0,  "lastCheckedAt": null,  "verifiedAt": null,  "failure": null,  "createdAt": "2026-10-07T11:04:31.000Z",  "cnameTarget": "portal.rhq.app"}