---
title: "Link domain to website"
method: POST
path: "/api/agency-hosting/v1/websites/{website_uid}/domains"
tags: ["Agency Hosting: Domains"]
---

# Link domain to website

`POST /api/agency-hosting/v1/websites/{website_uid}/domains`

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

## Path parameters

- `website_uid` string, required

## Request body

- AgencyHostingV1DomainsLinkDomainRequest
  - `domain` string, required — Fully qualified domain name to link to the website

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

## Changes

- **2026-08-13** `5a5a54ce5eb4` — 1 info
  - api operation id `agency-hosting_linkDomainToAgencyPlanWebsiteV1` removed and replaced with `agency-hosting_linkDomainToWebsiteV1`
- **2026-07-10** `4225b85b62f6` — 1 info
  - endpoint added
- **2026-06-09** `d05574986eb1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/agency-hosting/v1/websites/:website_uid/domains/post.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/25261642663e/schema)
