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 Administration API

Site administration endpoints (requires admin privileges)

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

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

This API exposes 12 operations across 9 paths, and defines 5 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.

12 operations 9 paths 5 schemas 3 DELETE1 GET1 PATCH5 POST2 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 Administration 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 12

Across 9 paths, the API surfaces 12 operations — 3 DELETE, 1 GET, 1 PATCH, 5 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Administration 12

Site administration endpoints (requires admin privileges)

POST
/admin/users
Create a new user
adminCreateUser body → 201422
PATCH
/admin/users/{username}
Edit an existing user
adminEditUser 1 param body → 200404422
DELETE
/admin/users/{username}
Delete a user
adminDeleteUser 1 param → 204404
POST
/admin/users/{username}/keys
Create a public key for a user
adminCreateUserKey 1 param body → 201404422
POST
/admin/users/{username}/repos
Create a repository for a user
adminCreateRepo 1 param body → 201404422
POST
/admin/users/{username}/orgs
Create an organization
adminCreateOrg 1 param body → 201404422
POST
/admin/orgs/{orgname}/teams
Create a team
adminCreateTeam 1 param body → 201404422
GET
/admin/teams/{teamid}/members
List all members of a team
adminListTeamMembers 1 param → 200404
PUT
/admin/teams/{teamid}/members/{username}
Add team membership
adminAddTeamMember 2 params → 204404422
DELETE
/admin/teams/{teamid}/members/{username}
Remove team membership
adminRemoveTeamMember 2 params → 204404
PUT
/admin/teams/{teamid}/repos/{reponame}
Add or update team repository
adminAddTeamRepo 2 params → 204404422
DELETE
/admin/teams/{teamid}/repos/{reponame}
Remove team repository
adminRemoveTeamRepo 2 params → 204404

Schemas 5

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

Organization
object
7 properties
User
object
6 properties
PublicKey
object
5 properties
Repository
object
23 properties
Team
object
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gogs-administration-api-openapi.yml Raw ↑

Other APIs Gogs publishes across the network.

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

This is an independent, third-party profile of Gogs Administration 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.