---
title: "Buy Domain"
method: POST
path: "/api/domains"
tags: ["services"]
---

# Buy Domain

`POST /api/domains`

## Request

- Base URL: `https://api.monacloud.vn`
- URL: `https://api.monacloud.vn/api/domains`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Token`

Tạo dữ liệu hoặc thực thi thao tác tại `/api/domains`. Phản hồi dùng JSON và tuân theo schema được công bố bên dưới.

## Request body

- DomainBuyRequest
  - `name` string, required
  - `years` integer
  - `registrant_id` string, nullable
  - `spelling_confirmed` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/monacloud/apis/mona-cloud-api-compute-truoc-ay-vibecloud.md) · [All operations](https://skmtc.dev/monacloud/apis/mona-cloud-api-compute-truoc-ay-vibecloud/llms.txt) · [OpenAPI document](https://skmtc.dev/monacloud/apis/mona-cloud-api-compute-truoc-ay-vibecloud/revisions/34a120ed37ce?raw)
