---
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

---

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