Add a domain
post/workspace/domains
Add a domain: detect where its DNS is hosted, build the records and check for conflicts.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
domains:write- Mcp
rivier_domain_set- Sdk
domains.domain.add- Cli
domains domain add- Events
domains.domain.added
Request bodyapplication/json, required
- domainstringrequiredAt most 253 characters.
- modestringOne of: apex, subdomain, delegate.
- subLabelstringPattern: ^[a-z0-9][a-z0-9-]{0,30}$.
Responses
- 200application/jsonSuccess
- domainobjectrequired
- domainobjectrequired
- 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