Codeberg Admin API

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

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 51

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /admin/actions/runners List all action runners · Get all runners, no matter whether they are global runners or scoped to an… #
Ask an LLM
“Which runners are registered on my Forgejo instance?”
“Can I see only the runners owned by the instance itself?”
Tell an agent
List all action runners.
Show runners visible set to {visible}.
POST /admin/actions/runners Register a global runner · Register a new global runner #
Ask an LLM
“How do I register a new runner for the whole instance?”
“Can I register an ephemeral runner that runs once and is discarded?”
Tell an agent
Register a runner named {name}.
Register runner {name} as ephemeral: {ephemeral}.
GET /admin/actions/runners/jobs List action run jobs · Get action run jobs #
Ask an LLM
“What action jobs are currently running or queued?”
“Can I filter action run jobs by label?”
Tell an agent
List action run jobs.
Show action run jobs with labels {labels}.
GET /admin/actions/runners/registration-token Get a runner registration token · Get a runner registration token for registering global runners #
Ask an LLM
“How do I get a token to register a new runner?”
“Is the runner registration token still supported?”
Tell an agent
Get a runner registration token.
Generate a new runner registration token.
GET /admin/actions/runners/{runner_id} Get an action runner · Get a particular runner, no matter whether it is a global runner or scoped to… #
Ask an LLM
“What is the status of a specific runner?”
“Can I look up one runner by its ID?”
Tell an agent
Show runner {runner_id}.
Get the details of action runner {runner_id}.
DELETE /admin/actions/runners/{runner_id} Delete an action runner · Delete a particular runner, no matter whether it is a global runner or scoped… #
Ask an LLM
“How do I unregister a runner from the instance?”
“Can I remove a single runner by ID?”
Tell an agent destructive · confirm first
Delete runner {runner_id}.
Unregister action runner {runner_id}.
GET /admin/cron List cron tasks · List cron tasks #
Ask an LLM
“Which cron tasks are scheduled on the instance?”
“Can I page through the cron task list?”
Tell an agent
List cron tasks.
Show cron tasks, page {page} with {limit} per page.
POST /admin/cron/{task} Run a cron task · Run cron task #
Ask an LLM
“How do I trigger a cron task on demand?”
“Can I run a specific scheduled task right now?”
Tell an agent
Run cron task {task}.
Trigger the {task} cron job manually.
GET /admin/emails List all user email addresses · List all users' email addresses #
Ask an LLM
“Can I export every user's email address?”
“Where do I get the full list of user emails?”
Tell an agent
List all user email addresses.
Export every user email, page {page} with {limit} per page.
GET /admin/emails/search Search user email addresses · Search users' email addresses #
Ask an LLM
“Can I find users by part of their email address?”
“How do I search user emails for a keyword?”
Tell an agent
Search user emails for {q}.
Find user emails matching {q}, page {page} with {limit} per page.
GET /admin/hooks List global webhooks · List global (system) webhooks #
Ask an LLM
“What global webhooks are configured on the instance?”
“Can I see all system-level webhooks?”
Tell an agent
List global webhooks.
Show system webhooks, page {page} with {limit} per page.
POST /admin/hooks Create a global webhook · Create a hook #
Ask an LLM
“How do I add a new global webhook that receives events?”
“Can I restrict a global webhook to certain branches?”
Tell an agent
Create a {type} webhook with config {config}.
Add a global webhook of type {type} that only fires on {events} and branches {branch_filter}, config {config}.
GET /admin/hooks/{id} Get a global webhook · Get a hook #
Ask an LLM
“What URL and events does a particular global webhook send to?”
“Can I view one system webhook by its ID?”
Tell an agent
Show global webhook {id}.
Get the configuration of system webhook {id}.
DELETE /admin/hooks/{id} Delete a global webhook · Delete a hook #
Ask an LLM
“How do I remove a global webhook?”
“Can I delete a system-level webhook by ID?”
Tell an agent destructive · confirm first
Delete global webhook {id}.
Remove system webhook {id}.
PATCH /admin/hooks/{id} Update a global webhook · Update a hook #
Ask an LLM
“Can I change the URL or events of an existing global webhook?”
“How do I deactivate a global webhook?”
Tell an agent
Update global webhook {id} to send to {config}.
Set system webhook {id} active to {active}.
GET /admin/orgs List all organizations · List all organizations #
Ask an LLM
“Which organizations exist on the instance?”
“Can I page through the list of organizations?”
Tell an agent
List all organizations.
Show organizations, page {page} with {limit} per page.
GET /admin/quota/groups List quota groups · List the available quota groups #
Ask an LLM
“What quota groups are available for organizations?”
“Which organization quota groups exist?”
Tell an agent
List quota groups.
Show the available organization quota groups.
POST /admin/quota/groups Create an organization quota group · Create a new quota group #
Ask an LLM
“How do I create a new quota group for organizations?”
“Can I define rules when creating a quota group?”
Tell an agent
Create quota group {name} with rules {rules}.
Add a new organization quota group named {name}.
GET /admin/quota/groups/{quotagroup} Get an organization quota group · Get information about the quota group #
Ask an LLM
“What rules does a particular quota group contain?”
“Can I look up one organization quota group by name?”
Tell an agent
Show quota group {quotagroup}.
Get the rules of organization quota group {quotagroup}.
DELETE /admin/quota/groups/{quotagroup} Delete an organization quota group · Delete a quota group #
Ask an LLM
“How do I remove an organization quota group?”
“Can I delete a quota group by name?”
Tell an agent destructive · confirm first
Delete quota group {quotagroup}.
Remove organization quota group {quotagroup}.
PUT /admin/quota/groups/{quotagroup}/rules/{quotarule} Add a quota rule to a group · Adds a rule to a quota group #
Ask an LLM
“How do I put a quota rule into a quota group?”
“Can I attach a rule to a group of users?”
Tell an agent
Add quota rule {quotarule} to quota group {quotagroup}.
Attach rule {quotarule} to group {quotagroup}.
DELETE /admin/quota/groups/{quotagroup}/rules/{quotarule} Remove a quota rule from a group · Removes a rule from a quota group #
Ask an LLM
“How do I take a quota rule out of a group?”
“Can I detach a rule from a quota group?”
Tell an agent destructive · confirm first
Remove quota rule {quotarule} from quota group {quotagroup}.
Detach rule {quotarule} from group {quotagroup}.
GET /admin/quota/groups/{quotagroup}/users List users in a quota group · List users in a quota group #
Ask an LLM
“Which users belong to a particular quota group?”
“Can I see every user assigned to a quota group?”
Tell an agent
List the users in quota group {quotagroup}.
Show everyone assigned to group {quotagroup}.
PUT /admin/quota/groups/{quotagroup}/users/{username} Add a user to a quota group · Add a user to a quota group #
Ask an LLM
“How do I put a user into a quota group?”
“Can I add a single user to a group of quota rules?”
Tell an agent
Add user {username} to quota group {quotagroup}.
Put {username} into group {quotagroup}.
DELETE /admin/quota/groups/{quotagroup}/users/{username} Remove a user from a quota group · Remove a user from a quota group #
Ask an LLM
“How do I take a user out of a quota group?”
“Can I remove one user from a group without touching the others?”
Tell an agent destructive · confirm first
Remove user {username} from quota group {quotagroup}.
Take {username} out of group {quotagroup}.
GET /admin/quota/rules List available quota rules · List the available quota rules #
Ask an LLM
“What quota rules can I assign to users?”
“Which limits are defined as quota rules?”
Tell an agent
List all quota rules.
Show me the available quota limits.
POST /admin/quota/rules Create a quota rule · Create a new quota rule #
Ask an LLM
“How do I define a new quota rule like 100 repos per user?”
“Can I create a quota rule for a subject like organizations?”
Tell an agent
Create quota rule {name} with limit {limit}.
Define a new quota rule for {subjects} capped at {limit}.
GET /admin/quota/rules/{quotarule} Get a quota rule · Get information about a quota rule #
Ask an LLM
“What limit does a specific quota rule set?”
“Can I look up one quota rule by name?”
Tell an agent
Get quota rule {quotarule}.
Show the limit defined by rule {quotarule}.
DELETE /admin/quota/rules/{quotarule} Delete a quota rule · Deletes a quota rule #
Ask an LLM
“How do I remove a quota rule I no longer use?”
“Can I delete a quota rule by name?”
Tell an agent destructive · confirm first
Delete quota rule {quotarule}.
Remove the {quotarule} quota rule.
PATCH /admin/quota/rules/{quotarule} Edit a quota rule · Change an existing quota rule #
Ask an LLM
“How do I raise the limit on an existing quota rule?”
“Can I change which subjects a quota rule applies to?”
Tell an agent
Change quota rule {quotarule} to limit {limit}.
Update rule {quotarule} so it applies to {subjects}.
GET /admin/runners/jobs Search action run jobs (deprecated) · Search action jobs according to filter conditions #
Ask an LLM
“Can I still search action run jobs by label with the old runner endpoint?”
“Is the deprecated runner job search still available?”
Tell an agent
Search the deprecated runner jobs for labels {labels}.
Find old action run jobs tagged {labels}.
GET /admin/runners/registration-token Get a global runner registration token (deprecated) · Get a runner registration token for registering global runners #
Ask an LLM
“Can I still get a runner registration token for global runners?”
“Is the deprecated runner registration token still available?”
Tell an agent
Get the deprecated runner registration token.
Fetch a global runner registration token using the old endpoint.
GET /admin/unadopted List unadopted repositories · List unadopted repositories #
Ask an LLM
“Which repositories were uploaded but not adopted yet?”
“Can I find unadopted repos by name pattern?”
Tell an agent
List unadopted repositories.
Find unadopted repos matching {pattern}.
POST /admin/unadopted/{owner}/{repo} Adopt unadopted files as a repository · Adopt unadopted files as a repository #
Ask an LLM
“How do I turn uploaded files into a real repository?”
“Can I adopt an unadopted repository by owner and name?”
Tell an agent
Adopt unadopted files {owner}/{repo} as a repository.
Make {owner}/{repo} a real repo by adopting it.
DELETE /admin/unadopted/{owner}/{repo} Delete unadopted files · Delete unadopted files #
Ask an LLM
“How do I delete uploaded files that were never adopted?”
“Can I remove unadopted repository files?”
Tell an agent destructive · confirm first
Delete unadopted files {owner}/{repo}.
Remove the unadopted {owner}/{repo} files.
GET /admin/users Search users · Search users according filter conditions #
Ask an LLM
“How do I find users by login name or 2FA status?”
“Can I list users from one login source?”
Tell an agent
Search users for login name {login_name}.
Find users with 2FA enabled {is_2fa_enabled} from source {source_id}.
POST /admin/users Create a user account · Create a user account #
Ask an LLM
“How do I create a new user account through the API?”
“Can I set a user's creation date when I create them?”
Tell an agent
Create user {username} with email {email}.
Create user {username} named {full_name} with email {email}.
DELETE /admin/users/{username} Delete a user account · Delete user account #
Ask an LLM
“How do I delete a user account?”
“Can I purge a user from the system completely?”
Tell an agent destructive · confirm first
Delete user {username}.
Purge user {username} from the system with purge {purge}.
PATCH /admin/users/{username} Edit an existing user · Edit an existing user #
Ask an LLM
“How do I make an existing user an admin?”
“Can I change a user's email or password?”
Tell an agent
Make user {username} an admin.
Change user {username}'s email to {email}.
GET /admin/users/{username}/emails List a user's email addresses · List all email addresses for a user #
Ask an LLM
“What email addresses are on a user's account?”
“Can I see all of one user's emails?”
Tell an agent
List the email addresses for user {username}.
Show every email on {username}'s account.
DELETE /admin/users/{username}/emails Remove email addresses from a user · Delete email addresses from a user's account #
Ask an LLM
“How do I remove a user's email addresses?”
“Can I delete several emails from a user account at once?”
Tell an agent destructive · confirm first
Delete emails {emails} from user {username}.
Remove all email addresses on {username}.
POST /admin/users/{username}/keys Add an SSH public key to a user · Add an SSH public key to user's account #
Ask an LLM
“How do I add an SSH key to a user's account?”
“Can I make a new SSH key read-only?”
Tell an agent
Add SSH key {key} titled {title} to user {username}.
Add read-only key {key} named {title} to {username}.
DELETE /admin/users/{username}/keys/{id} Remove an SSH public key from a user · Remove a public key from user's account #
Ask an LLM
“How do I remove an SSH key from a user?”
“Can I delete a single key from a user's account by its ID?”
Tell an agent destructive · confirm first
Remove SSH key {id} from user {username}.
Delete key {id} on {username}'s account.
POST /admin/users/{username}/orgs Create an organization · Create an organization #
Ask an LLM
“How do I create an organization on behalf of a user?”
“Can I set an organization's visibility to private?”
Tell an agent
Create organization {username} owned by {owner}.
Create {visibility} organization {username} for {owner}.
GET /admin/users/{username}/quota Get a user's quota info · Get the user's quota info #
Ask an LLM
“How much storage quota does a user have?”
“What are the quota limits for a user account?”
Tell an agent
Show the quota info for user {username}.
Get storage limits for {username}.
POST /admin/users/{username}/quota/groups Set a user's quota groups · Set the user's quota groups to a given list #
Ask an LLM
“How do I change which quota groups a user belongs to?”
“Can I replace a user's quota groups with a new list?”
Tell an agent
Set quota groups {groups} for user {username}.
Replace {username}'s quota groups with {groups}.
POST /admin/users/{username}/rename Rename a user account · Rename a user #
Ask an LLM
“How do I rename a user's account?”
“Can I change a user's username to one that's already taken?”
Tell an agent
Rename user {username} to {new_username}.
Change {username}'s account name to {new_username}.
POST /admin/users/{username}/repos Create a repository on behalf of a user · Create a repository on behalf of a user #
Ask an LLM
“How do I create a new repository for a user?”
“Can I initialize a new repo with a README and a default branch?”
Tell an agent
Create repository {name} for user {username}.
Create private repo {name} for {username} with default branch {default_branch}.
GET /admin/users/{username}/tokens List a user's access tokens · List the specified user's access tokens #
Ask an LLM
“Which access tokens does a user have?”
“Can I page through a user's personal access tokens?”
Tell an agent
List access tokens for user {username}.
Show {limit} tokens for {username}, page {page}.
POST /admin/users/{username}/tokens Create an access token for a user · Create an access token for the specified user #
Ask an LLM
“How do I generate a new personal access token for a user?”
“Can I restrict a user's token to certain repositories?”
Tell an agent
Create access token {name} for user {username}.
Create token {name} for {username} scoped to repositories {repositories}.
DELETE /admin/users/{username}/tokens/{token} Delete a user's access token · Delete an access token for the specified user #
Ask an LLM
“How do I revoke a user's personal access token?”
“Can I delete a token by its name?”
Tell an agent destructive · confirm first
Delete access token {token} from user {username}.
Revoke token {token} on {username}'s account.

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/codeberg:codeberg-admin-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

codeberg-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-785-465b60ef+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://artifacts.apis.io/codeberg/openapi/codeberg-admin-api-openapi.yml