Product
Jentic OSThe workplace. An in-house AI platform for every employeeJentic OneSafe access. Agents reach your systems without holding keysJentic AIRThe foundation. Gets your existing platforms ready for AI
Pricing
Developers

GET STARTED

API DirectoryBrowse 10,000+ APIs Ready For AI Agent IntegrationDocumentationGuides and API reference

TOOLS

API ScoringCheck your AI Readiness using our scorecardArazzo UIVisualize Arazzo Workflows As Interactive DocumentationArazzo EditorBuild And Edit Multi-Step API Workflows Visually

COMMUNITY

GitHubOpen source projects and examplesOpen StandardsBuilt on open specs. Never locked in.
Resources
Company
About UsOur mission and teamCareersJoin our teamContactGet in touch
Try it now
Jentic OSJentic OneJentic AIR
Pricing
API DirectoryDocumentationAPI ScoringArazzo UIArazzo EditorGitHubOpen Standards
Resources
About UsCareersContact
Try it now
JenticJentic
Products
  • Jentic OS
  • Jentic One
  • Jentic AIR
For Developers
  • API Directory
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
  • Trust Centre
ISO/IEC 27001:2022 certification badge issued by Prescient SecurityISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

Terms & Conditions•Privacy Policy•
© 2026 Jentic Technology Ltd. All rights reserved.
Switch to light modeSwitch to dark mode
APIs / Developer Tools / Gogs API
Gogs API logo

Gogs API

Agent-ready OpenAPI document · curated by JenticDeveloper ToolsSource Controlbasic, apiKey104 EndpointsREST

Know of an official OpenAPI document? Contribute it →

For Agents

Manage self-hosted Git repositories on Gogs: create issues, push releases, configure webhooks, and manage collaborators. Mirrors GitHub-style endpoints for easy adoption.

Use for: Search Gogs for all repositories owned by an organisation, Create an issue on a Gogs repository, List all branches on a Gogs repository, Configure a webhook for a Gogs repository

Not supported: Does not handle CI/CD execution, package registries, or runtime monitoring - use for self-hosted Git source-control operations on Gogs only.

Jentic publishes the only available OpenAPI specification for Gogs API, keeping it validated and agent-ready. Gogs is a self-hosted, lightweight Git service written in Go that follows the GitHub REST API v3 conventions. Its API exposes repositories, branches, commits, contents, issues, releases, webhooks, collaborators, deploy keys, organisations, users, miscellaneous helpers, and administration endpoints. It is the standard interface for self-hosting teams that want a familiar GitHub-style integration surface without depending on a third-party SaaS.

Jentic One on GithubView OpenAPI Document

Install Jentic One Beta

Connect the Gogs API to your agent

Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Gogs API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.

Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.

1

Step 1: Jentic One Host machine

# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fgogs.io%2Fgogs" | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fgogs.io%2Fgogs" | sh
jentic register       # connects your agent to your Jentic One instance

Jentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.

Capabilities

What an agent can do with Gogs API.

Search repositories or list user, organisation, and team repositories

Create, read, and migrate repositories including their branches and contents

Open, list, and comment on issues against a repository

Manage releases, tags, and webhooks for a repository

Add or remove collaborators and deploy keys on a repository

Run administration tasks such as user provisioning when authenticated as an admin

Use Cases

Patterns agents use Gogs API for, with concrete tasks.

★ Self-Hosted Issue Tracking Automation

Engineering teams that run Gogs internally automate issue triage by calling /repos/{owner}/{repo}/issues to read open issues and POST to the same path to create new ones. This pattern mirrors the GitHub Issues API, so existing scripts and bots port over with minimal changes.

Open an issue on repo 'platform/infra' titled 'Investigate intermittent CI timeout' with the agent's debug log attached as a comment.

Repository Migration

When teams move from GitHub or another Git host to Gogs, /repos/migrate accepts a clone URL and credentials and pulls the full repository - including history - into Gogs. Pair it with /repos/{owner}/{repo}/hooks to recreate webhooks on the new host.

Migrate the repository at https://github.com/example/widgets into the Gogs organisation 'platform' and recreate the GitHub webhooks.

Release Automation

CI integrations create releases on Gogs by calling /repos/{owner}/{repo}/releases when a tag pipeline completes. Combined with /repos/{owner}/{repo}/branches and /repos/{owner}/{repo}/commits/{sha}, the integration can record the exact commit and branch each release was cut from.

Create a release v1.4.0 on repo 'platform/widgets' with notes assembled from the commits since the last release.

AI Agent Source Control

An AI coding agent uses Jentic to interact with a Gogs server: it lists repositories, opens issues for newly detected bugs, and writes back fix commits via the contents endpoints. Basic auth credentials and personal access tokens stay in your Jentic One instance.

Search Jentic for 'create gogs issue', load the schema, and open a 'flaky test' issue on every repo where the nightly CI failed.

Key Endpoints

104 endpoints — jentic publishes the only available openapi specification for gogs api, keeping it validated and agent-ready.

