Update domain aliases or proxy origin settings
const url = 'https://app.routeseam.com/api/v1/domains/1';const options = { method: 'PATCH', headers: {'X-Api-Key': '<X-Api-Key>', 'Content-Type': 'application/json'}, body: '{"include_www":true,"origin":"https://example.com","preserve_host":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://app.routeseam.com/api/v1/domains/1 \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <X-Api-Key>' \ --data '{ "include_www": true, "origin": "https://example.com", "preserve_host": true }'Turning include_www on is rejected with 422 when it would complete a
redirect loop — www.<hostname> starts resolving to this domain, which
may be where another domain already points. The error message names no
domain, because the one that would loop is not necessarily yours.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Body
Section titled “Request Body”object
Proxy domains only
Proxy domains only
Examplegenerated
{ "include_www": true, "origin": "https://example.com", "preserve_host": true}Responses
Section titled “Responses”OK
object
object
Present for private-beta proxy domains
Present for proxy domains
Proxy A and unique TXT records; keep both after activation.
object
E.g. issued / failed
Present while status is not active — the record to add
object
ROUTESEAM_IP
Example
{ "domain": { "status": "pending_dns", "mode": "proxy", "dns_records": [ { "type": "A" } ], "dns": { "type": "A", "name": "@" } }}Missing or invalid API key
The ONLY error envelope — produced by Api::V1::BaseController#render_error_response
object
object
Example
{ "error": "Invalid API key", "errors": [], "validation_errors": {}}Not found (cross-tenant ids are indistinguishable from missing ones)
The ONLY error envelope — produced by Api::V1::BaseController#render_error_response
object
object
Example
{ "error": "Not found", "errors": [], "validation_errors": {}}Validation failed (validation_errors keyed by attribute)
The ONLY error envelope — produced by Api::V1::BaseController#render_error_response
object
object
Examplegenerated
{ "error": "example", "errors": [ "example" ], "validation_errors": { "additionalProperty": [ "example" ] }}Over 300 requests/minute for this key
The ONLY error envelope — produced by Api::V1::BaseController#render_error_response
object
object
Example
{ "error": "Rate limit exceeded", "errors": [], "validation_errors": {}}