跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support

Gitea Enterprise API 26.4.1

This documentation describes the Gitea API.

Information

  • License: MIT
  • OpenAPI version: 2.0

25 of these endpoints only exist in Gitea Enterprise and are collected under the enterprise tag. Every other endpoint is the one the community edition of the same release serves.

Download the specification:Swagger 2.0

Operations

enterprise

Endpoints that only exist in Gitea Enterprise. They are also listed under the tag of the resource they belong to.

25 operations

admin

Instance administration: users, organizations, runners, cron jobs and system hooks.

40 operations

issue

Issues and pull request conversations: comments, labels, milestones, reactions and timelines.

69 operations

miscellaneous

Markdown rendering, signing keys, server version and instance metadata.

12 operations

notification

Notification threads and subscriptions of the authenticated user.

7 operations

organization

Organizations and their teams, members, repositories and settings.

77 operations

package

Package registries: listing, inspecting and deleting published packages.

9 operations

repository

Repositories and their contents, branches, tags, releases, pull requests, webhooks and actions.

199 operations

security

Dependency alerts of a repository: listing, dismissing and reopening them.

4 operations

settings

Instance settings exposed to clients: api, attachment, repository and ui limits.

4 operations

user

The authenticated user and other users: keys, tokens, follows, stars and applications.

76 operations

This authentication option is deprecated for removal in Gitea 1.23. Please use AuthorizationHeaderToken instead.

Security scheme type: apiKey

Query parameter name: access_token

API tokens must be prepended with “token” followed by a space.

Security scheme type: apiKey

Header parameter name: Authorization

Security scheme type: basic

Sudo API request as the user provided as the key. Admin privileges are required.

Security scheme type: apiKey

Header parameter name: Sudo

Sudo API request as the user provided as the key. Admin privileges are required.

Security scheme type: apiKey

Query parameter name: sudo

Must be used in combination with BasicAuth if two-factor authentication is enabled.

Security scheme type: apiKey

Header parameter name: X-GITEA-OTP

This authentication option is deprecated for removal in Gitea 1.23. Please use AuthorizationHeaderToken instead.

Security scheme type: apiKey

Query parameter name: token