cloadyDocs
API ReferenceEndpointsWorkspaces

Forward a host to a URL

Redirects the domain itself or one subdomain to any URL, with 301 or 302, keeping the request's path when `keepPath` is set. Only for a domain registered through Cloady on Automatic DNS; the host must not serve an app or carry its own A, AAAA or CNAME records. Needs the developer role.

POST
/api/workspaces/{workspaceSlug}/domains/{domain}/forwards
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
domain*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/workspaces/string/domains/string/forwards" \  -H "Content-Type: application/json" \  -d '{    "to": "string"  }'
{  "forwards": [    {      "id": "string",      "from": "string",      "to": "string",      "code": "301",      "keepPath": true    }  ]}