API Reference
OpenBook exposes two HTTP APIs: a REST API for application data and an authentication API powered by Django Allauth. Both are described by machine-readable OpenAPI schemas and come with an interactive ReDoc browser you can use to explore endpoints and try requests during local development.
Hint
We recommend using the API schema shipped with your OpenBook installation.
During development, you can run npm start and substitute
<your-openbook-host> with localhost:8000 in the URLs below.
REST API
The OpenBook REST API contains machine-readable OpenAPI descriptions for clients to generate type-safe remote stubs. Additionally, an interactive API browser powered by ReDoc is included. The following URLs expose the API schema on your running OpenBook installation, or you can preview the latest version included in this manual.
Format |
Online |
Local Installation |
|---|---|---|
YAML schema |
|
|
JSON schema |
|
|
Interactive ReDoc UI |
|
Authentication API
All user management is handled by Django Allauth, which implements its own REST API. The following URLs expose the API schema on your running OpenBook installation:
Format |
Online |
Local Installation |
|---|---|---|
YAML schema |
|
|
JSON schema |
|
|
Interactive ReDoc UI |
|
WebSocket API
Some features like the AI chat are available through an asynchronous WebSocket API. The following URLs expose the API schema and documentation on your installation:
Format |
Online |
Local Installation |
|---|---|---|
YAML schema |
|
|
JSON schema |
|