Connect a name
post/hosting/sites/{id}/domains
Connect a name. Control is proven by the name pointing at the site; the certificate is obtained before the first visitor.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:write- Mcp
rivier_hosting_domain_add- Graphql
Mutation.hostingDomainAdd- Sdk
hosting.domain.add- Cli
hosting domain add- Events
hosting.domain.added
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- hoststringrequiredAt most 253 characters.
- methodstringOne of: buy, delegation, connector, domain_connect, watch.
- wildcardboolean
- canonicalstringOne of: www, apex.
Responses
- 201application/jsonSuccess
- registeredUntilstring or null
- idstring (uuid)required
- projectIdstringrequired
- hoststringrequired
- wildcardbooleanrequired
- methodstringrequiredOne of: buy, delegation, connector, domain_connect, watch.
- statestringrequiredOne of: pending_dns, verifying, issuing, live, degraded, suspended.
- reasonstringrequired
- nextobject or nullrequired
- certificatestringrequiredOne of: pending, issued, failed.
- certExpiresAtstring or nullrequired
- targetstringrequired
- canonicalstringrequiredOne of: www, apex.
- verifiedAtstring or nullrequired
- liveAtstring or nullrequired
- checkedAtstring or nullrequired
- createdAtstringrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring