Manifest Academy

Home › Curriculum › Odoo Developer › External API: XML-RPC, JSON-RPC and JSON-2

Controllers, integrations and AI · 16 min · 17–20

External API: XML-RPC, JSON-RPC and JSON-2

Calling Odoo from other systems: authentication, execute_kw and search_read, the newer JSON-2 API, API keys and good practice.

In this lesson

Key points

Real-world example

A logistics partner polled Odoo for new deliveries every 10 seconds with an admin password. It slowed the server and the password leaked in a log. The integration moved to a dedicated user with an API key, JSON-2 on Odoo 19, and a webhook from an automation rule on delivery validation. Load dropped and the leak was rotated.

Questions and answers

Why can't you call _compute_amount via RPC?

Methods starting with _ are private.

What header carries the API key in JSON-2?

Authorization: bearer <key>.

Read the full lesson, worked example and quiz