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

Gitea admin API

The admin API from Gitea — 22 operation(s) for admin.

Gitea admin API is one of 13 APIs that Gitea publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 32 JSON Schema definitions.

Tagged areas include Admin. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, authentication docs, code examples, and 32 JSON Schemas.

This API exposes 32 operations across 22 paths, and defines 33 schemas. It is described by OpenAPI 2.0, at version 1.27.0+dev-89-gf52b6f3315.

Requests are made against the base URL https://gitea.com/api/v1.

32 operations 22 paths 33 schemas 6 DELETE13 GET3 PATCH10 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 2.0
API Version
1.27.0+dev-89-gf52b6f3315
Base URL
https://gitea.com/api/v1
Authentication
API Key, API Key, basic, API Key, API Key, API Key, API Key
License
Resource Areas
1

Authentication & Security 7

Gitea admin API declares 7 security schemes for authenticating requests. An API key is passed in the query as access_token (AccessToken). An API key is passed in the header as Authorization (AuthorizationHeaderToken). It defines a basic scheme (BasicAuth). An API key is passed in the header as Sudo (SudoHeader). An API key is passed in the query as sudo (SudoParam). An API key is passed in the header as X-GITEA-OTP (TOTPHeader). An API key is passed in the query as token (Token). By default, every request must be authenticated.

  • AccessToken — This authentication option is deprecated for removal in Gitea 1.23. Please use AuthorizationHeaderToken instead.
  • AuthorizationHeaderToken — API tokens must be prepended with "token" followed by a space.
  • SudoHeader — Sudo API request as the user provided as the key. Admin privileges are required.
  • SudoParam — Sudo API request as the user provided as the key. Admin privileges are required.
  • TOTPHeader — Must be used in combination with BasicAuth if two-factor authentication is enabled.
  • Token — This authentication option is deprecated for removal in Gitea 1.23. Please use AuthorizationHeaderToken instead.

Paths & Operations 32

Across 22 paths, the API surfaces 32 operations — 6 DELETE, 13 GET, 3 PATCH, 10 POST. Each is listed below with its method, path, parameters, and response codes.

admin 32
GET
/admin/actions/jobs
Lists all jobs
listAdminWorkflowJobs 3 params → 200400404
GET
/admin/actions/runners
Get all runners
getAdminRunners 1 param → 200400404
POST
/admin/actions/runners/registration-token
Get a global actions runner registration token
adminCreateRunnerRegistrationToken → 200
GET
/admin/actions/runners/{runner_id}
Get a global runner
getAdminRunner 1 param → 200400404
DELETE
/admin/actions/runners/{runner_id}
Delete a global runner
deleteAdminRunner 1 param → 204400404
PATCH
/admin/actions/runners/{runner_id}
Update a global runner
updateAdminRunner 2 params → 200400404422
GET
/admin/actions/runs
Lists all runs
listAdminWorkflowRuns 7 params → 200400404
GET
/admin/cron
List cron tasks
adminCronList 2 params → 200403
POST
/admin/cron/{task}
Run cron task
adminCronRun 1 param → 204404
GET
/admin/emails
List all emails
adminGetAllEmails 2 params → 200403
GET
/admin/emails/search
Search all emails
adminSearchEmails 3 params → 200403
GET
/admin/hooks
List system's webhooks
adminListHooks 3 params → 200
POST
/admin/hooks
Create a hook
adminCreateHook 1 param → 201
GET
/admin/hooks/{id}
Get a hook
adminGetHook 1 param → 200
DELETE
/admin/hooks/{id}
Delete a hook
adminDeleteHook 1 param → 204
PATCH
/admin/hooks/{id}
Update a hook
adminEditHook 2 params → 200
GET
/admin/orgs
List all organizations
adminGetAllOrgs 2 params → 200403
GET
/admin/unadopted
List unadopted repositories
adminUnadoptedList 3 params → 200403
POST
/admin/unadopted/{owner}/{repo}
Adopt unadopted files as a repository
adminAdoptRepository 2 params → 204403404
DELETE
/admin/unadopted/{owner}/{repo}
Delete unadopted files
adminDeleteUnadoptedRepository 2 params → 204403
GET
/admin/users
Search users according filter conditions
adminSearchUsers 13 params → 200403422
POST
/admin/users
Create a user
adminCreateUser 1 param → 201400403422
DELETE
/admin/users/{username}
Delete a user
adminDeleteUser 2 params → 204403404422
PATCH
/admin/users/{username}
Edit an existing user
adminEditUser 2 params → 200400403422
GET
/admin/users/{username}/badges
List a user's badges
adminListUserBadges 1 param → 200404
POST
/admin/users/{username}/badges
Add a badge to a user
adminAddUserBadges 2 params → 204403
DELETE
/admin/users/{username}/badges
Remove a badge from a user
adminDeleteUserBadges 2 params → 204403422
POST
/admin/users/{username}/keys
Add a public key on behalf of a user
adminCreatePublicKey 2 params → 201403422
DELETE
/admin/users/{username}/keys/{id}
Delete a user's public key
adminDeleteUserPublicKey 2 params → 204403404
POST
/admin/users/{username}/orgs
Create an organization
adminCreateOrg 2 params → 201403422
POST
/admin/users/{username}/rename
Rename a user
adminRenameUser 2 params → 204403422
POST
/admin/users/{username}/repos
Create a repository on behalf of a user
adminCreateRepo 2 params → 201400403404409422

