List GitHub directory entries

Returns complete direct children of one directory at the supplied immutable commit, bounded to 999 entries and 2 MiB upstream. No cursor, limit, recursive scan or file download. has_more is false and next_cursor is null. Oversized, truncated or non-directory responses fail with 502 upstream_error; use known paths when discovery is unavailable. GitHub responses with 1,000 entries are rejected because its Contents API cannot prove completeness at that ceiling. Path-only format/language hints do not establish file validity or source language. Requires workspace-level stack or integration management permission.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^iau_[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Public id composed of the resource type prefix and its UUID.

Query Params
string
required
length between 0 and 4096

External repository owner.

string
required
length between 0 and 1024

External repository name.

string
required
[0-9a-f]{40}|[0-9a-f]{64}

Full immutable commit SHA; supply a known commit for CodeCommit.

string
length between 0 and 4096

Relative directory path without leading or trailing slashes; empty selects root.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json