Codeberg Organization API

The organization API from Codeberg — 42 operation(s) for organization.

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 69

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

POST /org/{org}/repos Create a repository in an organization (deprecated) · Create a repository in an organization #
Ask an LLM
“Is there an older deprecated way to create a repo in an organization?”
“Can I still create an organization repository through the deprecated endpoint?”
Tell an agent
Create a repository named {name} in organization {org}.
Create deprecated repo {name} in {org} with description {description}.
GET /orgs List all organizations · List all organizations #
Ask an LLM
“Which organizations exist on Forgejo?”
“Can I page through every organization?”
Tell an agent
List all organizations.
Show page {page} of organizations, {limit} per page.
POST /orgs Create an organization · Create an organization #
Ask an LLM
“How do I create a new organization?”
“Can I set a visibility and website when creating an organization?”
Tell an agent
Create an organization {username}.
Create organization {username} with website {website} and visibility {visibility}.
GET /orgs/{org} Get an organization · Get an organization #
Ask an LLM
“What are the details of a particular organization?”
“Can I look up one organization by its name?”
Tell an agent
Get organization {org}.
Show the details of organization {org}.
DELETE /orgs/{org} Delete an organization · Delete an organization #
Ask an LLM
“How do I delete an organization?”
“Can I remove an organization account entirely?”
Tell an agent destructive · confirm first
Delete organization {org}.
Remove the organization {org} from Forgejo.
PATCH /orgs/{org} Edit an organization · Edit an organization #
Ask an LLM
“Can I change an organization's website or visibility?”
“How do I rename an organization's description?”
Tell an agent
Set the website of organization {org} to {website}.
Change organization {org} to visibility {visibility}.
GET /orgs/{org}/actions/runners List an organization's actions runners · Get the organization's runners #
Ask an LLM
“Which actions runners does my organization have?”
“Can I list only the runners I own versus all visible ones?”
Tell an agent
List the actions runners for organization {org}.
Show visible actions runners for {org}, {limit} per page.
POST /orgs/{org}/actions/runners Register an organization-level runner · Register a new organization-level runner #
Ask an LLM
“How do I register a new runner for my organization?”
“Can a runner be ephemeral when I register it?”
Tell an agent
Register a runner named {name} in organization {org}.
Register ephemeral runner {name} for {org}.
GET /orgs/{org}/actions/runners/jobs Search an organization's action jobs · Search for organization's action jobs according filter conditions #
Ask an LLM
“Can I find my organization's action jobs by label?”
“Which workflow runs in my organization match a label?”
Tell an agent
Search organization {org}'s action jobs for label {labels}.
Find action runs in {org} tagged {labels}.
GET /orgs/{org}/actions/runners/registration-token Get an organization's runner registration token · Get the organization's runner registration token #
Ask an LLM
“How do I get a runner registration token for my organization?”
“Is the runner registration token endpoint deprecated?”
Tell an agent
Get the runner registration token for organization {org}.
Show the deprecated runner registration token for {org}.
GET /orgs/{org}/actions/runners/{runner_id} Get an organization runner · Get a particular runner that belongs to the organization #
Ask an LLM
“What are the details of one runner in my organization?”
“Can I look up a single organization runner by ID?”
Tell an agent
Get runner {runner_id} in organization {org}.
Show organization {org}'s runner {runner_id}.
DELETE /orgs/{org}/actions/runners/{runner_id} Delete an organization runner · Delete a particular runner that belongs to the organization #
Ask an LLM
“How do I remove a runner from my organization?”
“Can I delete a single organization runner by ID?”
Tell an agent destructive · confirm first
Delete runner {runner_id} from organization {org}.
Remove organization {org}'s runner {runner_id}.
GET /orgs/{org}/actions/secrets List an organization's actions secrets · List actions secrets of an organization #
Ask an LLM
“Which secrets are stored in my organization's actions?”
“Can I page through an organization's action secrets?”
Tell an agent
List the actions secrets of organization {org}.
Show page {page} of {org}'s action secrets, {limit} per page.
PUT /orgs/{org}/actions/secrets/{secretname} Set or update an organization actions secret · Create or Update a secret value in an organization #
Ask an LLM
“How do I store a secret for my organization's actions?”
“Can I overwrite an existing organization secret?”
Tell an agent
Set organization {org}'s action secret {secretname} to {data}.
Update the {secretname} secret in {org} with {data}.
DELETE /orgs/{org}/actions/secrets/{secretname} Delete an organization actions secret · Delete a secret in an organization #
Ask an LLM
“How do I remove a secret from my organization?”
“Can I delete an organization action secret by name?”
Tell an agent destructive · confirm first
Delete secret {secretname} from organization {org}.
Remove the {secretname} secret in {org}.
GET /orgs/{org}/actions/variables List an organization's actions variables · List variables of an organization #
Ask an LLM
“Which variables are defined for my organization's actions?”
“Can I page through an organization's action variables?”
Tell an agent
List the actions variables of organization {org}.
Show page {page} of {org}'s action variables, {limit} per page.
GET /orgs/{org}/actions/variables/{variablename} Get an organization actions variable · Get organization's variable by name #
Ask an LLM
“What value does a particular organization variable hold?”
“Can I read one action variable from my organization?”
Tell an agent
Get variable {variablename} in organization {org}.
Show the value of {variablename} in {org}.
PUT /orgs/{org}/actions/variables/{variablename} Update an organization actions variable · Update variable in organization #
Ask an LLM
“How do I change the value of an existing organization variable?”
“Can I rename an organization variable?”
Tell an agent
Set variable {variablename} in {org} to {value}.
Rename organization {org}'s variable {variablename} to {name}.
POST /orgs/{org}/actions/variables/{variablename} Create an organization actions variable · Create a new variable in organization #
Ask an LLM
“How do I add a new variable to my organization's actions?”
“Can I create an organization variable with a value?”
Tell an agent
Create variable {variablename} in organization {org} with value {value}.
Add a new action variable {variablename} to {org}.
DELETE /orgs/{org}/actions/variables/{variablename} Delete an organization actions variable · Delete organization's variable by name #
Ask an LLM
“How do I remove a variable from my organization?”
“Can I delete an organization action variable by name?”
Tell an agent destructive · confirm first
Delete variable {variablename} from organization {org}.
Remove the {variablename} variable in {org}.
GET /orgs/{org}/activities/feeds List an organization's activity feeds · List an organization's activity feeds #
Ask an LLM
“What has been happening in my organization's activity feed?”
“Can I see an organization's activity feed for a specific date?”
Tell an agent
List the activity feed of {org}.
Show {org}'s activity feed for {date}.
POST /orgs/{org}/avatar Upload an organization avatar · Update an organization's avatar #
Ask an LLM
“How do I upload a new profile picture for my organization?”
“Can I replace an organization's avatar with a base64-encoded image?”
Tell an agent
Set {org}'s avatar to {image}.
Upload a new profile picture for organization {org}.
DELETE /orgs/{org}/avatar Remove an organization's avatar · Delete an organization's avatar. It will be replaced by a default one #
Ask an LLM
“How do I make an organization's avatar go back to the default?”
“What happens to the avatar when I remove it from an organization?”
Tell an agent destructive · confirm first
Remove the avatar from {org}.
Reset organization {org} to its default avatar.
PUT /orgs/{org}/block/{username} Block a user from an organization · Blocks a user from the organization #
Ask an LLM
“How do I block a user from my organization?”
“Can I stop a specific person from interacting with my organization?”
Tell an agent
Block {username} from {org}.
Prevent {username} from joining or using organization {org}.
GET /orgs/{org}/hooks List an organization's webhooks · List an organization's webhooks #
Ask an LLM
“Which webhooks are configured for my organization?”
“What URL and events does each of my organization's webhooks cover?”
Tell an agent
List the webhooks of {org}.
Show every webhook configured on organization {org}.
POST /orgs/{org}/hooks Create a webhook for an organization · Create a hook #
Ask an LLM
“How do I set up a webhook that notifies me when an organization's events happen?”
“Can I restrict which branches a new organization webhook fires on?”
Tell an agent
Create a {type} webhook on {org} with config {config}.
Add a {type} webhook to organization {org} that fires on {events}.
GET /orgs/{org}/hooks/{id} Get one organization webhook · Get a hook #
Ask an LLM
“What URL and events does a specific organization webhook cover?”
“Can I look up a single webhook by its ID for an organization?”
Tell an agent
Show webhook {id} of {org}.
Get the configuration of organization {org}'s webhook {id}.
DELETE /orgs/{org}/hooks/{id} Delete an organization webhook · Delete a hook #
Ask an LLM
“How do I remove a webhook from my organization?”
“Can I stop an organization webhook from sending events?”
Tell an agent destructive · confirm first
Delete webhook {id} from {org}.
Remove organization {org}'s webhook {id}.
PATCH /orgs/{org}/hooks/{id} Update an organization webhook · Update a hook #
Ask an LLM
“How do I change the URL or events of an existing organization webhook?”
“Can I pause a webhook on an organization without deleting it?”
Tell an agent
Update webhook {id} on {org} to fire on {events}.
Point organization {org}'s webhook {id} at a new URL.
GET /orgs/{org}/labels List an organization's labels · List an organization's labels #
Ask an LLM
“What labels are defined for my organization?”
“Can I sort an organization's labels by most or least issues?”
Tell an agent
List the labels of {org}.
Show {org}'s labels sorted by {sort}.
POST /orgs/{org}/labels Create a label for an organization · Create a label for an organization #
Ask an LLM
“How do I create a new label for my organization?”
“Can I make an organization label exclusive so it can't be used on issues?”
Tell an agent
Create label {name} in {org} with color {color}.
Add an exclusive {exclusive} label {name} to organization {org} in {color}.
GET /orgs/{org}/labels/{id} Get one organization label · Get a single label #
Ask an LLM
“What can I see about a single label in my organization?”
“Can I fetch a label by its ID?”
Tell an agent
Get label {id} in organization {org}.
Show me the {id}th label of {org}.
DELETE /orgs/{org}/labels/{id} Delete an organization label · Delete a label #
Ask an LLM
“How do I remove a label from my organization?”
“Can I delete an organization label I no longer use?”
Tell an agent destructive · confirm first
Delete label {id} from {org}.
Remove organization {org}'s label {id}.
PATCH /orgs/{org}/labels/{id} Update an organization label · Update a label #
Ask an LLM
“How do I change the color of an existing organization label?”
“Can I archive an organization label without deleting it?”
Tell an agent
Change label {id} in {org} to color {color}.
Set organization {org}'s label {id} to archived {is_archived}.
GET /orgs/{org}/list_blocked List blocked users in an organization · List the organization's blocked users #
Ask an LLM
“Who has been blocked from my organization?”
“Can I see the list of users blocked by an organization?”
Tell an agent
List the blocked users of {org}.
Show everyone {org} has blocked.
GET /orgs/{org}/members List an organization's members · List an organization's members #
Ask an LLM
“Who are the members of my organization?”
“Can I page through all the members of an organization?”
Tell an agent
List the members of {org}.
Show page {page} of {org}'s members, {limit} per page.
GET /orgs/{org}/members/{username} Check if a user is a member of an organization · Check if a user is a member of an organization #
Ask an LLM
“Is a particular user a member of my organization?”
“How do I confirm someone belongs to an organization?”
Tell an agent
Check whether {username} is a member of {org}.
Confirm {username} belongs to organization {org}.
DELETE /orgs/{org}/members/{username} Remove a member from an organization · Remove a member from an organization #
Ask an LLM
“How do I remove someone from my organization?”
“Can I take a member off an organization without deleting their account?”
Tell an agent destructive · confirm first
Remove {username} from {org}.
Kick {username} off organization {org}.
GET /orgs/{org}/public_members List an organization's public members · List an organization's public members #
Ask an LLM
“Which members of my organization are public?”
“Can I see the public-facing members of an organization?”
Tell an agent
List the public members of {org}.
Show who is publicly listed as a member of {org}.
GET /orgs/{org}/public_members/{username} Check if a user is a public org member · Check if a user is a public member of an organization #
Ask an LLM
“Is a given user visibly listed on my organization's public roster?”
“Can I test whether a username is shown publicly as part of an org?”
Tell an agent
Check whether {username} is publicly listed in {org}.
Tell me if {username} shows up on the public roster of {org}.
PUT /orgs/{org}/public_members/{username} Make a member's org membership public · Publicize a user's membership #
Ask an LLM
“How do I make a member's organization membership public?”
“Can I show a user's membership in my organization on their profile?”
Tell an agent
Make {username} a public member of {org}.
Publicize {username}'s membership in {org}.
DELETE /orgs/{org}/public_members/{username} Hide a member's org membership from public view · Conceal a user's membership #
Ask an LLM
“How do I hide a member's organization membership from public view?”
“Can I keep a user's membership in my organization private?”
Tell an agent destructive · confirm first
Conceal {username}'s membership in {org}.
Remove {username} from the public member list of {org}.
GET /orgs/{org}/quota Get an organization's storage quota · Get quota information for an organization #
Ask an LLM
“How much storage quota does my organization have?”
“What is the current quota usage for an organization?”
Tell an agent
Show the quota for {org}.
Get storage quota information for organization {org}.
GET /orgs/{org}/quota/artifacts List artifacts affecting an organization's quota · List the artifacts affecting the organization's quota #
Ask an LLM
“Which artifacts are consuming my organization's storage quota?”
“Can I see the artifact uploads that count against an org's quota?”
Tell an agent
List artifacts affecting {org}'s quota.
Show quota-impacting artifacts for organization {org}.
GET /orgs/{org}/quota/attachments List attachments affecting org quota · List the attachments affecting the organization's quota #
Ask an LLM
“Which attachments are counted toward my organization's storage quota?”
“Can I page through the attachments that affect org quota?”
Tell an agent
List the attachments affecting {org}'s quota.
Show {limit} quota-impacting attachments for {org}, page {page}.
GET /orgs/{org}/quota/check Check if an organization is over quota for a subject · Check if the organization is over quota for a given subject #
Ask an LLM
“Is my organization over quota for a particular subject?”
“Can I check whether an organization has exceeded its quota for a given subject?”
Tell an agent
Check if {org} is over quota for {subject}.
Verify {org}'s quota usage for subject {subject}.
GET /orgs/{org}/quota/packages List packages affecting org quota · List the packages affecting the organization's quota #
Ask an LLM
“Which packages are counted toward my organization's package storage quota?”
“Can I see which package repos push up an org's quota?”
Tell an agent
List the packages affecting {org}'s quota.
Show {limit} quota-impacting packages for {org}, page {page}.
POST /orgs/{org}/rename Rename an organization · Rename an organization #
Ask an LLM
“How do I rename an organization?”
“Can I change an organization's name?”
Tell an agent
Rename organization {org} to {new_name}.
Change the name of {org} to {new_name}.
GET /orgs/{org}/repos List an organization's repositories · List an organization's repos #
Ask an LLM
“What repositories does my organization have?”
“Can I list all repos owned by an organization?”
Tell an agent
List the repositories of {org}.
Show every repo owned by organization {org}.
POST /orgs/{org}/repos Create a repository in an organization · Create a repository in an organization #
Ask an LLM
“How do I create a new repository under my organization?”
“Can I initialize a new organization repo with a README and license?”
Tell an agent
Create a repository named {name} in {org}.
Create repo {name} in {org} with license {license} and description {description}.
GET /orgs/{org}/teams List an organization's teams · List an organization's teams #
Ask an LLM
“Which teams exist in my organization?”
“Can I list every team within an organization?”
Tell an agent
List the teams of {org}.
Show all teams in organization {org}.
POST /orgs/{org}/teams Create a team in an organization · Create a team #
Ask an LLM
“How do I create a new team in my organization?”
“Can I set a team's permission level when creating it?”
Tell an agent
Create a team named {name} in {org}.
Create team {name} in {org} with permission {permission}.
GET /orgs/{org}/teams/search Search an organization's teams · Search for teams within an organization #
Ask an LLM
“How do I find a team in my organization by name?”
“Can I search teams within an organization by keyword?”
Tell an agent
Search {org}'s teams for {q}.
Find teams in {org} matching {q}, including descriptions.
PUT /orgs/{org}/unblock/{username} Unblock a user from an organization · Unblock a user from the organization #
Ask an LLM
“How do I unblock a user who was blocked from my organization?”
“Can I let a blocked user rejoin my organization?”
Tell an agent
Unblock {username} from {org}.
Remove the block on {username} in organization {org}.
GET /teams/{id} Get an organization team · Get a team #
Ask an LLM
“What are the details of a specific team in my organization?”
“Can I fetch one team by its ID?”
Tell an agent
Show team {id}.
Get the details of organization team {id}.
DELETE /teams/{id} Delete an organization team · Delete a team #
Ask an LLM
“How do I delete a team from my organization?”
“Can I remove a team that is no longer needed?”
Tell an agent destructive · confirm first
Delete team {id}.
Remove organization team {id}.
PATCH /teams/{id} Edit an organization team · Edit a team #
Ask an LLM
“How do I rename a team or change its description?”
“Can I change a team's permission level after creating it?”
Tell an agent
Rename team {id} to {name}.
Set team {id} permission to {permission}.
GET /teams/{id}/activities/feeds List a team's activity feeds · List a team's activity feeds #
Ask an LLM
“What activity has happened in a team recently?”
“Can I see a team's activity feed for a specific date?”
Tell an agent
Show the activity feed for team {id}.
List team {id}'s activity feed for {date}.
GET /teams/{id}/members List a team's members · List a team's members #
Ask an LLM
“Who are the members of a team?”
“Can I list every person on a team?”
Tell an agent
List the members of team {id}.
Show everyone on organization team {id}.
GET /teams/{id}/members/{username} Look up one member of a team · List a particular member of team #
Ask an LLM
“Is a specific user on a given team's roster?”
“Can I fetch a single team member's details by team ID and username?”
Tell an agent
Get team {id}'s member record for {username}.
Look up {username} among the members of team {id}.
PUT /teams/{id}/members/{username} Add a user to a team · Add a team member #
Ask an LLM
“How do I add a teammate to a team?”
“Can I put a user on a team by team ID and username?”
Tell an agent
Add {username} to team {id}.
Put {username} on team {id} as a member.
DELETE /teams/{id}/members/{username} Remove a user from a team · Remove a team member #
Ask an LLM
“How do I take a teammate off a team?”
“Can I remove a user from a team by team ID and username?”
Tell an agent destructive · confirm first
Remove {username} from team {id}.
Take {username} off team {id}.
GET /teams/{id}/repos List the repositories a team has access to · List a team's repos #
Ask an LLM
“Which repos does a team have access to?”
“Can I page through a team's repositories?”
Tell an agent
List the repositories team {id} has access to.
Show team {id}'s repos, {limit} per page.
GET /teams/{id}/repos/{org}/{repo} Check a team's access to one repo · List a particular repo of team #
Ask an LLM
“Does a team have access to a specific repository?”
“Can I check a single repo's permissions for a team?”
Tell an agent
Check whether team {id} has access to {org}/{repo}.
Show team {id}'s permission on {org}/{repo}.
PUT /teams/{id}/repos/{org}/{repo} Add a repo to a team · Add a repository to a team #
Ask an LLM
“How do I let a team access a specific repository?”
“Can I add one repository to a team without giving it any other repos?”
Tell an agent
Add {repo} to team {id} in {org}.
Give team {id} read access to {repo} in {org}.
DELETE /teams/{id}/repos/{org}/{repo} Remove a repo from a team · Remove a repository from a team #
Ask an LLM
“How do I stop a team from accessing a repository?”
“Do I delete the repo when I remove it from a team?”
Tell an agent destructive · confirm first
Remove {repo} from team {id} in {org} without deleting it.
Revoke team {id}'s access to {repo} in {org}.
GET /user/orgs List organizations a user belongs to · List the current user's organizations #
Ask an LLM
“Which organizations does the signed-in user belong to?”
“Can I list my own organizations?”
Tell an agent
List the organizations I belong to.
Show my organizations, {limit} per page.
GET /users/{username}/orgs List organizations a user belongs to · List a user's organizations #
Ask an LLM
“Which organizations does a given user belong to?”
“Can I list the organizations of another user?”
Tell an agent
List the organizations {username} belongs to.
Show {username}'s organizations, {limit} per page.
GET /users/{username}/orgs/{org}/permissions Check a user's permissions in an organization · Get user permissions in organization #
Ask an LLM
“What permissions does a user have in an organization?”
“Can I check someone's role in an organization?”
Tell an agent
Get {username}'s permissions in {org}.
Show what {username} can do in organization {org}.

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-organization-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-organization-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: This documentation describes the Forgejo API.
  title: Forgejo Organization 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:


# --- truncated at 32 KB (108 KB total) ---
# Full source: https://artifacts.apis.io/codeberg/openapi/codeberg-organization-api-openapi.yml