Schemas 33

The contract defines 33 schemas that model the data the API accepts and returns. The most detailed are Repository (67 properties), User (22 properties), ActionWorkflowRun (19 properties), EditUserOption (18 properties). Each schema is shown below with its type and property counts.

UserBadgeOption
object
UserBadgeOption options for link between users and badges
1 property
ActionRunnersResponse
object
ActionRunnersResponse returns Runners
2 properties
ActionRunner
object
ActionRunner represents a Runner
7 properties
CreateHookOption
object
CreateHookOption options when create a hook
7 properties 2 required
PublicKey
object
PublicKey publickey is a user key to push code to repository
10 properties
User
object
User represents a user
22 properties
RenameUserOption
object
RenameUserOption options when renaming a user
1 property 1 required
Email
object
Email an email address belonging to a user
5 properties
ActionWorkflowJobsResponse
object
ActionWorkflowJobsResponse returns ActionWorkflowJobs
2 properties
Cron
object
Cron represents a Cron task
5 properties
Hook
object
Hook a hook is a web hook when one repository changed
10 properties
ActionRunnerLabel
object
ActionRunnerLabel represents a Runner Label
3 properties
CreateOrgOption
object
CreateOrgOption options for creating an organization
8 properties 1 required
RepoTransfer
object
RepoTransfer represents a pending repo transfer
3 properties
CreateUserOption
object
CreateUserOption create user options
11 properties 2 required
ActionWorkflowStep
object
ActionWorkflowStep represents a step of a WorkflowJob
6 properties
ActionWorkflowJob
object
ActionWorkflowJob represents a WorkflowJob
18 properties
InternalTracker
object
InternalTracker represents settings for internal tracker
3 properties
Team
object
Team represents a team in an organization
9 properties
CreateRepoOption
object
CreateRepoOption options when creating repository
12 properties 1 required
Permission
object
Permission represents a set of permissions
3 properties
ActionWorkflowRunsResponse
object
ActionWorkflowRunsResponse returns ActionWorkflowRuns
2 properties
CreateHookOptionConfig
object
CreateHookOptionConfig has all config options in it required are "contenttype" and "url" Required
ActionWorkflowRun
object
ActionWorkflowRun represents a WorkflowRun
19 properties
ExternalWiki
object
ExternalWiki represents setting for external wiki
1 property
EditActionRunnerOption
object
1 property 1 required
EditHookOption
object
EditHookOption options when modify one hook
6 properties
Organization
object
Organization represents an organization
11 properties
ExternalTracker
object
ExternalTracker represents settings for external tracker
4 properties
CreateKeyOption
object
CreateKeyOption options when creating a key
3 properties 2 required
Repository
object
Repository represents a repository
67 properties
EditUserOption
object
EditUserOption edit user options
18 properties 2 required
Badge
object
Badge represents a user badge
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitea-admin-api-openapi.yml Raw ↑

Other APIs Gitea publishes across the network.

Gitea Actions API
Gitea Package Registry
Gitea Webhooks
Gitea Cloud Management API
Gitea issue API
Gitea miscellaneous API
Gitea notification API
Gitea organization API
Gitea package API
Gitea repository API
Gitea settings API
Gitea user API
Where this information came from

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