Skip to main content
GET
/
{org}
/
{repo}
/
content
Get content
curl --request GET \
  --url https://depot.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>",
  "executable": true,
  "last_commit_at": "2023-11-07T05:31:56Z"
}

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

ref
string
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
executable
boolean
required
last_commit_at
string<date-time> | null
required