---
title: "Get domain names for a website"
method: GET
path: "/v1/hosting/websites/{website_id}/domain-name"
tags: ["Domain"]
---

# Get domain names for a website

`GET /v1/hosting/websites/{website_id}/domain-name`

## Request

- Base URL: `https://api.10web.io`
- URL: `https://api.10web.io/v1/hosting/websites/{website_id}/domain-name`
- Auth: none declared. Required headers: `x-api-key`
- TypeScript: <https://skmtc.dev/10web/apis/10web-api-v1/docs/v1/hosting/websites/:website_id/domain-name/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `website_id` integer, required

## Headers

- `x-api-key` string, required

## Response `200`

List of domain names

- WebsiteDomainNameListResponse
  - `data` WebsiteDomainNameItem[]
    - `admin_url` string: URL for the admin panel
    - `created_at` string, date-time: Creation date and time
    - `default` 0 | 1: Whether this is the default domain (1) or not (0)
    - `website_id` integer: ID of the website to which the domain name belongs
    - `id` integer: Unique identifier for the domain name
    - `name` string: The domain name
    - `scheme` 'http' | 'https': The URL scheme used
    - `site_url` string: Full URL of the site
    - `updated_at` string, date-time: Last update date and time

## Other responses

- `403`: Unauthorized access
- `429`: Too many requests
- `500`: Something went wrong

---

[API](https://skmtc.dev/10web/apis/10web-api-v1.md) - [All operations](https://skmtc.dev/10web/apis/10web-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/10web/apis/10web-api-v1/revisions/01afc9651dfc?raw)
