---
title: "Check if permissions defined by a devcontainer have been accepted by the authenticated user"
method: GET
path: "/repos/{owner}/{repo}/codespaces/permissions_check"
tags: ["codespaces"]
---

# Check if permissions defined by a devcontainer have been accepted by the authenticated user

`GET /repos/{owner}/{repo}/codespaces/permissions_check`

Checks whether the permissions defined by a given devcontainer configuration have been accepted by the authenticated user.

OAuth app tokens and personal access tokens (classic) need the `codespace` scope to use this endpoint.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `ref` string, required
- `devcontainer_path` string, required

## Response `200`

Response when the permission check is successful

- CodespacesPermissionsCheckForDevcontainer — Permission check result for a given devcontainer config.
  - `accepted` boolean, required — Whether the user has accepted the permissions defined by the devcontainer config

## Other responses

- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.
- `503` — Service unavailable

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-2.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-2/versions/8ae6d0c8716e/schema)
