List a directory

Lists the entries of one directory of the metadata repository at a ref.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Lists one directory of a branch's Salesforce metadata repository. Start at the root and descend by passing an entry's path. An entry's type is tree for a directory and blob for a file; read a file with Get a file.

A ref or directory that does not exist, and a path that names a file, answer 404.

Paging

Without limit the whole list is returned in one response. With limit the list is paged: meta.hasNext says whether another page exists and meta.next is its URL. total always counts every match, whatever the page.

Query Params
string
required

A branch name or commit SHA.

string

Directory to list, e.g. src/classes. Omit for the root.

int32

Page size, 1 to 1000. Omit to get every entry in one response.

int32

Number of entries to skip. Defaults to 0.

Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Choose an example:
application/json