GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdRepositoryBlobsSha

AI-generated

Summary

Retrieve the raw blob data of a file in a GitLab project's repository at a specific commit SHA.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab project.
  • Sha (required) — The commit hash identifying which version of the file blob to retrieve.
  • Method — HTTP method to use; typically 'GET' for this operation.
  • baseUrl — Base URL of the GitLab instance; defaults to 'https://gitlab.com'.
  • Skip Authentication — Whether to skip authentication for this request; defaults to false.

Output shape

binary data stream representing the raw contents of the file blob.

The operation returns the raw blob content for the specified commit SHA from the given project repository. It uses the API endpoint GET /api/v4/projects/{id}/repository/blobs/{sha}. Authentication is required unless explicitly skipped.

Links

Discussion