/api/v2/domains/{id}/redirects Return URL redirect rules for one domain plus the per-domain rule limit and create gate.
Get {id} from GET /api/v2/domains data[].id.
Redirects are not DNS records: create, update, and delete them through the redirect routes, not by writing A/AAAA/CNAME records directly.
The API prepares the DNS anchor records a redirect needs; deleting or replacing those records can make existing redirects stop working.
IDN/punycode hostnames in redirect URLs are returned in human-readable Unicode form.
Use include=orphans only when repairing active redirect/proxy rules with no saved redirect row.
Redirects can be saved before DNS is fully ready; a rule may show status: "pending_dns" until nameservers/DNS are correct.
read:domains
Authenticate with an API key in the Authorization: Bearer <token> header.
id string required
Example: dom_01hxa3b4c5d6e7f8g9h0j1k2m3 Public domain ID from GET /api/v2/domains data[].id. Do not invent this value; use the exact ID returned by the referenced API response.
include string · enum
· Example: orphans Optional repair view that includes upstream proxy rules not represented by saved redirect rows.
orphans Authorization Bearer <token> Accept application/json domainId string
· Example: dom_01hxa3b4c5d6e7f8g9h0j1k2m3 rules array<object> rules[].id string required
· Example: redir_01hxa3b4c5d6e7f8g9h0j1k2m3 rules[].domainId string required
· Example: dom_01hxa3b4c5d6e7f8g9h0j1k2m3 rules[].sourceHost string required
· Example: www.example.com Human-readable source host. IDN/punycode hostnames are returned in Unicode form.
rules[].sourcePath string · nullable required
· Example: null Nullable: may be null when not applicable.
rules[].sourceUrl string required
· Example: https://www.example.com Source URL with any IDN hostname returned in Unicode form.
rules[].targetUrl string required
· Example: https://example.com Target URL with any IDN hostname returned in Unicode form.
rules[].httpStatusCode integer · enum required
· Example: 301 301 302 307 308 rules[].scope string · enum required
· Example: root_www exact root_www subdomains all rules[].preservePath boolean required
· Example: false rules[].preserveQuery boolean required
· Example: false rules[].includeSubdomains boolean required
· Example: false rules[].status string · enum required
· Example: active active pending_dns error disabled rules[].reason string · nullable required
· Example: null Nullable: may be null when not applicable.
rules[].description string · nullable required
· Example: Redirect www to apex Nullable: may be null when not applicable.
rules[].createdAt string · nullable required
· Example: 2026-04-27T12:00:00.000Z Nullable: may be null when not applicable.
rules[].updatedAt string · nullable required
· Example: 2026-04-27T12:00:00.000Z Nullable: may be null when not applicable.
limitPerDomain integer
· Example: 10 redirectCount integer
· Example: 1 actions object actions.canCreateNewRule object required actions.canCreateNewRule.allowed boolean required
· Example: true actions.canCreateNewRule.reason string · nullable required
· Example: null Nullable: may be null when not applicable.
actions.canCreateNewRule.code string · nullable
· Example: pending_order Machine-readable reason code when an action is blocked.
orphanedProxyRules array<object> Only present when include=orphans is sent.
type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object Retry-After seconds plus X-RateLimit-* headers. 10 fields type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object https://cloud.hostup.se/api/v2/domains/{id}/redirects curl -X GET "https://cloud.hostup.se/api/v2/domains/dom_01hxa3b4c5d6e7f8g9h0j1k2m3/redirects" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" {
"domainId": "dom_01hxa3b4c5d6e7f8g9h0j1k2m3",
"rules": [
{
"id": "redir_01hxa3b4c5d6e7f8g9h0j1k2m3",
"domainId": "dom_01hxa3b4c5d6e7f8g9h0j1k2m3",
"sourceHost": "www.example.com",
"sourcePath": null,
"sourceUrl": "https://www.example.com",
"targetUrl": "https://example.com",
"httpStatusCode": 301,
"scope": "root_www",
"preservePath": false,
"preserveQuery": false,
"includeSubdomains": false,
"status": "active",
"reason": null,
"description": "Redirect www to apex",
"createdAt": "2026-04-27T12:00:00.000Z",
"updatedAt": "2026-04-27T12:00:00.000Z"
}
],
"limitPerDomain": 10,
"redirectCount": 1,
"actions": {
"canCreateNewRule": {
"allowed": true,
"reason": null
}
}
}