WitWiki Wiki API

The Wiki API from WitWiki, for wiki.

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 7

GET /api/pages List wiki pages #
GET /api/pages/{path} Get a wiki page by path #
PUT /api/pages/{path} Create or update a page (role: member+) #
DELETE /api/pages/{path} Delete a page (role: admin+) #
GET /api/lint Lint the wiki (orphans, dead links) #
GET /api/graph Get the page link graph #
POST /api/graph/rebuild Rebuild the link graph (role: agent+) #

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/witwiki-app:witwiki-app-wiki-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

witwiki-app-wiki-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WitWiki Wiki API
  version: 1.0.0
  description: 'REST API for **WitWiki** — a hosted, MCP-native, cross-linked knowledge base

    that gives LLM agents and humans a shared, persistent wiki.


    This document is hand-authored (source at `api/internal/openapi/openapi.yaml`,

    embedded into the binary) and served at `GET /openapi.yaml`, with interactive

    Swagger UI at `GET /docs`. It covers the

    REST surface rooted at `/api`, plus the open auth routes, OAuth discovery, and

    the Stripe webhook. The MCP transport at `/mcp` is documented separately

    (`docs/witwiki-mcp.md`); it is not a REST surface.


    ## Authentication

    All `/api/*` routes (except the open auth routes below) require a bearer token

    in the `Authorization` header. The token may be either:

    - a **project API key** (resolves directly to a project), or

    - a **JWT session access token** (from `POST /api/auth/login`). On the JWT path,

    send the active project in the `X-Project-ID` header.


    ## Errors

    Errors are returned as `{ "error": "" }` with an appropriate status

    (400 invalid input, 401 unauthenticated, 403 role/scope denied, 404 not found,

    402 quota exceeded, 409/410 transfer state conflicts, 500 internal).'
servers:
- url: https://api.witwiki.app
  description: Production
- url: http://localhost:8080
  description: Local development
security:
- bearerAuth: []
tags:
- name: Wiki
paths:
  /api/pages:
    get:
      tags:
      - Wiki
      summary: List wiki pages
      parameters:
      - name: q
        in: query
        schema:
          type: string
        description: Full-text / keyword query
      - name: prefix
        in: query
        schema:
          type: string
        description: Path prefix filter
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/ProjectID'
      responses:
        '200':
          description: Page summaries
          content:
            application/json:
              schema:
                type: object
                properties:
                  pages:
                    type: array
                    items:
                      $ref: '#/components/schemas/PageSummary'
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: getApiPages
      x-operation-id-source: derived
  /api/pages/{path}:
    parameters:
    - $ref: '#/components/parameters/PagePath'
    - $ref: '#/components/parameters/ProjectID'
    get:
      tags:
      - Wiki
      summary: Get a wiki page by path
      responses:
        '200':
          description: The page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getApiPagesByPath
      x-operation-id-source: derived
    put:
      tags:
      - Wiki
      summary: 'Create or update a page (role: member+)'
      description: Parses `[[wikilinks]]` from content and refreshes the link graph. Audit logged server-side.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PageInput'
      responses:
        '200':
          description: The saved page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
      operationId: putApiPagesByPath
      x-operation-id-source: derived
    delete:
      tags:
      - Wiki
      summary: 'Delete a page (role: admin+)'
      responses:
        '204':
          description: Deleted
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: deleteApiPagesByPath
      x-operation-id-source: derived
  /api/lint:
    get:
      tags:
      - Wiki
      summary: Lint the wiki (orphans, dead links)
      parameters:
      - $ref: '#/components/parameters/ProjectID'
      responses:
        '200':
          description: Lint report
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LintReport'
      operationId: getApiLint
      x-operation-id-source: derived
  /api/graph:
    get:
      tags:
      - Wiki
      summary: Get the page link graph
      parameters:
      - $ref: '#/components/parameters/ProjectID'
      responses:
        '200':
          description: Graph nodes + links
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Graph'
      operationId: getApiGraph
      x-operation-id-source: derived
  /api/graph/rebuild:
    post:
      tags:
      - Wiki
      summary: 'Rebuild the link graph (role: agent+)'
      parameters:
      - $ref: '#/components/parameters/ProjectID'
      responses:
        '200':
          description: Number of links written
          content:
            application/json:
              schema:
                type: object
                properties:
                  links_written:
                    type: integer
      operationId: postApiGraphRebuild
      x-operation-id-source: derived
components:
  schemas:
    LintReport:
      type: object
      properties:
        orphans:
          type: array
          items:
            type: string
        dead_links:
          type: array
          items:
            type: object
            additionalProperties: true
      additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: string
      required:
      - error
    Graph:
      type: object
      properties:
        nodes:
          type: array
          items:
            type: object
            additionalProperties: true
        links:
          type: array
          items:
            type: object
            additionalProperties: true
    Page:
      type: object
      properties:
        path:
          type: string
        title:
          type: string
        content:
          type: string
        metadata:
          type: object
          additionalProperties: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        version_id:
          type: string
    PageInput:
      type: object
      required:
      - title
      - content
      properties:
        title:
          type: string
        content:
          type: string
          description: Markdown; may contain [[wikilinks]]
        metadata:
          type: object
          additionalProperties: true
    PageSummary:
      type: object
      properties:
        path:
          type: string
        title:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  parameters:
    PagePath:
      name: path
      in: path
      required: true
      schema:
        type: string
      description: Wiki page path, e.g. `concepts/llm-wiki` (may contain slashes).
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
      description: Max results to return.
    ProjectID:
      name: X-Project-ID
      in: header
      required: false
      schema:
        type: string
      description: Active project ID. Required on the JWT-session auth path; ignored when using a project API key.
  responses:
    BadRequest:
      description: Invalid input
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Authenticated but lacks the required role or scope
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A project API key or a JWT session access token.