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 activitypub API

The activitypub API from Forgejo — 11 operation(s) for activitypub.

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

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

This API exposes 11 operations across 11 paths, and defines 4 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.

11 operations 11 paths 4 schemas 6 GET5 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 activitypub 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 11

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

activitypub 11
GET
/activitypub/actor
Returns the instance's Actor
activitypubInstanceActor → 200
POST
/activitypub/actor/inbox
Send to the inbox
activitypubInstanceActorInbox → 204
POST
/activitypub/actor/outbox
Display the outbox (always empty)
activitypubInstanceActorOutbox → 200
GET
/activitypub/repository-id/{repository-id}
Returns the Repository actor for a repo
activitypubRepository 1 param → 200
POST
/activitypub/repository-id/{repository-id}/inbox
Send to the inbox
activitypubRepositoryInbox 2 params → 204
POST
/activitypub/repository-id/{repository-id}/outbox
Display the outbox
activitypubRepositoryOutbox 1 param → 200
GET
/activitypub/user-id/{user-id}
Returns the Person actor for a user
activitypubPerson 1 param → 200
GET
/activitypub/user-id/{user-id}/activities/{activity-id}
Get a specific activity object of the user
activitypubPersonActivityNote 2 params → 200
GET
/activitypub/user-id/{user-id}/activities/{activity-id}/activity
Get a specific activity of the user
activitypubPersonActivity 2 params → 200
POST
/activitypub/user-id/{user-id}/inbox
Send to the inbox
activitypubPersonInbox 1 param → 202
GET
/activitypub/user-id/{user-id}/outbox
List the user's recorded activity
activitypubPersonFeed 1 param → 200403

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are APIForbiddenError (2 properties), ActivityPub (1 property). Each schema is shown below with its type and property counts.

APIForbiddenError
object
2 properties
ForgeLike
object
ForgeLike activity data type
ForgeOutbox
object
ActivityStream OrderedCollection of activities
ActivityPub
object
ActivityPub type
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

forgejo-activitypub-api-openapi.yml Raw ↑

Other APIs Forgejo publishes across the network.

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

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