Skip to content

Retrieve raw blob content

GET
/api/v4/projects/{id}/repository/blobs/{sha}/raw

Retrieves the raw file contents for a blob, by blob SHA. This endpoint can be accessed without authentication if the repository is publicly accessible.

id
required
One of:
string

The ID or URL-encoded path of the project

Example
1
sha
required
string

The commit hash

Example
7d70e02340bac451f281cecf0a980907974bd8be

OK

Bad Request

Not Found