Get a file

Returns the content of one file of the metadata repository at a ref.

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

Returns one file as it is at a ref. The whole file is returned in text.

A binary file answers binary: true with text: null; use Get an Archive of Files to download binary content. A ref or file that does not exist, and a path that names a directory, answer 404.

To see how a file differs between two refs, use Get a file diff.

Query Params
string
required

A branch name or commit SHA.

string
required

Repository path of the file, e.g. src/classes/InvoiceService.cls.

Responses

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