Codebahn Miscellaneous API

The miscellaneous API from Codebahn — 13 operation(s) for miscellaneous.

GitHub OpenAPI

Operations 13

GET /gitignore/templates Returns a list of all gitignore templates #
GET /gitignore/templates/{name} Returns information about a gitignore template #
GET /label/templates Returns a list of all label templates #
GET /label/templates/{name} Returns all labels in a template #
GET /licenses Returns a list of all license templates #
GET /licenses/{name} Returns information about a license template #
POST /markdown Render a markdown document as HTML #
POST /markdown/raw Render raw markdown as HTML #
POST /markup Render a markup document as HTML #
GET /nodeinfo Returns the nodeinfo of the Forgejo application #
GET /signing-key.gpg Get default signing-key.gpg #
GET /signing-key.ssh Get default signing-key.ssh #
GET /version Returns the version of the running application #

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/codebahn-net:codebahn-net-miscellaneous-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

codebahn-net-miscellaneous-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Codebahn Net Miscellaneous API
  version: 15.0.11
  license:
    name: This file is distributed under the MIT license for the purpose of interoperability
    url: http://opensource.org/licenses/MIT
  description: 'Operations tagged miscellaneous across 2 of this provider''s published API definitions: codebahn-net-swagger.v1.json, codebahn-net-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /api/v1
- url: https://codebahn.net/api/v1
security:
- BasicAuth: []
- AuthorizationHeaderToken: []
- SudoParam: []
- SudoHeader: []
- TOTPHeader: []
tags:
- name: Miscellaneous
paths:
  /gitignore/templates:
    get:
      tags:
      - Miscellaneous
      summary: Returns a list of all gitignore templates
      operationId: listGitignoresTemplates
      responses:
        '200':
          $ref: '#/components/responses/GitignoreTemplateList'
    servers:
    - url: /api/v1
  /gitignore/templates/{name}:
    get:
      tags:
      - Miscellaneous
      summary: Returns information about a gitignore template
      operationId: getGitignoreTemplateInfo
      parameters:
      - description: name of the template
        name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/GitignoreTemplateInfo'
        '404':
          $ref: '#/components/responses/notFound'
    servers:
    - url: /api/v1
  /label/templates:
    get:
      tags:
      - Miscellaneous
      summary: Returns a list of all label templates
      operationId: listLabelTemplates
      responses:
        '200':
          $ref: '#/components/responses/LabelTemplateList'
    servers:
    - url: /api/v1
  /label/templates/{name}:
    get:
      tags:
      - Miscellaneous
      summary: Returns all labels in a template
      operationId: getLabelTemplateInfo
      parameters:
      - description: name of the template
        name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/LabelTemplateInfo'
        '404':
          $ref: '#/components/responses/notFound'
    servers:
    - url: /api/v1
  /licenses:
    get:
      tags:
      - Miscellaneous
      summary: Returns a list of all license templates
      operationId: listLicenseTemplates
      responses:
        '200':
          $ref: '#/components/responses/LicenseTemplateList'
    servers:
    - url: /api/v1
  /licenses/{name}:
    get:
      tags:
      - Miscellaneous
      summary: Returns information about a license template
      operationId: getLicenseTemplateInfo
      parameters:
      - description: name of the license
        name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          $ref: '#/components/responses/LicenseTemplateInfo'
        '404':
          $ref: '#/components/responses/notFound'
    servers:
    - url: /api/v1
  /markdown:
    post:
      tags:
      - Miscellaneous
      summary: Render a markdown document as HTML
      operationId: renderMarkdown
      responses:
        '200':
          $ref: '#/components/responses/MarkdownRender'
        '422':
          $ref: '#/components/responses/validationError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarkdownOption'
    servers:
    - url: /api/v1
  /markdown/raw:
    post:
      tags:
      - Miscellaneous
      summary: Render raw markdown as HTML
      operationId: renderMarkdownRaw
      responses:
        '200':
          $ref: '#/components/responses/MarkdownRender'
        '422':
          $ref: '#/components/responses/validationError'
      requestBody:
        content:
          text/plain:
            schema:
              type: string
        description: Request body to render
        required: true
    servers:
    - url: /api/v1
  /markup:
    post:
      tags:
      - Miscellaneous
      summary: Render a markup document as HTML
      operationId: renderMarkup
      responses:
        '200':
          $ref: '#/components/responses/MarkupRender'
        '422':
          $ref: '#/components/responses/validationError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarkupOption'
    servers:
    - url: /api/v1
  /nodeinfo:
    get:
      tags:
      - Miscellaneous
      summary: Returns the nodeinfo of the Forgejo application
      operationId: getNodeInfo
      responses:
        '200':
          $ref: '#/components/responses/NodeInfo'
    servers:
    - url: /api/v1
  /signing-key.gpg:
    get:
      tags:
      - Miscellaneous
      summary: Get default signing-key.gpg
      operationId: getSigningKey
      responses:
        '200':
          description: GPG armored public key
          content:
            text/plain:
              schema:
                type: string
    servers:
    - url: /api/v1
  /signing-key.ssh:
    get:
      tags:
      - Miscellaneous
      summary: Get default signing-key.ssh
      operationId: getSSHSigningKey
      responses:
        '200':
          description: SSH public key in OpenSSH authorized key format
          content:
            text/plain:
              schema:
                type: string
        '404':
          $ref: '#/components/responses/notFound'
    servers:
    - url: /api/v1
  /version:
    get:
      tags:
      - Miscellaneous
      summary: Returns the version of the running application
      operationId: getVersion
      responses:
        '200':
          $ref: '#/components/responses/ServerVersion'
    servers:
    - url: /api/v1
