Authenticate and perform CRUD operations via Odoo XML-RPC external API

domain: odoo · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Call authenticate on the endpoint /xmlrpc/2/common passing the database name, username, API key (not password in production), and an empty options dict; store the returned integer uid
  2. Use the uid on all subsequent calls to /xmlrpc/2/object via the execute_kw method: pass (db, uid, api_key, model_name, method_name, positional_args_list, keyword_args_dict)
  3. To read records: call execute_kw with method 'search_read', a domain filter list as positional args, and {'fields': [...], 'limit': N} as kwargs
  4. To create: method 'create' with a dict of field values; to write: method 'write' with ([id_list], {field: value}); to delete: method 'unlink' with ([id_list],)
  5. Switch to JSON-RPC (/web/dataset/call_kw) for new integrations — the payload structure is analogous but uses JSON; JSON-RPC is the preferred path in Odoo 17+ documentation

Known gotchas

Related routes

Perform record CRUD via Odoo external API (XML-RPC or JSON-RPC)
Odoo External API · 5 steps · unrated
authenticate to odoo's external xml-rpc api using an api key instead of a password
odoo.com/documentation · 5 steps · unrated
migrate an odoo integration from the legacy xml-rpc/json-rpc api to the external json-2 api
odoo.com/documentation · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans