Skip to main content
GET
/
api
/
v1
/
repos
/
file
Get File
curl --request GET \
  --url https://api.{cluster}.code.storage/api/v1/repos/file \
  --header 'Authorization: Bearer <token>'
{
  "status": 123,
  "title": "<string>",
  "type": "<string>",
  "detail": "<string>",
  "error": "<string>",
  "instance": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://code.storage/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Query Parameters

path
string
required

Repository-relative file path to fetch.

ref
string

Optional branch, tag, or commit SHA to read from. When omitted, the repository default branch is used.

ephemeral
boolean

Whether ref should be resolved from the ephemeral namespace.

Response

Success