Codeberg Activitypub API

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

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 11

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 /activitypub/actor Get the instance actor · Returns the instance's Actor #
Ask an LLM
“What does the instance actor look like for Forgejo ActivityPub?”
“Where is the instance actor's inbox?”
Tell an agent
Show the instance actor.
Get the instance actor's inbox URL.
POST /activitypub/actor/inbox Send an ActivityPub object to the instance inbox · Send to the inbox #
Ask an LLM
“How do I send an ActivityPub object to the instance inbox?”
“Can I post to the instance actor's inbox?”
Tell an agent
Send an ActivityPub object to the instance inbox.
Post an object to the instance actor's inbox.
POST /activitypub/actor/outbox View the instance outbox · Display the outbox (always empty) #
Ask an LLM
“Is the instance outbox empty?”
“What does the instance actor's outbox contain?”
Tell an agent
Show the instance outbox.
List the instance actor's outbox.
GET /activitypub/repository-id/{repository-id} Get a repository's actor · Returns the Repository actor for a repo #
Ask an LLM
“What is the ActivityPub actor for a repository?”
“Where is a repository's inbox?”
Tell an agent
Show the actor for repository {repository-id}.
Get the inbox of repository {repository-id}.
POST /activitypub/repository-id/{repository-id}/inbox Send an ActivityPub object to a repository inbox · Send to the inbox #
Ask an LLM
“How do I send an ActivityPub object to a repository's inbox?”
“Can I post to a repository actor's inbox?”
Tell an agent
Send an ActivityPub object to the inbox of repository {repository-id}.
Post to repository {repository-id}'s inbox.
POST /activitypub/repository-id/{repository-id}/outbox View a repository's outbox · Display the outbox #
Ask an LLM
“Is a repository's outbox empty?”
“What does a repository actor's outbox contain?”
Tell an agent
Show the outbox of repository {repository-id}.
List the recorded activities of repository {repository-id}.
GET /activitypub/user-id/{user-id} Get a user's actor · Returns the Person actor for a user #
Ask an LLM
“What is the ActivityPub actor for a user?”
“Where is a user's inbox?”
Tell an agent
Show the actor for user {user-id}.
Get the inbox of user {user-id}.
GET /activitypub/user-id/{user-id}/activities/{activity-id} Get a user's activity object · Get a specific activity object of the user #
Ask an LLM
“How do I fetch a specific activity object of a user?”
“Can I read one note from a user's activity stream?”
Tell an agent
Get activity object {activity-id} of user {user-id}.
Fetch the note {activity-id} from user {user-id}'s activity object.
GET /activitypub/user-id/{user-id}/activities/{activity-id}/activity Get a user's activity · Get a specific activity of the user #
Ask an LLM
“Can I fetch a single activity from a user's ActivityPub feed?”
“What does an activity's own activity object contain?”
Tell an agent
Show me activity {activity_id} of user {user_id}.
Get the activity object for feed activity {activity_id} of {user_id}.
POST /activitypub/user-id/{user-id}/inbox Send an ActivityPub object to a user inbox · Send to the inbox #
Ask an LLM
“How do I send an ActivityPub object to a user's inbox?”
“Can I post to a user actor's inbox?”
Tell an agent
Send an ActivityPub object to the inbox of user {user-id}.
Post to user {user-id}'s inbox.
GET /activitypub/user-id/{user-id}/outbox List a user's recorded activity · List the user's recorded activity #
Ask an LLM
“What activity has a user recorded?”
“Where is a user's outbox?”
Tell an agent
Show the recorded activity of user {user-id}.
List the outbox of user {user-id}.

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-activitypub-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-activitypub-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: This documentation describes the Forgejo API.
  title: Forgejo Activitypub 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:
- name: activitypub
paths:
  /activitypub/actor:
    get:
      tags:
      - activitypub
      summary: Returns the instance's Actor
      operationId: activitypubInstanceActor
      responses:
        '200':
          $ref: '#/components/responses/ActivityPub'
  /activitypub/actor/inbox:
    post:
      tags:
      - activitypub
      summary: Send to the inbox
      operationId: activitypubInstanceActorInbox
      responses:
        '204':
          $ref: '#/components/responses/empty'
  /activitypub/actor/outbox:
    post:
      tags:
      - activitypub
      summary: Display the outbox (always empty)
      operationId: activitypubInstanceActorOutbox
      responses:
        '200':
          $ref: '#/components/responses/Outbox'
  /activitypub/repository-id/{repository-id}:
    get:
      tags:
      - activitypub
      summary: Returns the Repository actor for a repo
      operationId: activitypubRepository
      parameters:
      - description: repository ID of the repo
        name: repository-id
        in: path
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '200':
          $ref: '#/components/responses/ActivityPub'
  /activitypub/repository-id/{repository-id}/inbox:
    post:
      tags:
      - activitypub
      summary: Send to the inbox
      operationId: activitypubRepositoryInbox
      parameters:
      - description: repository ID of the repo
        name: repository-id
        in: path
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '204':
          $ref: '#/components/responses/empty'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForgeLike'
          text/plain:
            schema:
              $ref: '#/components/schemas/ForgeLike'
  /activitypub/repository-id/{repository-id}/outbox:
    post:
      tags:
      - activitypub
      summary: Display the outbox
      operationId: activitypubRepositoryOutbox
      parameters:
      - description: repository ID of the repo
        name: repository-id
        in: path
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '200':
          $ref: '#/components/responses/Outbox'
  /activitypub/user-id/{user-id}:
    get:
      tags:
      - activitypub
      summary: Returns the Person actor for a user
      operationId: activitypubPerson
      parameters:
      - description: user ID of the user
        name: user-id
        in: path
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '200':
          $ref: '#/components/responses/ActivityPub'
  /activitypub/user-id/{user-id}/activities/{activity-id}:
    get:
      tags:
      - activitypub
      summary: Get a specific activity object of the user
      operationId: activitypubPersonActivityNote
      parameters:
      - description: user ID of the user
        name: user-id
        in: path
        required: true
        schema:
          type: integer
      - description: activity ID of the sought activity
        name: activity-id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          $ref: '#/components/responses/ActivityPub'
  /activitypub/user-id/{user-id}/activities/{activity-id}/activity:
    get:
      tags:
      - activitypub
      summary: Get a specific activity of the user
      operationId: activitypubPersonActivity
      parameters:
      - description: user ID of the user
        name: user-id
        in: path
        required: true
        schema:
          type: integer
      - description: activity ID of the sought activity
        name: activity-id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          $ref: '#/components/responses/ActivityPub'
  /activitypub/user-id/{user-id}/inbox:
    post:
      tags:
      - activitypub
      summary: Send to the inbox
      operationId: activitypubPersonInbox
      parameters:
      - description: user ID of the user
        name: user-id
        in: path
        required: true
        schema:
          type: integer
          format: int64
      responses:
        '202':
          $ref: '#/components/responses/empty'
  /activitypub/user-id/{user-id}/outbox:
    get:
      tags:
      - activitypub
      summary: List the user's recorded activity
      operationId: activitypubPersonFeed
      parameters:
      - description: user ID of the user
        name: user-id
        in: path
        required: true
        schema:
          type: integer
      responses:
        '200':
          $ref: '#/components/responses/Outbox'
        '403':
          $ref: '#/components/responses/forbidden'
components:
  responses:
    forbidden:
      description: APIForbiddenError is a forbidden error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIForbiddenError'
        text/html:
          schema:
            $ref: '#/components/schemas/APIForbiddenError'
    ActivityPub:
      description: ActivityPub
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ActivityPub'
        text/html:
          schema:
            $ref: '#/components/schemas/ActivityPub'
    empty:
      description: APIEmpty is an empty response
    Outbox:
      description: Outbox
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForgeOutbox'
        text/html:
          schema:
            $ref: '#/components/schemas/ForgeOutbox'
  schemas:
    APIForbiddenError:
      type: object
      properties:
        message:
          type: string
          x-go-name: Message
        url:
          type: string
          x-go-name: URL
      x-go-package: forgejo.org/services/context
    ActivityPub:
      description: ActivityPub type
      type: object
      properties:
        '@context':
          type: string
          x-go-name: Context
      x-go-package: forgejo.org/modules/structs
    ForgeOutbox:
      description: ActivityStream OrderedCollection of activities
      type: object
      x-go-package: forgejo.org/modules/forgefed
    ForgeLike:
      description: ForgeLike activity data type
      type: object
      x-go-package: forgejo.org/modules/forgefed
  securitySchemes:
    AuthorizationHeaderToken:
      description: API tokens must be prepended with "token" followed by a space.
      type: apiKey
      name: Authorization
      in: header
    BasicAuth:
      type: http
      scheme: basic
    SudoHeader:
      description: Sudo API request as the user provided as the key. Admin privileges are required.
      type: apiKey
      name: Sudo
      in: header
    SudoParam:
      description: Sudo API request as the user provided as the key. Admin privileges are required.
      type: apiKey
      name: sudo
      in: query
    TOTPHeader:
      description: Must be used in combination with BasicAuth if two-factor authentication is enabled.
      type: apiKey
      name: X-FORGEJO-OTP
      in: header
x-provenance:
  method: harvested
  publisher: Codeberg
  source: https://codeberg.org/swagger.v1.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)