Forgejo Admin API

The admin API from Forgejo — 34 operation(s) for admin.

Operations 51

GET /admin/actions/runners Get all runners, no matter whether they are global runners or scoped to an… #
POST /admin/actions/runners Register a new global runner #
GET /admin/actions/runners/jobs Get action run jobs #
GET /admin/actions/runners/registration-token Get a runner registration token for registering global runners #
GET /admin/actions/runners/{runner_id} Get a particular runner, no matter whether it is a global runner or scoped to… #
DELETE /admin/actions/runners/{runner_id} Delete a particular runner, no matter whether it is a global runner or scoped… #
GET /admin/cron List cron tasks #
POST /admin/cron/{task} Run cron task #
GET /admin/emails List all users' email addresses #
GET /admin/emails/search Search users' email addresses #
GET /admin/hooks List global (system) webhooks #
POST /admin/hooks Create a hook #
GET /admin/hooks/{id} Get a hook #
DELETE /admin/hooks/{id} Delete a hook #
PATCH /admin/hooks/{id} Update a hook #
GET /admin/orgs List all organizations #
GET /admin/quota/groups List the available quota groups #
POST /admin/quota/groups Create a new quota group #
GET /admin/quota/groups/{quotagroup} Get information about the quota group #
DELETE /admin/quota/groups/{quotagroup} Delete a quota group #
PUT /admin/quota/groups/{quotagroup}/rules/{quotarule} Adds a rule to a quota group #
DELETE /admin/quota/groups/{quotagroup}/rules/{quotarule} Removes a rule from a quota group #
GET /admin/quota/groups/{quotagroup}/users List users in a quota group #
PUT /admin/quota/groups/{quotagroup}/users/{username} Add a user to a quota group #
DELETE /admin/quota/groups/{quotagroup}/users/{username} Remove a user from a quota group #
GET /admin/quota/rules List the available quota rules #
POST /admin/quota/rules Create a new quota rule #
GET /admin/quota/rules/{quotarule} Get information about a quota rule #
DELETE /admin/quota/rules/{quotarule} Deletes a quota rule #
PATCH /admin/quota/rules/{quotarule} Change an existing quota rule #
GET /admin/runners/jobs Search action jobs according to filter conditions #
GET /admin/runners/registration-token Get a runner registration token for registering global runners #
GET /admin/unadopted List unadopted repositories #
POST /admin/unadopted/{owner}/{repo} Adopt unadopted files as a repository #
DELETE /admin/unadopted/{owner}/{repo} Delete unadopted files #
GET /admin/users Search users according filter conditions #
POST /admin/users Create a user account #
DELETE /admin/users/{username} Delete user account #
PATCH /admin/users/{username} Edit an existing user #
GET /admin/users/{username}/emails List all email addresses for a user #
DELETE /admin/users/{username}/emails Delete email addresses from a user's account #
POST /admin/users/{username}/keys Add an SSH public key to user's account #
DELETE /admin/users/{username}/keys/{id} Remove a public key from user's account #
POST /admin/users/{username}/orgs Create an organization #
GET /admin/users/{username}/quota Get the user's quota info #
POST /admin/users/{username}/quota/groups Set the user's quota groups to a given list #
POST /admin/users/{username}/rename Rename a user #
POST /admin/users/{username}/repos Create a repository on behalf of a user #
GET /admin/users/{username}/tokens List the specified user's access tokens #
POST /admin/users/{username}/tokens Create an access token for the specified user #
DELETE /admin/users/{username}/tokens/{token} Delete an access token for the specified user #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/forgejo-admin-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

forgejo-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: This documentation describes the Forgejo API.
  title: Forgejo Admin API
  license:
    name: This file is distributed under the MIT license for the purpose of interoperability
    url: http://opensource.org/licenses/MIT
  version: 16.0.0-dev-465-4b83448b7d+gitea-1.22.0
servers:
- url: /api/v1
security:
- BasicAuth: []
- AuthorizationHeaderToken: []
- SudoParam: []
- SudoHeader: []
- TOTPHeader: []
tags:


# --- truncated at 32 KB (84 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/forgejo/refs/heads/main/openapi/forgejo-admin-api-openapi.yml