Jupyter Notebooks Contents API

Notebook and file contents.

Operations 9

GET /contents/{path} Get contents at a path #
PUT /contents/{path} Save or upload contents at a path #
PATCH /contents/{path} Rename or move contents #
POST /contents/{path} Create a new file or directory #
DELETE /contents/{path} Delete contents at a path #
GET /contents/{path}/checkpoints List checkpoints for a file #
POST /contents/{path}/checkpoints Create a new checkpoint #
POST /contents/{path}/checkpoints/{checkpoint_id} Restore a file to a checkpoint #
DELETE /contents/{path}/checkpoints/{checkpoint_id} Delete a checkpoint #

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/jupyter-notebooks-contents-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

jupyter-notebooks-contents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Jupyter Notebook Server REST Contents API
  description: REST API for the Jupyter Notebook server, providing access to notebook contents, kernels, kernel specs, sessions, and terminals. Used by clients to drive interactive computing workflows.
  version: '7.0'
  contact:
    name: Project Jupyter
    url: https://jupyter.org
  license:
    name: BSD-3-Clause
    url: https://github.com/jupyter/notebook/blob/main/LICENSE
servers:
- url: http://localhost:8888/api
  description: Local Jupyter Notebook server
tags:
- name: Contents
  description: Notebook and file contents.
paths:
  /contents/{path}:
    parameters:
    - in: path
      name: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Contents
      summary: Get contents at a path
      operationId: getContents
      parameters:
      - in: query
        name: type
        schema:
          type: string
          enum:
          - directory
          - file
          - notebook
      - in: query
        name: format
        schema:
          type: string
          enum:
          - text
          - base64
          - json
      - in: query
        name: content
        schema:
          type: integer
          enum:
          - 0
          - 1
      responses:
        '200':
          description: Contents at the path.
    put:
      tags:
      - Contents
      summary: Save or upload contents at a path
      operationId: saveContents
      responses:
        '200':
          description: Contents saved.
        '201':
          description: Contents created.
    patch:
      tags:
      - Contents
      summary: Rename or move contents
      operationId: renameContents
      responses:
        '200':
          description: Contents renamed.
    post:
      tags:
      - Contents
      summary: Create a new file or directory
      operationId: createContents
      responses:
        '201':
          description: Contents created.
    delete:
      tags:
      - Contents
      summary: Delete contents at a path
      operationId: deleteContents
      responses:
        '204':
          description: Contents deleted.
  /contents/{path}/checkpoints:
    parameters:
    - in: path
      name: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Contents
      summary: List checkpoints for a file
      operationId: listCheckpoints
      responses:
        '200':
          description: List of checkpoints.
    post:
      tags:
      - Contents
      summary: Create a new checkpoint
      operationId: createCheckpoint
      responses:
        '201':
          description: Checkpoint created.
  /contents/{path}/checkpoints/{checkpoint_id}:
    parameters:
    - in: path
      name: path
      required: true
      schema:
        type: string
    - in: path
      name: checkpoint_id
      required: true
      schema:
        type: string
    post:
      tags:
      - Contents
      summary: Restore a file to a checkpoint
      operationId: restoreCheckpoint
      responses:
        '204':
          description: Checkpoint restored.
    delete:
      tags:
      - Contents
      summary: Delete a checkpoint
      operationId: deleteCheckpoint
      responses:
        '204':
          description: Checkpoint deleted.
components:
  securitySchemes:
    tokenAuth:
      type: http
      scheme: bearer
      bearerFormat: Jupyter-Token