---
title: "Get Site Authorizations"
method: GET
path: "/v0/sites/{site_id}/authorizations"
tags: ["sites"]
---

# Get Site Authorizations

`GET /v0/sites/{site_id}/authorizations`

## Request

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

Returns the authorizations (permissions) the authenticated user has on a specific site.

## Path parameters

- `site_id` string, required

## Response `200`

- SiteAuthorizations: SiteAuthorizations represents the permissions a user has on a site
  - `can_switch_upstream` boolean, required: Whether the user can switch the site's upstream

## 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)
