Skip to content

Retrieve a blob from a repository

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

Retrieves information, such as size and content, about blobs in a repository. Blob content is Base64 encoded. 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