Skip to content
Maua.Culturewire

Forgejo

Repositories, issues and pull requests on Codeberg or your Forgejo

Developer toolsCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Forgejo URLOptionalHTTPS URL
    • Access tokenSecretRequired

    Where to find them

    1. In Forgejo click your avatar (top right) → “Settings” → “Applications”.
    2. Under “Access tokens” click “New access token” and enter a “Token name” (e.g. Maua.Culturewire).
    3. Under “Repository and organization access” leave “All” (or “Public only”); a token for “Specific repositories” can't read your account, which the connection test needs.
    4. Under “Select permissions” choose “Read” or “Read and write” for what agents may use (e.g. repository, issue, organization), with at least “Read” for “user”, and click “Generate token”.
    5. Copy the token: it is shown only once. The link below opens Codeberg: on your own instance open the same menu.

    Get credentials (opens in a new tab)

Tools (1)

  • Forgejo API requestFORGEJO_SEND_REQUEST

    Authenticated call to the Forgejo API ({url}/api/v1). Any endpoint of the API is allowed. Examples: GET /user (your account), GET /user/repos, GET /repos/search?q=… (the list is in “data”), GET /repos/{owner}/{repo}, GET /repos/{owner}/{repo}/issues?type=issues&state=open (without type=issues it also lists pull requests), GET /repos/{owner}/{repo}/pulls?state=open, GET /repos/issues/search?type=issues&state=open&created=true (issues you opened in any repository; assigned=true or mentioned=true for others, type=pulls for pull requests; without these filters it searches every public repository of the instance), POST /repos/{owner}/{repo}/issues {"title": "…", "body": "…"}, POST /repos/{owner}/{repo}/issues/{index}/comments {"body": "…"}, GET /orgs/{org}/repos, GET /users/{username}.

    Required scopes

    No scopes required

    Input

    Forgejo API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.