---
title: "Get Site"
method: GET
path: "/v2/sites/{siteId}"
tags: ["site"]
---

# Get Site

`GET /v2/sites/{siteId}`

Returns a site by its ID.

## Path parameters

- `siteId` string, uuid, required

## Headers

- `x-api-key` string, required

## Response `200`

- ReadSiteV2ResponseBodyDto
  - `object` 'site', required — The type of the object
  - `id` string, uuid, required
  - `name` string, required — The site name.
  - `hostOrigin` string, uri, nullable, required — The public URL where your site is hosted. This is the URL that Makeswift uses to render your site for editing.
  - `publicApiKey` string, uuid, required — The publishable API key that a host can use to get page and component data for rendering your site.
  - `defaultLocale` string, required — The primary locale of this site.
  - `defaultLocalePathPrefix` string, nullable
  - `localeManagementMode` 'internal' | 'external', required — Controls whether locales are managed internally via the builder or externally via API.

## Other responses

- `403`

---

[API](https://skmtc.net/makeswift/apis/rest.md) · [All operations](https://skmtc.net/makeswift/apis/rest/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/makeswift/rest/versions/9e0c72b4d151/schema)
