REST API Framework
API key authentication, enforced rate limiting and hand-written REST endpoints
A lightweight REST API toolkit for Odoo (Beta). Secure a set of hand-written JSON/HTTP endpoints with header-based API keys, enforce real per-key hourly and daily rate limits, and manage keys from the back office. Ready-to-use endpoints cover authentication, CRM, Sales and Inventory under /api/v1/.
Key Features
API Key Authentication
Header-based authentication using X-API-Key or Authorization: Bearer, via a reusable controller decorator that validates the key, checks expiry and an optional IP whitelist.
API Key Management
Generate, list and revoke cryptographically secure keys through the auth endpoints, and manage them from the back-office key screen. Each key stores an owner, optional expiry, IP whitelist, permission fields and usage counters.
Enforced Rate Limiting
Real fixed-window rate limiting per key, applied on every authenticated request, with configurable hourly and daily limits. Requests beyond the threshold are rejected. Set a limit to 0 to disable that window.
CRM Endpoints
Read leads as a list or by id and create a new lead under /api/v1/crm/.
Sales Endpoints
Read sales orders and create an order with order lines under /api/v1/sales/.
Inventory Endpoints
Read products and product stock levels (available, virtual, incoming, outgoing) under /api/v1/inventory/.
API Request Log Model
A request log model with back-office list and form views to store and review API request records.
Use Cases
Screenshots
Api Request Log
Why Choose This Module
A focused, hand-written REST layer for Odoo. Header-based API keys with enforced per-key rate limiting give you a controlled entry point for CRM, Sales and Inventory integrations without exposing the raw RPC interface.
Specifications
- Compatible: Odoo 18.0 / 19.0
- License: OPL-1
- Languages: English
- Author: Pokutsoft
- Dependencies: base, web
- Support: support@pokutsoft.com
Screenshots
Rest Api Key Management
Rest Api Key Management Detail
Api Request Log
Api Request Log Detail
Update date: 2026-07-09