v51

OpenAPI 3.0.0raw.githubusercontent.com2026-08-01267339950.6 KB
Domains: Forwarding

Create domain forwarding

Create domain forwarding configuration.

Use this endpoint to set up domain redirects to other URLs.

post/api/domains/v1/forwarding

Request body

domainstring required

Domain name

redirect_type'301' | '302' required

Redirect type

redirect_urlstring required

URL to forward domain to

Example request

{
  "domain": "mydomain.tld",
  "redirect_type": "301",
  "redirect_url": "https://forward.to.my.url"
}

Response

Success response

domainstring nullable

Domain name

redirect_type'301' | '302'

Redirect type

redirect_urlstring

URL domain is forwarded to

created_atstring date-time
updated_atstring date-time nullable

Example response

{
  "domain": "mydomain.tld",
  "redirect_type": "301",
  "redirect_url": "https://forward.to.my.url",
  "created_at": "2025-02-27T11:54:22Z",
  "updated_at": "2025-03-27T11:54:22Z"
}