METHOD

PATH

DESCRIPTION

GET

/repos/search

Search repositories

GET

/repos/{owner}/{repo}

Get a repository

POST

/repos/migrate

Migrate an external repository into Gogs

GET

/repos/{owner}/{repo}/issues

List issues on a repository

POST

/repos/{owner}/{repo}/issues

Create an issue on a repository

GET

/repos/{owner}/{repo}/branches

List branches

GET

/repos/{owner}/{repo}/releases

List releases

GET

/repos/{owner}/{repo}/hooks

List webhooks for a repository

GET

/repos/search

Search repositories

GET

/repos/{owner}/{repo}

Get a repository

POST

/repos/migrate

Migrate an external repository into Gogs

GET

/repos/{owner}/{repo}/issues

List issues on a repository

POST

/repos/{owner}/{repo}/issues

Create an issue on a repository

GET

/repos/{owner}/{repo}/branches

List branches

GET

/repos/{owner}/{repo}/releases

List releases

GET

/repos/{owner}/{repo}/hooks

List webhooks for a repository

Why Jentic?

What agents get from Jentic-routed access to this vendor.

Setup

Setup

Wiring Gogs by hand means pointing at your own self-hosted host, choosing between basic auth and a personal access token in the Authorization header, and mapping the repository, issue, and hook endpoints yourself. Through Jentic you install once, import Gogs from the API Directory, store the credential once, and your agent calls it.

Permission scoping

Permission scoping

Gogs puts the owner and repository in the URL path (/repos/{owner}/{repo}/...), so a rule can pin your agent to one repository: it can read and file issues, list branches, and read releases for that repo and nothing else. You choose the operations it may call, so ones like migrating a repository are not included unless you add them.

Credential management

Credential isolation

Your Gogs token or basic-auth credential is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.

Intent-based discovery

Intent-based discovery

Agents search Jentic by intent such as 'create a gogs issue' or 'search repositories', and Jentic returns the matching Gogs operation with its input schema so the agent calls the right endpoint without browsing the source-tree Markdown.

Related APIs

Alternatives and complements available in the Jentic catalogue.

Alternative

GitHub REST API

→

GitHub is the SaaS Git host whose API conventions Gogs mirrors closely.

Choose GitHub for hosted scale and ecosystem; choose Gogs for self-hosted control with a familiar API shape.

Alternative

GitLab API

→

GitLab provides Git plus integrated CI/CD and project management in one platform.

Choose GitLab when you need built-in CI, security scanning, and broader DevOps tooling; choose Gogs for a minimal self-hosted Git server.

Complementary

GoCD API

→

GoCD pulls source from Gogs as a material and runs the resulting deploy pipelines.

Pair GoCD with Gogs when teams want self-hosted source control plus self-hosted continuous delivery.

FAQs

Specific to using Gogs API through Jentic.

Why is there no official OpenAPI spec for Gogs API?

Gogs documents its endpoints in source-tree Markdown files but does not ship a maintained OpenAPI specification. Jentic generates and maintains this spec so AI agents and developers can call Gogs API via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.

What authentication does the Gogs API use?

Gogs supports two schemes: HTTP basic authentication with username and password, and personal access tokens passed via the Authorization header. Through Jentic, both are stored encrypted in the vault and injected at execution time so the agent never sees the raw secret.

Can I create an issue with the Gogs API?

Yes. POST /repos/{owner}/{repo}/issues opens a new issue and POST /repos/{owner}/{repo}/issues/{index}/comments adds a comment. The shape mirrors the GitHub Issues API so existing tooling ports across with little change.

What are the rate limits for the Gogs API?

Gogs is self-hosted and the OpenAPI spec does not declare a numeric rate limit. The practical limit depends on the deployed server's capacity; back off on HTTP 429 responses if your administrator has fronted the server with a rate-limiting proxy.

How do I migrate a repository to Gogs through Jentic?

Run a Jentic search for 'migrate repo to gogs', load the schema for POST /repos/migrate, and execute it with the source clone URL and target organisation. Install with pip install jentic and chain search, load, and execute.

Does the Gogs API support webhooks?

Yes. /repos/{owner}/{repo}/hooks lists configured webhooks and POST to the same path adds a new one. /repos/{owner}/{repo}/hooks/{id} updates or removes a specific webhook so CI integrations can keep their delivery URLs current.

Can I limit what my agent is allowed to do with the Gogs API?

Yes. Because Jentic One is self-hosted by you, your own rules decide which Gogs operations and credentials the agent may use. Gogs puts the owner and repository in the URL path, such as /repos/{owner}/{repo}/issues, so you can pin the agent to a single repository where it reads and files issues, lists branches, and reads releases and nothing more. Sensitive operations like POST /repos/migrate are excluded unless you explicitly add them, and your Gogs token or basic-auth credential is injected at execution time rather than exposed to the agent.

GET STARTED

Start building with Gogs API

Explore with Jentic One
View OpenAPI Document