components:
  responses:
    LicenseTemplateList:
      description: LicenseTemplateList
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/LicensesTemplateListEntry'
        text/html:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/LicensesTemplateListEntry'
    LabelTemplateList:
      description: LabelTemplateList
      content:
        application/json:
          schema:
            type: array
            items:
              type: string
        text/html:
          schema:
            type: array
            items:
              type: string
    LicenseTemplateInfo:
      description: LicenseTemplateInfo
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LicenseTemplateInfo'
        text/html:
          schema:
            $ref: '#/components/schemas/LicenseTemplateInfo'
    notFound:
      description: APINotFound is a not found error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APINotFound'
        text/html:
          schema:
            $ref: '#/components/schemas/APINotFound'
    GitignoreTemplateList:
      description: GitignoreTemplateList
      content:
        application/json:
          schema:
            type: array
            items:
              type: string
        text/html:
          schema:
            type: array
            items:
              type: string
    MarkupRender:
      description: MarkupRender is a rendered markup document
      content:
        application/json:
          schema:
            type: string
        text/html:
          schema:
            type: string
    MarkdownRender:
      description: MarkdownRender is a rendered markdown document
      content:
        application/json:
          schema:
            type: string
        text/html:
          schema:
            type: string
    NodeInfo:
      description: NodeInfo
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NodeInfo'
        text/html:
          schema:
            $ref: '#/components/schemas/NodeInfo'
    LabelTemplateInfo:
      description: LabelTemplateInfo
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/LabelTemplate'
        text/html:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/LabelTemplate'
    ServerVersion:
      description: ServerVersion
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ServerVersion'
        text/html:
          schema:
            $ref: '#/components/schemas/ServerVersion'
    validationError:
      description: APIValidationError is error format response related to input validation
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/APIValidationError'
        text/html:
          schema:
            $ref: '#/components/schemas/APIValidationError'
    GitignoreTemplateInfo:
      description: GitignoreTemplateInfo
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GitignoreTemplateInfo'
        text/html:
          schema:
            $ref: '#/components/schemas/GitignoreTemplateInfo'
  schemas:
    LabelTemplate:
      description: LabelTemplate info of a Label template
      type: object
      properties:
        color:
          type: string
          x-go-name: Color
          example: 00aabb
        description:
          type: string
          x-go-name: Description
        exclusive:
          type: boolean
          x-go-name: Exclusive
          example: false
        name:
          type: string
          x-go-name: Name
      x-go-package: forgejo.org/modules/structs
    GitignoreTemplateInfo:
      description: GitignoreTemplateInfo name and text of a gitignore template
      type: object
      properties:
        name:
          type: string
          x-go-name: Name
        source:
          type: string
          x-go-name: Source
      x-go-package: forgejo.org/modules/structs
    NodeInfoUsage:
      description: NodeInfoUsage contains usage statistics for this server
      type: object
      properties:
        localComments:
          type: integer
          format: int64
          x-go-name: LocalComments
        localPosts:
          type: integer
          format: int64
          x-go-name: LocalPosts
        users:
          $ref: '#/components/schemas/NodeInfoUsageUsers'
      x-go-package: forgejo.org/modules/structs
    NodeInfoSoftware:
      description: NodeInfoSoftware contains Metadata about server software in use
      type: object
      properties:
        homepage:
          type: string
          x-go-name: Homepage
        name:
          type: string
          x-go-name: Name
        repository:
          type: string
          x-go-name: Repository
        version:
          type: string
          x-go-name: Version
      x-go-package: forgejo.org/modules/structs
    NodeInfoServices:
      description: NodeInfoServices contains the third party sites this server can connect to via their application API
      type: object
      properties:
        inbound:
          type: array
          items:
            type: string
          x-go-name: Inbound
        outbound:
          type: array
          items:
            type: string
          x-go-name: Outbound
      x-go-package: forgejo.org/modules/structs
    LicenseTemplateInfo:
      description: LicensesInfo contains information about a License
      type: object
      properties:
        body:
          type: string
          x-go-name: Body
        implementation:
          type: string
          x-go-name: Implementation
        key:
          type: string
          x-go-name: Key
        name:
          type: string
          x-go-name: Name
        url:
          type: string
          x-go-name: URL
      x-go-package: forgejo.org/modules/structs
    APIValidationError:
      type: object
      properties:
        message:
          type: string
          x-go-name: Message
        url:
          type: string
          x-go-name: URL
      x-go-package: forgejo.org/services/context
    ServerVersion:
      description: ServerVersion wraps the version of the server
      type: object
      properties:
        version:
          type: string
          x-go-name: Version
      x-go-package: forgejo.org/modules/structs
    NodeInfoUsageUsers:
      description: NodeInfoUsageUsers contains statistics about the users of this server
      type: object
      properties:
        activeHalfyear:
          type: integer
          format: int64
          x-go-name: ActiveHalfyear
        activeMonth:
          type: integer
          format: int64
          x-go-name: ActiveMonth
        total:
          type: integer
          format: int64
          x-go-name: Total
      x-go-package: forgejo.org/modules/structs
    APINotFound:
      type: object
      properties:
        errors:
          type: array
          items:
            type: string
          x-go-name: Errors
        message:
          type: string
          x-go-name: Message
        url:
          type: string
          x-go-name: URL
      x-go-package: forgejo.org/services/context
    LicensesTemplateListEntry:
      description: LicensesListEntry is used for the API
      type: object
      properties:
        key:
          type: string
          x-go-name: Key
        name:
          type: string
          x-go-name: Name
        url:
          type: string
          x-go-name: URL
      x-go-package: forgejo.org/modules/structs
    MarkupOption:
      description: MarkupOption markup options
      type: object
      properties:
        BranchPath:
          description: 'The current branch path where the form gets posted


            in: body'
          type: string
        Context:
          description: 'Context to render


            in: body'
          type: string
        FilePath:
          description: 'File path for detecting extension in file mode


            in: body'
          type: string
        Mode:
          description: 'Mode to render (comment, gfm, markdown, file)


            in: body'
          type: string
        Text:
          description: 'Text markup to render


            in: body'
          type: string
        Wiki:
          description: 'Is it a wiki page ?


            in: body'
          type: boolean
      x-go-package: forgejo.org/modules/structs
    MarkdownOption:
      description: MarkdownOption markdown options
      type: object
      properties:
        Context:
          description: 'Context to render


            in: body'
          type: string
        Mode:
          description: 'Mode to render (comment, gfm, markdown)


            in: body'
          type: string
        Text:
          description: 'Text markdown to render


            in: body'
          type: string
        Wiki:
          description: 'Is it a wiki page ?


            in: body'
          type: boolean
      x-go-package: forgejo.org/modules/structs
    NodeInfo:
      description: NodeInfo contains standardized way of exposing metadata about a server running one of the distributed social networks
      type: object
      properties:
        metadata:
          type: object
          x-go-name: Metadata
        openRegistrations:
          type: boolean
          x-go-name: OpenRegistrations
        protocols:
          type: array
          items:
            type: string
          x-go-name: Protocols
        services:
          $ref: '#/components/schemas/NodeInfoServices'
        software:
          $ref: '#/components/schemas/NodeInfoSoftware'
        usage:
          $ref: '#/components/schemas/NodeInfoUsage'
        version:
          type: string
          x-go-name: Version
      x-go-package: forgejo.org/modules/structs
  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-refined-from:
- codebahn-net-swagger.v1.json
- codebahn-net-openapi.yml