Skip to main content
GET
/
{org}
/
{repo}
/
content
Get content
curl --request GET \
  --url https://api.mesa.dev/api/v1/{org}/{repo}/content \
  --header 'Authorization: Bearer <token>'
{
  "type": "<string>",
  "name": "<string>",
  "path": "<string>",
  "sha": "<string>",
  "size": 123,
  "encoding": "<string>",
  "content": "<string>",
  "mode": 0
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org
string
required
Minimum string length: 1
repo
string
required
Minimum string length: 1

Query Parameters

oid
string
Pattern: ^[0-9a-f]{40}$
path
string
depth
integer
Required range: 1 <= x <= 9007199254740991

Response

Content response

type
string
required
Allowed value: "file"
name
string
required
path
string
required
sha
string
required
size
number
required
encoding
string
required
Allowed value: "base64"
content
string
required
mode
integer
required
Required range: -9007199254740991 <= x <= 9007199254740991