v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.2 MB
codespaces

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

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.

get/repos/{owner}/{repo}/codespaces/permissions_check

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Query parameters

refstring required
Example:master

The git reference that points to the location of the devcontainer configuration to use for the permission check. The value of ref will typically be a branch name (heads/BRANCH_NAME). For more information, see "Git References" in the Git documentation.

devcontainer_pathstring required
Example:.devcontainer/example/devcontainer.json

Path to the devcontainer.json configuration to use for the permission check.

Response

Response when the permission check is successful

acceptedboolean required

Whether the user has accepted the permissions defined by the devcontainer config

Example response

{
  "accepted": true
}