Overview
Maton connects to Odoo with an API key that you create in your Odoo preferences, and calls Odoo's JSON-2 API as your user. It works with Odoo Online (*.odoo.com), Odoo.sh and Odoo servers you run yourself, as long as Maton can reach the server.
What You'll Need
- Odoo 19 or later. Earlier versions don't have the JSON-2 API.
- On Odoo Online, a Custom plan. Odoo doesn't offer external API access on the One App Free or Standard plans.
- A server reachable on the public internet over HTTPS. Maton doesn't connect to private or local addresses.
- An Odoo user whose access rights cover what Maton should do. The key acts as that user.
Step 1: Find Your Odoo URL
Sign in to Odoo and look at your browser's address bar. Your Odoo URL is the domain between https:// and the next /: for https://mycompany.odoo.com/odoo/contacts it is mycompany.odoo.com. Use the domain your server is reachable at on the internet, not an IP address or a port.
Step 2: Find Your Database (Only for Servers With Several Databases)
Skip this step on Odoo Online and Odoo.sh, and on any server that picks the database from its domain. If your server shows a database selector when you sign in, you need the database name:
- Turn on developer mode: in Settings, click "Activate the developer mode", or add
?debug=1to the address, as inhttps://erp.example.com/odoo?debug=1. - The database name appears under your name in the top-right corner.

Step 3: Create an API Key
- Click your avatar in the top-right corner, choose "My Preferences" and open the "Security" tab. Under API Keys, click "Add API Key", then enter your Odoo password when Odoo asks you to confirm it's you.
- Name the key, such as Maton, and choose how long it lasts. Which durations you can pick depends on your access rights. Note the date the key ends: Maton's calls stop working then, until you connect a new key. Click "Generate key".
- Copy the key. Odoo shows it only once, so keep this window open until you've connected.



Step 4: Connect Odoo
- Go to the Connections page, click "Add Connection", find Odoo and click "+ Connect". With the Maton CLI, run
maton connection create odooinstead; it opens the same form. - Enter the Odoo URL from Step 1 (without
https://), the Database from Step 2 if you needed it, the date the key ends under Key expiration date (optional, asYYYY-MM-DD) and the API Key from Step 3, then click "Connect". - Maton checks the key by reading your Odoo user. When it's accepted you'll see "Success", and the connection appears as active on the Connections page with your database and login.

Troubleshooting
- The key is rejected: check that you copied the whole key and that it hasn't expired or been deleted under My Preferences > Security. On a server with several databases, also check the database name.
- The Odoo URL isn't accepted: enter only the domain, such as
erp.example.com, withouthttps://, a path or a port. Maton refuses IP addresses and names that point to private networks. - Maton can't reach the server: the domain must resolve to a public address and serve HTTPS on port 443. Servers only reachable on an office network or VPN can't be connected.
- Calls return "not found" for every model: the server runs a version before Odoo 19, which has no JSON-2 API.
- Calls are denied: your Odoo user's access rights don't allow that action. Change the user's rights in Odoo, or connect a key from a user who has them.
Keeping Your Odoo Data Safe
An API key can do everything its user can, so consider a dedicated Odoo user with only the access rights Maton needs. You can delete the key at any time under My Preferences > Security in Odoo; the Maton connection stops working once you do. Deleting the connection in Maton removes the stored key.