Skip to main content
GET
/
repos
/
{owner}
/
{repo}
/
raw
/
{ref}
/
{filepath}
Download raw content
curl --request GET \
  --url https://gogs.example.com/api/v1/repos/{owner}/{repo}/raw/{ref}/{filepath} \
  --header 'Authorization: <api-key>'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://gogs.io/llms.txt

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

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

owner
string
required

Repository owner

repo
string
required

Repository name

ref
string
required

Branch, tag, or commit

filepath
string
required

File path

Response

Raw file content

The response is of type string.