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

Forgejo package API

The package API from Forgejo — 5 operation(s) for package.

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

Tagged areas include Package. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 6 operations across 5 paths, and defines 12 schemas. It is described by OpenAPI 2.0, at version 16.0.0-dev-465-4b83448b7d+gitea-1.22.0.

Requests are made against the base URL https://code.forgejo.org/api/v1.

6 operations 5 paths 12 schemas 1 DELETE3 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 2.0
API Version
16.0.0-dev-465-4b83448b7d+gitea-1.22.0
Base URL
https://code.forgejo.org/api/v1
Authentication
API Key, basic, API Key, API Key, API Key
Resource Areas
1

Authentication & Security 5

Forgejo package API declares 5 security schemes for authenticating requests. 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-FORGEJO-OTP (TOTPHeader). By default, every request must be authenticated.

  • 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.

Paths & Operations 6

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

package 6
GET
/packages/{owner}
Gets all packages of an owner
listPackages 5 params → 200404
POST
/packages/{owner}/{type}/{name}/-/link/{repo_name}
Link a package to a repository
linkPackage 4 params → 201404
POST
/packages/{owner}/{type}/{name}/-/unlink
Unlink a package from a repository
unlinkPackage 3 params → 201404
GET
/packages/{owner}/{type}/{name}/{version}
Gets a package
getPackage 4 params → 200404
DELETE
/packages/{owner}/{type}/{name}/{version}
Delete a package
deletePackage 4 params → 204404
GET
/packages/{owner}/{type}/{name}/{version}/files
Gets all files of a package
listPackageFiles 4 params → 200404

Schemas 12

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

Team
object
Team represents a team in an organization
9 properties
Organization
object
Organization represents an organization
12 properties
ExternalWiki
object
ExternalWiki represents setting for external wiki
1 property
Package
object
Package represents a package
9 properties
User
object
User represents a user
23 properties
PackageFile
object
PackageFile represents a package file
7 properties
Permission
object
Permission represents a set of permissions
3 properties
APINotFound
object
3 properties
ExternalTracker
object
ExternalTracker represents settings for external tracker
4 properties
Repository
object
Repository represents a repository
66 properties
InternalTracker
object
InternalTracker represents settings for internal tracker
3 properties
RepoTransfer
object
RepoTransfer represents a pending repo transfer
3 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

forgejo-package-api-openapi.yml Raw ↑

Other APIs Forgejo publishes across the network.

Forgejo activitypub API
Forgejo admin API
Forgejo issue API
Forgejo miscellaneous API
Forgejo notification API
Forgejo organization API
Forgejo repository API
Forgejo settings API
Forgejo user API
Where this information came from

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