---
title: "Get a blob object"
method: GET
path: "/projects/{projectId}/git/blobs/{repositoryBlobId}"
tags: ["Repository"]
---

# Get a blob object

`GET /projects/{projectId}/git/blobs/{repositoryBlobId}`

Retrieve, by hash, an object representing a blob in the repository
backing a project. This endpoint allows direct read-only access
to the contents of files in a repo. It returns the file in the
`content` field of the response object, encoded according to the
format in the `encoding` field, e.g. `base64`.

## Path parameters

- `projectId` string, required
- `repositoryBlobId` string, required

## Response `default`

- Blob
  - `id` string, required — The identifier of Blob
  - `sha` string, required — The identifier of the tag
  - `size` integer, required — The size of the blob
  - `encoding` 'base64' | 'utf-8', required — The encoding of the contents
  - `content` string, required — The contents

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
