What Advanced REST API does
Publish the models you choose as JSON resources with scoped API keys or OAuth2, let integrators explore an interactive documentation page, push changes to other systems with signed webhooks and follow every call in the request log.
REST API for Odoo with per-resource field and method control, scoped expiring API keys, OAuth2 client credentials, rate limits, IP allow-lists, OpenAPI 3 spec and built-in docs page, outgoing webhooks with HMAC signatures and retries, request log with replay.
- REST API
- OpenAPI / Swagger docs
- API keys
- OAuth2
- Webhooks
- Rate limits
Features
Any model as a resource
List, read, create (one or a batch), update, delete and upsert any business model, with field selection, JSON domains, simple filters, sorting, paging links and total count.
Scoped, hashed, expiring keys
Keys per user, per resource and per operation, hashed at rest, shown once, with expiry, rotation, revocation, rate limit and IP allow-list.
OAuth2 client credentials
Client ID and secret for server integrations, short-lived tokens, scope narrowing, revocation endpoint and Basic or form client authentication.
Works with Odoo API keys
Users can also call the REST API with the API key from their Odoo preferences, the same key used for the built-in JSON-2 API (/json/2). Switch it off in the settings.
Security first
Never sudo for data: access rights, record rules, field groups and companies of the key user apply. No session cookies, no passwords in requests, failed-login throttle per IP.
Methods, files and reports
Call allowed public methods on records or on the model, upload and download binary fields and attachments, print published reports as PDF.
Aggregates
Group by up to three fields (dates by day, week, month, quarter or year) with sum, average, minimum, maximum and distinct counts.
OpenAPI 3 and docs page
The specification is generated from your configuration and served with an interactive documentation page by Odoo itself. Import openapi.json into Postman, Insomnia or a code generator.
Webhooks with HMAC
Create, update and delete events with trigger fields, filters, payload fields, signatures, retries with back-off, dead letters, resend and a private-network guard.
Request log and replay
Status, timing, key, IP, redacted bodies, request id in every answer, graph and pivot analysis, one-click replay, retention period.
Retry-safe writes
Idempotency-Key on create returns the first answer to a retried request; upsert finds an existing record by a key field such as a reference.
Multi-company
Keys work in their main company and the other companies you allow; clients pick one with the X-Company-Id header. Keys, clients, webhooks and logs follow company rules.
Publish resources
Pick models, fields, records and operations.
Hand out keys
API keys or OAuth2 clients scoped to those resources.
Clients call /rest/v1
JSON in and out, documented by the OpenAPI file.
Before and after
Without the app
- Integrators get an all-or-nothing login and call any model through XML-RPC
- Passwords or long-lived tokens copied into scripts, no expiry, no limits
- Polling Odoo every few minutes to find out what changed
- No trace of who called what when an integration breaks
With Advanced REST API
- Each partner gets a key for the resources, fields and operations you chose
- Hashed, expiring keys or short-lived OAuth2 tokens, rate limits and IP allow-lists
- Signed webhooks push creates, updates and deletes the moment they happen
- A request log with bodies, timing and replay, and a request id in every answer
How it works, step by step
01Quick setup in one dialog
Pick the models to publish (here contacts and sales orders), the access level and the Odoo user the key acts as. Each model becomes a resource with suggested response fields; nothing is exposed that you did not choose.

02The secret is shown once
The key is stored only as a SHA-256 hash. Copy the secret and the ready-to-run curl command now; a lost secret is rotated, never displayed again.

03Resources: fields, records and operations
A resource maps one model to /rest/v1/<path>. Choose the fields clients may read and write, the fields returned by default, a record filter (for example only companies), list/create/update/delete, attachments and an upsert key. Passwords, tokens and secrets are never exposed, whatever you select.

04Business methods and PDF reports
Allow public methods such as action_confirm or action_post, and printable reports. Clients confirm an order with POST /sales-orders/<id>/call/action_confirm and download the quotation PDF from /report/<name>.
05API keys scoped per resource and operation
Each key acts as one Odoo user and reaches only the listed resources with at most the ticked operations. Expiry date, rate limit per minute, IP allow-list, other companies, usage counter and rotate or revoke in one click.
06OAuth2 client credentials
For server-to-server integrations: a client ID and a hashed secret exchanged at /rest/v1/oauth/token for short-lived bearer tokens, optionally narrowed with scope. Rate limit and IP allow-list apply to all tokens of the client; revoke all tokens at once.
07Documentation page served by Odoo
An interactive documentation page generated from the live OpenAPI 3 file: authentication, filters, paging, idempotency, errors and webhook verification code. It loads nothing from external sites.
08Try requests from the documentation
Paste a key, fill fields, domain, order or limit and send the request. The answer shows status, time, total count, remaining rate limit and request id, with curl, Python and JavaScript snippets for the same call.
09From any client: list, filter, create
A real exchange: list companies with selected fields, a JSON domain and paging links, then create a contact with an Idempotency-Key. The retry with the same key returns the first answer instead of creating a duplicate.
10Token, method call and PDF in three calls
Get an OAuth2 token, confirm a quotation through its business method, read the order back and download its PDF. Every step runs with the access rights of the key user.
11Outgoing webhooks on create, update and delete
Pick the model, the events, the fields that trigger an update, a record filter and the payload fields. Here the warehouse is told about confirmed orders only. Extra headers, timeout and attempts per webhook.
12Signed deliveries on the receiving side
Each delivery carries the event, a delivery id and an HMAC-SHA256 signature over the time stamp and the raw body. The receiver verifies it with the shared secret in a few lines of code, shown in the documentation.
Questions about Advanced REST API
Does it replace the API that comes with Odoo?
No. It runs next to the built-in JSON-2 API (/json/2) and adds what those do not: resource-level field and record control, scoped keys, OAuth2, rate limits, documentation, webhooks and a request log. Users can keep using their Odoo API keys with this API too.
Can a key read more than its user?
No. Requests run as the key user with their access rights, record rules, field groups and companies. The resource and the key can only narrow that further.
Are passwords or tokens ever returned?
No. Fields whose names hold passwords, tokens, secrets or API keys are refused in the configuration and filtered from answers, filters, sorting and webhook payloads.
How do I call it on a server with several databases?
Set dbfilter so that the host name selects one database, as on Odoo.sh. The address is shown in the settings.
Does it work behind nginx or a load balancer?
Yes. Run Odoo with proxy_mode so that the real client address is used for IP allow-lists, throttling and the log.
Can webhooks call services inside my network?
Only if you allow private network targets in the settings. It is off by default to prevent server-side request forgery.
Can browser applications call it?
Yes, list the allowed origins in the CORS setting. Keys travel in the Authorization or X-API-Key header, never in a cookie.
How do I import it into Postman or generate a client?
Import /rest/v1/openapi.json. Postman, Insomnia and OpenAPI code generators read it directly.
What do clients see when something is wrong?
A JSON error with status, code, message and request id, and the matching HTTP status: 400, 401, 403, 404, 409, 422 or 429 with Retry-After.
Who can configure it?
REST API administrators publish resources, clients and webhooks and read the full log. REST API users manage their own keys and see the log of their keys.
