π Odoo Rest Suite - Basic Plan
Comprehensive REST API Management & Documentation Solution for Odoo
Rest Suite turns your Odoo data into a professional, documented REST API in minutes. Expose any Odoo model over REST, explore and test everything in interactive Swagger UI, and secure access with JWT bearer tokens β all from inside Odoo, no coding required.
πΊοΈ How You Use the App β At a Glance
API access
Swagger UI
token
REST API
Everything lives under the Rest Suite menu:
- API Management β API Endpoints, API Schemas, Generate Token, API Tokens
- OpenAPI β Swagger UI, Download OpenAPI Spec
- Settings β plan limits, session ID helper, recommended models
β Step 1 β Grant Your User API Access
- Activate Developer Mode: Go to Settings β scroll down β click "Activate the Developer Mode" (needed on Odoo 19 to see access rights)
- Go to Settings β Users & Companies β Users and select your user
- In the Access Rights tab, check "OpenAPI Manager"
- Click Save, then log out and back in
β Step 2 β Explore & Test in Swagger UI
The standard REST endpoints ship documented out of the box β no setup needed. The generic routes work for any installed model:
GET /api/v1/{model_name}/{id} # Get a single record
GET /api/v1/models # List available models
GET /api/v1/models/{model}/fields # Model field metadata
POST /api/v1/{model_name} # Create record
PUT /api/v1/{model_name}/{id} # Update record
DELETE /api/v1/{model_name}/{id} # Delete record
These generic routes respect Odoo's access rights. Open the interactive documentation at /api/docs or via Rest Suite β OpenAPI β Swagger UI:
- See every endpoint, parameter, and response in one place
- Test endpoints directly from your browser β no external tools needed
- Inspect request/response schemas automatically
Figure 1: Interactive Swagger UI showing the auto-generated REST API documentation β authentication (JWT token endpoints), discovery, fields, and records β with in-browser testing and one-click authorization
β Step 3 β Authenticate: JWT Bearer Tokens
For scripts, integrations, and mobile apps, use the built-in JWT token endpoints (documented in the Swagger spec too). No cookies, no session scraping:
POST /api/v1/auth/token/refresh β rotate the refresh token
POST /api/v1/auth/token/revoke β revoke tokens
Get a token with your Odoo login and password (an Odoo API key also works):
-H "Content-Type: application/json" \
-d '{"login": "your_user", "password": "your_password", "scopes": "rest:read"}'
Then call the API with the bearer token:
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
When the access token expires (after 1 hour), get a new pair by rotating the refresh token:
-H "Content-Type: application/json" \
-d '{"refresh_token": "YOUR_REFRESH_TOKEN"}'
The refresh token is single-use: each rotation consumes it and returns a fresh access + refresh pair. If a rotated token is reused, the whole token family is revoked automatically as protection against replay attacks.
- Scopes:
rest:read(default),rest:write(opt-in),rest:admin - Short-lived access tokens (1 hour) with rotating refresh tokens
- Manage tokens in the UI: Rest Suite β API Management β API Tokens β generate, view, and revoke tokens for your users
Figure 2: Generate Token dialog β pick a device/client name and scopes (e.g. Read only) and the API Tokens UI issues the token pair for you
β Step 4 β Manage & Document Your API
π§© API Schemas
Define reusable schemas with typed properties, validation rules, and examples under API Management β API Schemas, and link them to your endpoints.
Coming soon (planned for a future update / Enterprise plan): schemas automatically embedded in the generated OpenAPI spec and one-click schema generation from any Odoo model.
π₯ OpenAPI Spec Download
Download the OpenAPI 3.0 spec at /api/openapi.json or via OpenAPI β Download OpenAPI Spec β import into Postman, Insomnia, or code generators.
Figure 3: API Management interface with Settings, Session ID extraction, and Popular Models for Testing
π Common Model Examples
| Model | Description | Example Endpoint |
|---|---|---|
res.partner |
Contacts | /api/v1/res.partner |
sale.order |
Sales Orders | /api/v1/sale.order |
account.move |
Invoices | /api/v1/account.move |
product.product |
Products | /api/v1/product.product |
β¨ What You Get
π Generic Model API
Access ANY Odoo model via REST automatically β full CRUD, no code.
π Swagger UI
Interactive documentation and in-browser API testing.
π JWT Authentication
Bearer tokens with scopes, refresh rotation, and revocation.
π οΈ Endpoint Management
Document and curate your API surface (paths, methods, parameters, responses) with a full management UI β all of it rendered in Swagger.
Coming soon (planned for a future update): execute custom endpoints created in the UI, no code needed.
π Pre-documented Standard API
The standard model CRUD routes, plus the JWT auth endpoints, ship documented in the Swagger spec out of the box.
π₯ OpenAPI 3.0
Downloadable spec that works with all OpenAPI tools.
β Use Cases
π Integrations
Connect Odoo with external systems, third-party apps, and services
π± Mobile Apps
Build mobile applications that talk to your Odoo instance
π€ Automation
Automate business processes with API-driven workflows
π Reporting
Extract data for custom reporting and analytics
βοΈ Installation
This module contains Python code, so it cannot be installed through Odoo's "Import Module" screen (that importer only accepts data-only modules without Python). Install it the standard way:
- Download the module zip from this page.
- Extract the
odoo_rest_suitefolder into your Odoo addons directory:- Windows (official Odoo installer):
C:\Program Files\Odoo 20.0...\server\odoo\addons\ - Linux (deb/rpm):
/usr/lib/python3/dist-packages/odoo/addons/(or your custom addons path)
- Windows (official Odoo installer):
- Restart Odoo β Windows: restart the
odoo-serverservice; Linux:sudo systemctl restart odoo. - Open Odoo β Apps β Update Apps List (confirm the dialog) β search Odoo Rest Suite β Install.
π‘ The zip contains one-click installers (install.bat for Windows,
install.sh for Linux) β run them from inside the extracted
odoo_rest_suite folder and they copy the module into your addons
directory and restart the Odoo service for you. Requires administrator/root
access to your Odoo server.
π³ Docker install
Run Odoo 20 with this folder mounted as an extra addons path:
services:
web:
image: odoo:20
depends_on:
- db
ports:
- "8069:8069"
volumes:
- ./odoo_rest_suite:/mnt/extra-addons/odoo_rest_suite
environment:
- HOST=db
- USER=odoo
- PASSWORD=odoo
- ADDONS_PATH=/mnt/extra-addons,/usr/lib/python3/dist-packages/odoo/addons
db:
image: postgres:17
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data:
Save as docker-compose.yml in the same folder as
odoo_rest_suite, then run docker compose up -d and
install from Apps β Update Apps List.
π― Perfect For
- Developers building integrations with Odoo
- Businesses needing secure API access to their data
- Teams requiring API documentation and testing tools
- Organizations implementing API-first strategies
For plan upgrades or support, contact us.
Odoo Rest Suite - Basic Plan - Professional REST API Management for Odoo
Compatible with Odoo 20.0
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 4872 |
| Technical Name |
odoo_rest_suite |
| License | LGPL-3 |
| Website | https://apps.odoo.com/apps/modules/19.0/odoo_rest_suite |
Please log in to comment on this module