Codeberg User API

The user API from Codeberg — 54 operation(s) for user.

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 80

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 /user Get the signed-in user · Get the authenticated user #
Ask an LLM
“Who am I signed in as on Forgejo?”
“Can I fetch my own user profile?”
Tell an agent
Show my user profile.
Get the user I am authenticated as.
GET /user/actions/runners List my user-level action runners · Get the user's runners #
Ask an LLM
“Which action runners do I own?”
“Can I list only the runners I directly own?”
Tell an agent
List my user-level action runners.
Show my action runners, including visible ones: {visible}.
POST /user/actions/runners Register a user-level action runner · Register a new user-level runner #
Ask an LLM
“How do I register a runner for my own user account?”
“Can a user-level runner be ephemeral?”
Tell an agent
Register a runner named {name}.
Register user runner {name} described as {description}.
GET /user/actions/runners/jobs Search my action jobs · Search for user's action jobs according filter conditions #
Ask an LLM
“Which of my action jobs carry a given label?”
“Can I filter my action runs by label?”
Tell an agent
Search my action jobs for label {labels}.
Find the action runs tagged {labels}.
GET /user/actions/runners/registration-token Get a user runner registration token · Get the user's runner registration token #
Ask an LLM
“Where do I get a token to register a runner for my user account?”
“Is the runner registration token still supported?”
Tell an agent
Get my user runner registration token.
Fetch the token I need to register a runner for my user.
GET /user/actions/runners/{runner_id} Get one of my user runners · Get a particular runner that belongs to the user #
Ask an LLM
“What are the details of a runner I own?”
“Can I look up a single user-level runner by ID?”
Tell an agent
Show user runner {runner_id}.
Get the details of my runner {runner_id}.
DELETE /user/actions/runners/{runner_id} Delete a user-level runner · Delete a particular user-level runner #
Ask an LLM
“How do I remove a runner from my user account?”
“Can I delete a user runner I no longer need?”
Tell an agent destructive · confirm first
Delete user runner {runner_id}.
Remove my runner {runner_id} from the user account.
PUT /user/actions/secrets/{secretname} Set a user-level secret · Create or Update a secret value in a user scope #
Ask an LLM
“How do I store a secret value for my user account?”
“Can I overwrite an existing user secret?”
Tell an agent
Set user secret {secretname} to {data}.
Update my user secret {secretname} with {data}.
DELETE /user/actions/secrets/{secretname} Delete a user-level secret · Delete a secret in a user scope #
Ask an LLM
“How do I remove a secret from my user account?”
“Can I delete a user secret I created?”
Tell an agent destructive · confirm first
Delete user secret {secretname}.
Remove the secret {secretname} from my user account.
GET /user/actions/variables List my user-level variables · Get the user-level list of variables which is created by current doer #
Ask an LLM
“What user-level variables have I defined?”
“Can I page through my user variables?”
Tell an agent
List my user-level variables.
Show page {page} of my user variables, {limit} per page.
GET /user/actions/variables/{variablename} Get a user-level variable · Get a user-level variable which is created by current doer #
Ask an LLM
“What value does one of my user variables hold?”
“Can I read a single user variable by name?”
Tell an agent
Show user variable {variablename}.
Get the value of my user variable {variablename}.
PUT /user/actions/variables/{variablename} Update a user-level variable · Update a user-level variable which is created by current doer #
Ask an LLM
“How do I change the value of a user variable?”
“Can I rename a user variable?”
Tell an agent
Set user variable {variablename} to {value}.
Rename user variable {variablename} to {name} with value {value}.
POST /user/actions/variables/{variablename} Create a user-level variable · Create a user-level variable #
Ask an LLM
“How do I add a new variable to my user account?”
“Can I create a user variable with a value?”
Tell an agent
Create user variable {variablename} with value {value}.
Add a new user variable {variablename} set to {value}.
DELETE /user/actions/variables/{variablename} Delete a user-level variable · Delete a user-level variable which is created by current doer #
Ask an LLM
“How do I remove a variable from my user account?”
“Can I delete a user variable I no longer use?”
Tell an agent destructive · confirm first
Delete user variable {variablename}.
Remove the user variable {variablename} from my account.
POST /user/activitypub/follow Follow a remote ActivityPub account · Follow a remote activitypub account #
Ask an LLM
“How do I follow someone on a remote ActivityPub server?”
“Can I follow a remote user account through the API?”
Tell an agent
Follow the remote ActivityPub account {target}.
Follow {target} on the remote ActivityPub server.
GET /user/applications/oauth2 List my OAuth2 applications · List the authenticated user's oauth2 applications #
Ask an LLM
“Which OAuth2 applications have I registered?”
“Can I page through my user OAuth2 apps?”
Tell an agent
List my OAuth2 applications.
Show page {page} of my user OAuth2 apps, {limit} per page.
POST /user/applications/oauth2 Create an OAuth2 application · Creates a new OAuth2 application #
Ask an LLM
“How do I register a new OAuth2 application for my user?”
“Can I make a new OAuth2 app with redirect URIs?”
Tell an agent
Create an OAuth2 application named {name}.
Register a new user OAuth2 app {name} with redirect URIs {redirect_uris}.
GET /user/applications/oauth2/{id} Get an OAuth2 application · Get an OAuth2 application #
Ask an LLM
“What are the details of one of my OAuth2 applications?”
“Can I fetch a single user OAuth2 app by ID?”
Tell an agent
Show user OAuth2 application {id}.
Get the details of my OAuth2 app {id}.
DELETE /user/applications/oauth2/{id} Delete an OAuth2 application · Delete an OAuth2 application #
Ask an LLM
“How do I revoke an OAuth2 application I registered?”
“Can I delete a user OAuth2 app by its ID?”
Tell an agent destructive · confirm first
Delete user OAuth2 application {id}.
Revoke my OAuth2 app {id}.
PATCH /user/applications/oauth2/{id} Update an OAuth2 application · Update an OAuth2 application, this includes regenerating the client secret #
Ask an LLM
“How do I rename an OAuth2 application or change its redirect URIs?”
“Can I regenerate the client secret of a user OAuth2 app?”
Tell an agent
Rename user OAuth2 application {id} to {name}.
Update user OAuth2 app {id} with redirect URIs {redirect_uris}.
POST /user/avatar Upload a profile avatar · Update avatar of the current user #
Ask an LLM
“How do I upload a new profile picture?”
“Can I replace my avatar with a base64-encoded image?”
Tell an agent
Upload {image} as my profile avatar.
Set my profile picture to {image}.
DELETE /user/avatar Remove my profile avatar · Delete avatar of the current user. It will be replaced by a default one #
Ask an LLM
“How do I reset my profile picture to the default?”
“What happens to my avatar when I remove it?”
Tell an agent destructive · confirm first
Remove my profile avatar.
Reset my profile picture to the default.
PUT /user/block/{username} Block another user · Blocks a user from the doer #
Ask an LLM
“How do I block a user I don't want to follow?”
“Can I stop seeing someone's activity?”
Tell an agent
Block user {username}.
Stop following {username} by blocking them.
GET /user/emails List my email addresses · List all email addresses of the current user #
Ask an LLM
“Which email addresses are on my account?”
“What contact emails have I added?”
Tell an agent
List all email addresses on my account.
Show my registered email addresses.
POST /user/emails Add an email address to my account · Add an email addresses to the current user's account #
Ask an LLM
“How do I add another email to my account?”
“Can I verify a new email address?”
Tell an agent
Add {emails} to my account.
Verify the new email {emails} on my account.
DELETE /user/emails Remove an email address from my account · Delete email addresses from the current user's account #
Ask an LLM
“How do I remove an old email from my account?”
“Can I delete a verified email address?”
Tell an agent destructive · confirm first
Delete {emails} from my account.
Remove the old email {emails} from my account.
GET /user/followers List my followers · List the authenticated user's followers #
Ask an LLM
“Who is following me on Forgejo?”
“How do I see the people who follow my account?”
Tell an agent
List followers of the current user.
Show page {page} of my followers, {limit} per page.
GET /user/following List the users I follow · List the users that the authenticated user is following #
Ask an LLM
“Which users am I following?”
“What accounts do I follow?”
Tell an agent
List the users I am following.
Show my following list, {limit} at a time.
GET /user/following/{username} Check whether I follow a user · Check whether a user is followed by the authenticated user #
Ask an LLM
“Do I follow this user?”
“Is a given username on my following list?”
Tell an agent
Check whether I follow {username}.
Tell me if {username} is on my following list.
PUT /user/following/{username} Follow a user · Follow a user #
Ask an LLM
“How do I follow another user?”
“Can I start seeing someone's activity feed?”
Tell an agent
Follow {username}.
Start following {username} so I see their activity.
DELETE /user/following/{username} Unfollow a user · Unfollow a user #
Ask an LLM
“How do I stop following a user?”
“Can I unfollow someone without blocking them?”
Tell an agent destructive · confirm first
Unfollow {username}.
Stop following {username} but keep them blocked.
GET /user/gpg_key_token Get a token to verify a GPG key · Get a Token to verify #
Ask an LLM
“How do I get a token to verify a GPG key?”
“Where do I get the signature token for a GPG key?”
Tell an agent
Get a GPG key verification token.
Fetch the token I need to sign a GPG key.
POST /user/gpg_key_verify Verify a GPG key · Verify a GPG key #
Ask an LLM
“How do I prove ownership of a GPG key?”
“Can I verify a GPG key with a signature?”
Tell an agent
Verify GPG key {key_id} with signature {armored_signature}.
Prove I own key {key_id} by submitting signature {armored_signature}.
GET /user/gpg_keys List my GPG keys · List the authenticated user's GPG keys #
Ask an LLM
“Which GPG keys are on my account?”
“What public keys have I added?”
Tell an agent
List my GPG keys.
Show the first {limit} GPG keys on my account.
POST /user/gpg_keys Add a GPG public key · Add a GPG public key to current user's account #
Ask an LLM
“How do I add a GPG public key to my account?”
“Can I sign my commits with a new public key?”
Tell an agent
Add GPG key {armored_public_key} to my account.
Add public key {armored_public_key} and sign it with {armored_signature}.
GET /user/gpg_keys/{id} Get one of my GPG keys · Get a GPG key #
Ask an LLM
“What is the public key with a given ID?”
“How do I fetch a single GPG key?”
Tell an agent
Get GPG key {id}.
Show the public key with ID {id}.
DELETE /user/gpg_keys/{id} Remove a GPG public key · Remove a GPG public key from current user's account #
Ask an LLM
“How do I remove a GPG key from my account?”
“Can I delete a public key I added by mistake?”
Tell an agent destructive · confirm first
Remove GPG key {id}.
Delete the public key {id} from my account.
GET /user/hooks List my webhooks · List the authenticated user's webhooks #
Ask an LLM
“Which webhooks are set up on my account?”
“What notifications does my account receive?”
Tell an agent
List my webhooks.
Show the first {limit} webhooks on my account.
POST /user/hooks Create a webhook · Create a hook #
Ask an LLM
“How do I create a new webhook on my account?”
“Can I send notifications to a URL when events happen?”
Tell an agent
Create a {type} webhook to {config}.
Add a webhook that sends {events} to {config} of type {type}.
GET /user/hooks/{id} Get one of my webhooks · Get a hook #
Ask an LLM
“What URL and events does a specific webhook send to?”
“How do I view one webhook's settings?”
Tell an agent
Get webhook {id}.
Show the settings of webhook {id}.
DELETE /user/hooks/{id} Delete a user hook · Delete a hook #
Ask an LLM
“How do I remove a webhook hook I set up for my user account?”
“Can I delete a single user hook by its ID?”
Tell an agent destructive · confirm first
Delete user hook {id}.
Remove the webhook hook {id} from my account.
PATCH /user/hooks/{id} Update a user hook · Update a hook #
Ask an LLM
“How do I change the events a user hook listens to?”
“Can I deactivate a user hook without deleting it?”
Tell an agent
Update user hook {id} to listen to events {events}.
Set user hook {id} active to {active}.
GET /user/keys List my user's public SSH keys · List the authenticated user's public keys #
Ask an LLM
“Which SSH keys are registered on my user account?”
“Can I find a user key by its fingerprint?”
Tell an agent
List my user's public keys.
Find the user key with fingerprint {fingerprint}.
POST /user/keys Add a public SSH key to my user · Create a public key #
Ask an LLM
“How do I add an SSH key so I can push to my user repos?”
“Can a user key be read-only?”
Tell an agent
Add SSH key {key} titled {title} to my user account.
Create a read-only user key {title} from {key}.
GET /user/keys/{id} Get one of my user's public keys · Get a public key #
Ask an LLM
“What are the details of a specific user SSH key?”
“Can I look up a user key by its ID?”
Tell an agent
Get user key {id}.
Show the SSH key {id} on my account.
DELETE /user/keys/{id} Delete a user's public key · Delete a public key #
Ask an LLM
“How do I remove an SSH key from my user account?”
“Can I delete a user key I no longer use?”
Tell an agent destructive · confirm first
Delete user key {id}.
Remove the SSH key {id} from my account.
GET /user/list_blocked List blocked users on my account · List the authenticated user's blocked users #
Ask an LLM
“Who have I blocked on my user account?”
“Can I see my blocked users page by page?”
Tell an agent
List the users I've blocked.
Show my blocked users, {limit} per page.
GET /user/quota Get my user quota usage · Get quota information for the authenticated user #
Ask an LLM
“How much storage and artifact quota does my user account have?”
“What is my current user quota?”
Tell an agent
Show my user quota.
Get the storage and artifact quota for my account.
GET /user/quota/artifacts List artifacts affecting my user quota · List the artifacts affecting the authenticated user's quota #
Ask an LLM
“Which artifacts are using up my user quota?”
“Can I see the artifact quota items on my account?”
Tell an agent
List the artifacts affecting my user quota.
Show page {page} of user quota artifacts.
GET /user/quota/attachments List attachments affecting my user quota · List the attachments affecting the authenticated user's quota #
Ask an LLM
“Which attachments are counted against my user quota?”
“Can I page through the attachment quota items?”
Tell an agent
List the attachments affecting my user quota.
Show page {page} of user quota attachments.
GET /user/quota/check Check if I am over quota for a subject · Check if the authenticated user is over quota for a given subject #
Ask an LLM
“Is my user account over quota for a given subject?”
“Can I check user quota for a specific subject?”
Tell an agent
Check whether I am over quota for {subject}.
Tell me if user {subject} is over quota.
GET /user/quota/packages List packages affecting my user quota · List the packages affecting the authenticated user's quota #
Ask an LLM
“Which packages are using my user quota?”
“Can I see the package quota items on my account?”
Tell an agent
List the packages affecting my user quota.
Show page {page} of user quota packages.
GET /user/repos List repos owned by my user · List the repos that the authenticated user owns #
Ask an LLM
“Which repositories does my user account own?”
“Can I sort my user-owned repos by a field?”
Tell an agent
List the repos owned by my user.
Show my user repos ordered by {order_by}.
POST /user/repos Create a repository under my user · Create a repository #
Ask an LLM
“How do I create a new repository under my user account?”
“Can I initialize a new user repo with a README and license?”
Tell an agent
Create a user repo {name}.
Create user repo {name} with license {license} and README {readme}.
GET /user/settings Get my user account settings · Get current user's account settings #
Ask an LLM
“What are my current user account settings?”
“Can I read my user profile settings?”
Tell an agent
Show my user account settings.
Get the profile settings for my user account.
PATCH /user/settings Update my user account settings · Update settings in current user's account #
Ask an LLM
“How do I change my user profile name or website?”
“Can I turn off unit hints on my user account?”
Tell an agent
Set my user profile name to {full_name}.
Set my user website to {website} and language to {language}.
GET /user/starred List repos I've starred · The repos that the authenticated user has starred #
Ask an LLM
“Which repositories have I starred on my user account?”
“Can I see my starred repos page by page?”
Tell an agent
List the repos I've starred.
Show page {page} of my starred repos.
GET /user/starred/{owner}/{repo} Check if I star a repo · Whether the authenticated is starring the repo #
Ask an LLM
“Do I currently star a particular repository?”
“Can I check whether a repo is starred on my account?”
Tell an agent
Check whether I star {owner}/{repo}.
Tell me if {owner}/{repo} is starred on my account.
PUT /user/starred/{owner}/{repo} Star a repository · Star the given repo #
Ask an LLM
“How do I star a repository on my user account?”
“Can I star a repo I'm not following yet?”
Tell an agent
Star {owner}/{repo}.
Add {owner}/{repo} to my starred repos.
DELETE /user/starred/{owner}/{repo} Unstar a repository · Unstar the given repo #
Ask an LLM
“How do I unstar a repository I no longer want to follow?”
“Can I remove a starred repo from my account?”
Tell an agent destructive · confirm first
Unstar {owner}/{repo}.
Remove {owner}/{repo} from my starred repos.
GET /user/stopwatches List a user's stopwatches · Get list of all existing stopwatches #
Ask an LLM
“How do I see the stopwatches a user has set up?”
“Can I page through a user's stopwatches?”
Tell an agent
List the stopwatches for this user.
Show page {page} of the user's stopwatches, {limit} per page.
GET /user/subscriptions List watched repos for the signed-in user · List repositories watched by the authenticated user #
Ask an LLM
“Which repositories am I watching as the signed-in user?”
“Can I see my own watched repos?”
Tell an agent
List the repositories I am watching.
Show page {page} of my watched repos, {limit} per page.
GET /user/teams List the teams I belong to · List all the teams a user belongs to #
Ask an LLM
“Which teams do I belong to on Forgejo?”
“How do I find out what teams a user is a member of?”
Tell an agent
List the teams I belong to.
Show my team membership page {page}.
GET /user/times List the signed-in user's tracked times · List the current user's tracked times #
Ask an LLM
“What time has the signed-in user tracked?”
“Can I list tracked times updated since a date?”
Tell an agent
List my tracked times.
Show tracked times updated since {since}.
PUT /user/unblock/{username} Unblock a user · Unblocks a user from the doer #
Ask an LLM
“How do I unblock someone who blocked me?”
“Can I reverse a block on a user?”
Tell an agent destructive · confirm first
Unblock user {username}.
Let me unblock {username} so I can follow them again.
GET /users/search Search users · Search for users #
Ask an LLM
“How do I find a Forgejo user by keyword?”
“Can I search users by ID or sort the results?”
Tell an agent
Search users for {q}.
Find user {uid} sorted by {sort}.
GET /users/{username} Get a user's profile · Get a user #
Ask an LLM
“How do I look up a Forgejo user's profile?”
“What details are returned for a single user?”
Tell an agent
Get user {username}.
Show the profile of {username}.
GET /users/{username}/activities/feeds List a user's activity feeds · List a user's activity feeds #
Ask an LLM
“What has a user been doing on Forgejo recently?”
“Can I see only the actions a user performed themselves?”
Tell an agent
List the activity feeds for {username}.
Show only actions {username} performed, on {date}.
GET /users/{username}/followers List a user's followers · List the given user's followers #
Ask an LLM
“Who follows a particular user?”
“Can I page through a user's followers?”
Tell an agent
List the followers of {username}.
Show page {page} of {username}'s followers, {limit} per page.
GET /users/{username}/following List users a user is following · List the users that the given user is following #
Ask an LLM
“Which users is a given user following?”
“Can I see who a user is following?”
Tell an agent
List the users {username} is following.
Show page {page} of {username}'s following list, {limit} per page.
GET /users/{username}/following/{target} Check if one user follows another · Check if one user is following another user #
Ask an LLM
“Is user A following user B?”
“Can I check a follow relationship between two users?”
Tell an agent
Check whether {username} follows {target}.
Tell me if {username} is following {target}.
GET /users/{username}/gpg_keys List a user's GPG keys · List the given user's GPG keys #
Ask an LLM
“How do I see the PGP keys a user has registered?”
“Which GPG keys are associated with a Forgejo user?”
Tell an agent
List the GPG keys of user {username}.
Show page {page} of {username}'s GPG keys, {limit} per page.
GET /users/{username}/heatmap Get a user's contribution heatmap · Get a user's heatmap #
Ask an LLM
“How do I see a user's contribution activity over time?”
“Can I get heatmap data for a user's profile?”
Tell an agent
Get the heatmap for {username}.
Show {username}'s contribution activity heatmap.
GET /users/{username}/keys List a user's public keys · List the given user's public keys #
Ask an LLM
“Which public keys are registered for a user?”
“Can I list a user's public keys by fingerprint?”
Tell an agent
List the public keys of {username}.
Show public keys of {username} with fingerprint {fingerprint}.
GET /users/{username}/repos List a user's owned repositories · List the repos owned by the given user #
Ask an LLM
“Which repositories does a user own?”
“Can I list only the repos a user owns?”
Tell an agent
List the repositories owned by {username}.
Show page {page} of {username}'s owned repos, {limit} per page.
GET /users/{username}/starred List a user's starred repositories · The repos that the given user has starred #
Ask an LLM
“Which repositories has a user starred?”
“Can I see a user's starred repos?”
Tell an agent
List the repositories starred by {username}.
Show page {page} of {username}'s starred repos, {limit} per page.
GET /users/{username}/subscriptions List a user's watched repositories · List the repositories watched by a user #
Ask an LLM
“Which repositories is a user watching?”
“Can I list a user's watched repos?”
Tell an agent
List the repositories watched by {username}.
Show page {page} of {username}'s watched repos, {limit} per page.
GET /users/{username}/tokens List a user's access tokens · List the specified user's access tokens #
Ask an LLM
“Which access tokens exist on a user's account?”
“Can I list a user's access tokens by page?”
Tell an agent
List the access tokens for {username}.
Show page {page} of {username}'s access tokens, {limit} per page.
POST /users/{username}/tokens Generate an access token for a user · Generate an access token for the specified user #
Ask an LLM
“How do I generate a personal access token for a user?”
“Can I restrict a new token to certain repositories?”
Tell an agent
Generate an access token named {name} for {username}.
Create a {name} token for {username} with scopes {scopes} on repos {repositories}.
DELETE /users/{username}/tokens/{token} Delete an access token · Delete an access token from the specified user's account #
Ask an LLM
“How do I revoke an access token from a user's account?”
“Can I delete a personal access token by its name?”
Tell an agent destructive · confirm first
Delete access token {token} from {username}'s account.
Revoke the {token} token on {username}'s account.

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-user-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-user-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: This documentation describes the Forgejo API.
  title: Forgejo User 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 (126 KB total) ---
# Full source: https://artifacts.apis.io/codeberg/openapi/codeberg-user-api-openapi.yml