Skip to content

REST API Overview

SpiceBook exposes a REST API for programmatic access to notebooks, simulation, and rendering. All endpoints accept and return JSON unless noted otherwise.

https://spicebook.warehack.ing/api

All endpoint paths below are relative to this base.

None. The API is open — no API keys or tokens are required. This makes it straightforward to integrate with scripts, CI pipelines, or AI assistants like mcltspice.

Successful responses return JSON with the appropriate HTTP status code (200, 201, or 204). Error responses include a detail message:

{
"detail": "Notebook not found"
}

Common status codes:

CodeMeaning
200Success
201Created (new notebook or cell)
204Deleted (no response body)
404Resource not found
422Validation error (malformed request body)
500Internal server error (simulation crash, etc.)
GET /health

Returns the API version and status:

{"status": "ok", "version": "2026.02.13"}