Overview
To authenticate with Odoo’s JSON-2 API, you will need:- Domain - The domain of your Odoo instance.
- Database Name (optional) - Only needed if your server hosts multiple databases.
- API Key - A personal API key generated from your Odoo account.
Prerequisites:
- You must have an Odoo account with access to Preferences > Account Security.
Instructions:
Step 1: Finding your Odoo domain
- Log in to your Odoo instance.
- Check the URL in your browser’s address bar — for Odoo Online this typically looks like
https://mycompany.odoo.com; for a self-hosted instance it’s whatever domain you access Odoo through (e.g.mycompany.example.com). - Your Domain is that hostname, without the
https://prefix.
Step 2: Finding your database name (if applicable)
Most Odoo Online instances only host a single database and don’t need this. If your server hosts multiple databases (common for self-hosted or multi-tenant deployments), find the database name shown in the Odoo database selection screen, or ask your Odoo administrator.Step 3: Generating an API key
- In Odoo, click your profile picture in the top right, go to My Preferences, then open the Security tab.

- Click Add API Key.

- Enter a Name, leave the scope as RPC, and select a longer duration so the key doesn’t expire too frequently.
- Click Generate Key. Your key is generated and shown once — copy it now, since you won’t be able to see it again.
Step 4: Enter credentials in the Connect UI
Once you have your Domain, Database Name (if applicable), and API Key:- Open the Odoo (API Key) connection form in Nango.
- Enter each value in its respective field.
- Submit the form, and you should be successfully authenticated.
