For the complete documentation index, see llms.txt. This page is also available as Markdown.

Link domain to website

Links a domain to the specified Agency Plan website so it can serve traffic for that domain.

Link domain to website

post

Links a domain to the specified Agency Plan website so it can serve traffic for that domain.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
website_uidstringRequired

Agency Plan website UID

Example: zpwlGlp19
Body
domainstringRequired

Fully qualified domain name to link to the website

Example: example.com
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
post/api/agency-hosting/v1/websites/{website_uid}/domains
POST /api/agency-hosting/v1/websites/{website_uid}/domains HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "domain": "example.com"
}
{
  "message": "Request accepted"
}

Last updated

Was this helpful?