How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Gogs Repositories API

Create, search, and manage repositories, branches, commits, and contents

Gogs Repositories API is one of 10 APIs that Gogs publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Repositories. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 23 operations across 20 paths, and defines 7 schemas. It is described by OpenAPI 3.2.0, at version v1.

Requests are made against a single base URL, https://gogs.example.com/api/v1.

23 operations 20 paths 7 schemas 1 DELETE15 GET2 PATCH4 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
v1
Server
https://gogs.example.com/api/v1
Authentication
HTTP Basic, API Key
Resource Areas
1

Authentication & Security 2

Gogs Repositories API declares 2 security schemes for authenticating requests. It accepts HTTP basic authentication (BasicAuth). An API key is passed in the header as Authorization (AccessToken). By default, every request must be authenticated.

  • AccessToken — Personal access token. Use format: token {YOURACCESSTOKEN}

Paths & Operations 23

Across 20 paths, the API surfaces 23 operations — 1 DELETE, 15 GET, 2 PATCH, 4 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Repositories 23

Create, search, and manage repositories, branches, commits, and contents

GET
/repos/search
Search repositories
searchRepos 4 params → 200
GET
/user/repos
List your repositories
listYourRepos → 200
POST
/user/repos
Create a repository
createRepo body → 201422
GET
/users/{username}/repos
List user repositories
listUserRepos 1 param → 200404
GET
/orgs/{orgname}/repos
List organization repositories
listOrgRepos 1 param → 200404
POST
/org/{org}/repos
Create a repository in an organization
createOrgRepo 1 param body → 201404422
POST
/repos/migrate
Migrate a repository
migrateRepo body → 201422
GET
/repos/{owner}/{repo}
Get a repository
getRepo 2 params → 200404
DELETE
/repos/{owner}/{repo}
Delete a repository
deleteRepo 2 params → 204404
PATCH
/repos/{owner}/{repo}/issue-tracker
Edit issue tracker settings
editIssueTracker 2 params body → 204404422
POST
/repos/{owner}/{repo}/mirror-sync
Mirror sync
mirrorSync 2 params → 202404422
GET
/repos/{owner}/{repo}/branches
List branches
listBranches 2 params → 200404
GET
/repos/{owner}/{repo}/branches/{branch}
Get a branch
getBranch 3 params → 200404
GET
/repos/{owner}/{repo}/commits/{sha}
Get a single commit
getCommit 3 params → 200404
GET
/repos/{owner}/{repo}/raw/{ref}/{filepath}
Download raw content
getRawContent 4 params → 200404
GET
/repos/{owner}/{repo}/archive/{archive}
Download archive
downloadArchive 3 params → 200404
GET
/repos/{owner}/{repo}/contents/{path}
Get contents
getContents 4 params → 200404
PUT
/repos/{owner}/{repo}/contents/{path}
Create or update a file
putContents 3 params body → 201404422
GET
/repos/{owner}/{repo}/forks
List forks
listForks 2 params → 200404
GET
/repos/{owner}/{repo}/tags
List tags
listTags 2 params → 200404
GET
/repos/{owner}/{repo}/commits
List all commits
getAllCommits 3 params → 200404
PATCH
/repos/{owner}/{repo}/wiki
Edit wiki settings
editWiki 2 params body → 204404422
GET
/repos/{owner}/{repo}/editorconfig/{filename}
Get editorconfig definition
getEditorconfig 3 params → 200404

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are Repository (23 properties), Content (12 properties), Commit (7 properties), User (6 properties). Each schema is shown below with its type and property counts.

EditorConfigDefinition
object
4 properties
Tag
object
2 properties
User
object
6 properties
Commit
object
7 properties
Repository
object
23 properties
Content
object
12 properties
Branch
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gogs-repositories-api-openapi.yml Raw ↑

Other APIs Gogs publishes across the network.

Gogs API
Gogs Administration API
Gogs Collaborators and Deploy Keys API
Gogs Issues API
Gogs Miscellaneous API
Gogs Organizations API
Gogs Releases API
Gogs Users API
Gogs Webhooks API
Where this information came from

This is an independent, third-party profile of Gogs Repositories API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.