Skip to main content
GET
/
projects
/
{projectId}
/
git
/
blobs
/
{repositoryBlobId}
Get a blob object
curl --request GET \
  --url {schemes}://api.upsun.com/projects/{projectId}/git/blobs/{repositoryBlobId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "sha": "<string>",
  "size": 123,
  "encoding": "base64",
  "content": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

projectId
string
required
repositoryBlobId
string
required

Response

default - application/json
id
string
required

The identifier of Blob

sha
string
required

The identifier of the tag

size
integer
required

The size of the blob

encoding
enum<string>
required

The encoding of the contents

Available options:
base64,
utf-8
content
string
required

The contents