---
title: "List devcontainer configurations in a repository for the authenticated user"
method: GET
path: "/repos/{owner}/{repo}/codespaces/devcontainers"
tags: ["codespaces"]
---

# List devcontainer configurations in a repository for the authenticated user

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

Lists the devcontainer.json files associated with a specified repository and the authenticated user. These files
specify launchpoint configurations for codespaces created within the repository.

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

- `per_page` integer
- `page` integer

## Response `200`

Response

- object
  - `total_count` integer, required
  - `devcontainers` object[], required
    - `path` string, required
    - `name` string
    - `display_name` string

## Other responses

- `400` — Bad Request
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `500` — Internal Error

---

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