---
title: "Generate a free subdomain"
method: POST
path: "/api/hosting/v1/domains/free-subdomains"
tags: ["Hosting: Domains"]
---

# Generate a free subdomain

`POST /api/hosting/v1/domains/free-subdomains`

Generate a unique free subdomain that can be used for hosting services without purchasing custom domains.
Free subdomains allow you to start using hosting services immediately
and you can always connect a custom domain to your site later.

## Response `200`

Success response

- HostingV1DomainsFreeSubdomainResource
  - `domain` string — Generated free subdomain

## Other responses

- `401` — Unauthenticated 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)
