---
title: "Viewer's runtime GitHub admin permission on a repo"
method: GET
path: "/api/v1/cache/{org}/{repo}/permissions"
tags: ["Repo Settings"]
---

# Viewer's runtime GitHub admin permission on a repo

`GET /api/v1/cache/{org}/{repo}/permissions`

Returns whether the authenticated user has `permissions.admin` on the repo, per GitHub. Used by the repo Settings page to decide whether to enable admin-only controls. Returns `{ canAdmin: false }` if the viewer has no GitHub token or the GitHub call fails transiently.

## Path parameters

- `org` string, required
- `repo` string, required

## Response `200`

Viewer's permission result

- object
  - `canAdmin` boolean, required

## Other responses

- `401` — GitHub token expired
- `404` — User not found

---

[API](https://skmtc.dev/entire/apis/entire-api.md) · [All operations](https://skmtc.dev/entire/apis/entire-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/entire/entire-api/revisions/c3d737ae064e/schema)
