Skip to main content
GET
/
api
/
projects
/
beta
/
projects
/
{projectId}
/
files
/
{commitId}
/
{path}
/
content
Returns the contents of a file (deprecated, use v1 endpoint instead)
curl --request GET \
  --url https://api.example.com/api/projects/beta/projects/{projectId}/files/{commitId}/{path}/content \
  --header 'X-Domino-Api-Key: <api-key>'
"<string>"

Authorizations

X-Domino-Api-Key
string
header
required

Path Parameters

projectId
string
required

Id of the project to return files for

commitId
string
required

Id of a commit in the project repository to list files from

path
string
required

Path in the project's repository to the file. It must be url-encoded and is case-sensitive.

Response

Success. It returns a stream of data with the file content, specifying the appropriate media type based on the file extension in a best-effort basis.

The response is of type file.