Innernet Versioning API

The versioning API from Innernet — 8 operation(s) for versioning.

GitHub OpenAPI

Operations 13

GET /v1/projects/{slug}/handoff where the last session left off — the note one agent leaves the next #
PUT /v1/projects/{slug}/handoff leave that note #
GET /v1/projects/{slug}/commits List commits #
GET /v1/projects/{slug}/commits/{hash} Get a commit #
GET /v1/projects/{slug}/branches List branches #
POST /v1/projects/{slug}/branches Fork a branch #
GET /v1/projects/{slug}/branches/{name} Get a branch #
PATCH /v1/projects/{slug}/branches/{name} Park / unpark a branch #
GET /v1/projects/{slug}/branches/{name}/diff Diff branch vs trunk #
POST /v1/projects/{slug}/branches/{name}/merge Merge a branch #
GET /v1/projects/{slug}/branches/{name}/dimensions/{dim} Read a branch dimension #
PUT /v1/projects/{slug}/branches/{name}/dimensions/{dim} Write a dimension into a branch #
DELETE /v1/projects/{slug}/branches/{name}/dimensions/{dim} Remove a dimension from a branch #

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/innernet-live:innernet-live-versioning-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

innernet-live-versioning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: innernet Versioning API
  version: '2026-06-11'
  description: 'Versioned memory for AI agents, over plain REST — at full parity with the hosted MCP server: every tool an AI client can call, an agent can call here, running the same handlers against the same memory.


    Start with **GET /v1/context** — pass the question you are actually trying to answer and innernet returns only what that question needs (focus, a few near-misses, the map by name) instead of the whole map.


    Families: **context** (projects → dimensions → captures: the versioned world-model innernet maintains), **memories** (a flat, namespaced store — scope rows to your own users, agents and runs), **versioning** (commits, branches, handoffs), **tasks**, **artifacts** (living documents), **personal memory** (disclosure-gated; `private` never crosses the wire), **agents** (a memory of its own for each agent you run, with settings, keys that reach only that agent, and a ledger) and **session**.


    GET /api/v1 returns a discovery document — what an agent reads to learn innernet without being handed documentation by a human.'
servers:
- url: https://innernet.live/api
security:
- bearerAuth: []
tags:
- name: Versioning
paths:
  /v1/projects/{slug}/handoff:
    get:
      summary: where the last session left off — the note one agent leaves the next
      description: Mirrors the MCP tool `innernet_handoff_read` — same handler, same result. Requires the `read` scope.
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1ProjectsBySlugHandoff
      x-operation-id-source: derived
    put:
      summary: leave that note
      description: Mirrors the MCP tool `innernet_handoff_write` — same handler, same result. Requires the `write` scope.
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      operationId: putV1ProjectsBySlugHandoff
      x-operation-id-source: derived
  /v1/projects/{slug}/commits:
    get:
      operationId: listCommits
      summary: List commits
      description: The project's append-only history, newest first — every save, capture, sync, and merge.
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          default: 50
          maximum: 200
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
      responses:
        '200':
          description: head + commits[] (hash, parent_hash, summary, trigger, committed_at)
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/projects/{slug}/commits/{hash}:
    get:
      operationId: getCommit
      summary: Get a commit
      description: One commit with its full diff payload (capture content, merge diffs).
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      - name: hash
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The commit
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/projects/{slug}/branches:
    get:
      operationId: listBranches
      summary: List branches
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: branches[] (name, status, fork_from, overlay keys)
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      operationId: createBranch
      summary: Fork a branch
      description: Fork the context map at its current head. The branch gets a full snapshot (overlay) of trunk dimensions + nodes; trunk stays untouched until merge.
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
                  description: Branch name (slug-like)
                summary:
                  type: string
      responses:
        '201':
          description: Created
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/projects/{slug}/branches/{name}:
    get:
      operationId: getBranch
      summary: Get a branch
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      - name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Branch metadata + overlay keys
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    patch:
      operationId: parkBranch
      summary: Park / unpark a branch
      description: status "parked" archives without merging (overlay preserved); "active" revives.
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      - name: name
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - status
              properties:
                status:
                  type: string
                  enum:
                  - parked
                  - active
      responses:
        '200':
          description: Updated
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/projects/{slug}/branches/{name}/diff:
    get:
      operationId: diffBranch
      summary: Diff branch vs trunk
      description: 'A 3-way diff against the fork point (not a live trunk compare): added / modified / removed / unchanged for what the BRANCH changed, for dimensions and nodes. `conflicts` lists keys trunk also changed differently since the fork — those are skipped by merge until resolved.'
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      - name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The diff — each bucket carries added/modified/removed/unchanged/conflicts
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/projects/{slug}/branches/{name}/merge:
    post:
      operationId: mergeBranch
      summary: Merge a branch
      description: 'A real 3-way merge (fork point vs trunk now vs the branch now): applies only what the branch itself changed since it forked. A page both trunk and the branch changed differently since the fork is left on trunk and reported in the response `diff.conflicts`, not overwritten. Check the response `merged` flag — false means conflicts remain and the branch was NOT marked merged; resolve them (edit the branch or trunk) and merge again. Refuses a parked or already-merged branch.'
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      - name: name
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Returns the commit hash, the `merged` flag (false when conflicts remain and the branch stays unmerged) and the applied `diff` (with `diff.conflicts` when some pages were skipped)
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/projects/{slug}/branches/{name}/dimensions/{dim}:
    get:
      operationId: getBranchDimension
      summary: Read a branch dimension
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      - name: name
        in: path
        required: true
        schema:
          type: string
      - name: dim
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Markdown content from the overlay
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    put:
      operationId: putBranchDimension
      summary: Write a dimension into a branch
      description: Edits the branch overlay only — trunk is untouched until merge.
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      - name: name
        in: path
        required: true
        schema:
          type: string
      - name: dim
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - content
              properties:
                content:
                  type: string
                  description: Full markdown body
      responses:
        '200':
          description: Saved to overlay
        '409':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      operationId: deleteBranchDimension
      summary: Remove a dimension from a branch
      description: Merging afterwards deletes it from trunk.
      tags:
      - Versioning
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      - name: name
        in: path
        required: true
        schema:
          type: string
      - name: dim
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Removed from overlay
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
          - code
          - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key (innernet_…) minted in your dashboard under connections → api, or an OAuth 2.1 access token issued to an MCP client. Keys carry read and/or write scopes.