---
title: "Get site ID by name"
method: GET
path: "/v0/site-names/{site_name}"
tags: ["sites"]
---

# Get site ID by name

`GET /v0/site-names/{site_name}`

## Request

- Base URL: `https://api.pantheon.io`
- URL: `https://api.pantheon.io/v0/site-names/{site_name}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pantheon/apis/pantheon-public-api-service/docs/v0/site-names/:site_name/get.ts> (a function with typed inputs; its response is checked against the schema)

Resolves a site name to its UUID.

## Path parameters

- `site_name` string, required

## Response `200`

- SiteNameLookup
  - `id` string: Site UUID
  - `name` string: Site name

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/pantheon/apis/pantheon-public-api-service.md) - [All operations](https://skmtc.dev/pantheon/apis/pantheon-public-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/pantheon/apis/pantheon-public-api-service/revisions/5d158d59f4c3?raw)
