HostWebhook Help Center

Connect Odoo to your flows

Connect your Odoo database with an API key, add and update contacts, opportunities, quotations and tasks, find records, start a flow when a record is created or changes, and let an AI node read your Odoo.

Time about 11 minutesYou need a HostWebhook account and an Odoo database with the API (on Odoo Online, the Custom plan)Updated November 26, 2026

Connect your Odoo database once, then let flows add and update contacts, opportunities, quotations and tasks, start when a record is created or changes, or let an AI node read your Odoo. It works with Odoo Online, Odoo.sh and a server of your own.

Create an API key in Odoo

You need Odoo 16, 17, 18, 19 or 20. On Odoo Online the API is only in the Custom plan, not in One App Free or Standard.

In Odoo 20, open the menu of your user › My Preferences › Security and click Create API Key. Give it a name, choose RPC in Scope if it asks for it (not MCP), choose how long it lasts in Expires and click Create Key. Copy the key right away: Odoo shows it only once.

In Odoo 16 to 19
  • 16, 17 and 18: Preferences › Account Security › New API Key.
  • 19: the preferences of your user › Security › Add API Key.

Better a user of its own than yours: the key can do what its user can do, so give it only what the flow needs. Odoo counts it as a paid user.

A key can expire.

In Odoo 16 and 17 it doesn't. From Odoo 18 on you choose how long it lasts: most users, up to 3 months in 18 and 19, and up to 1 month in 20; an administrator, up to 1 year or with no end date. HostWebhook warns you before (step 08).

Don't use an administrator's key just because it lasts longer: it can do anything in that Odoo. A user with fewer permissions is safer.

Connect your Odoo

In HostWebhook, go to Settings › Credentials › New credential and pick Odoo. Fill in the card and click Save Odoo connection: HostWebhook signs in to your Odoo to check it.

  1. Marker 1: Address, where you open Odoo. Only the address, without what comes after it.
  2. Marker 2: Database, its name. In Odoo Online it is usually the first part of the address.
  3. Marker 3: API key, the one you copied. It is stored encrypted, and it comes back to the panel only in Edit keys and settings, after you verify it's you, and only for a person who can see it.
  4. Marker 4: User, only for Odoo 16 to 18: the email you sign in with.
The New credential form for Odoo with the address, the database, the API key and the user
  1. Marker 1: Server certificate, only for a certificate of your own.
  2. Marker 2: Models of “Any model”, if you want to use other models than the ones of the node (step 05).
  3. Marker 3: Allow AI to write in this Odoo. Off, AI only reads. On, AI can add contacts, opportunities, tasks, notes and activities, and change a few fields.
  4. Marker 4: Save Odoo connection. If Odoo doesn't accept it, nothing is saved and the form says why.
The second half of the Odoo form with the server certificate, the models of Any model, Allow AI to write in this Odoo off and the Save button

One credential is one database and one user.

To use another database, add another credential.

If your Odoo is on a server of your own
  • On the internet, with a public certificate: nothing else to do.
  • With a certificate of your own: in Server certificate, paste its CA certificate or write its SHA-256 fingerprint.
  • On a private network: pick a tunnel in How do we reach it. Your agent connects from inside, so you open no ports. See the reverse tunnel. A plain http:// address only works that way.
If it asks which key it is

Your user has more than one API key in Odoo, and Odoo doesn't say which one you pasted. Pick the day it expires, It never expires (offered when one of those keys has no date), or I don't know: then HostWebhook can't warn you before.

If it says the key is of an administrator

That key can do anything in your Odoo. It works, but a user with fewer permissions is safer. The page of the credential keeps saying it.

Add an Odoo node and pick what it does

Add an Odoo node, pick your connection, Single operation and an operation, like Create or update contact, Create quotation or Create task. Operations that only read, like Search contacts or Get invoice, are in the same list.

  1. Marker 1: The connection: the database the node uses.
  2. Marker 2: The operation.
  3. Marker 3: The fields. Type a value, or a field of the event like {{payload.email}}: it shows as a chip. An empty field is not touched.
An Odoo node with its connection, the operation Create or update contact, and the name and the email as chips
All the operations
GroupOperations
ContactsCreate contact, Update contact, Create or update contact, Get contact, Search contacts
OpportunitiesCreate opportunity, Update opportunity, Get opportunity, Search opportunities, Mark opportunity as won or lost
SalesCreate quotation, Update quotation, Get quotation or order, Search quotations and orders
ProductsGet product, Search products
InvoicesGet invoice, Search invoices
TasksCreate task, Update task, Get task, Search tasks
ActivitiesSchedule activity, List activities
Notes and filesAdd internal note, Attach a file
Any modelSearch records of any model, Get record of any model, Create record of any model, Update record of any model

What each one does is in the Odoo page of the docs.

To give a task a deadline

A deadline without a time is noon of that day in the time zone of your Odoo user.

To attach a file

In Attach a file, File is a file of an earlier step, up to 10 MB: {{payload._file}}, or {{payload._files[0]._file}} for the first one that a webhook received. A link to a file on another site is refused.

It is your real Odoo.

Odoo can send emails or run its own automation rules when a record changes; HostWebhook can't see them. A quotation is created as a draft: nothing is sent or confirmed. Nothing is deleted.

Odoo Online and Odoo.sh take one call per second, so a long list takes its time. Put a Loop before the node for hundreds of records.

Use a model of your own

Optional

The four operations of Any model work with models that have no operations of their own, like one you made with Studio (its technical name starts with x_, and the ones of its fields, with x_studio_). First write the technical name in Models of “Any model”, on the connection: open the credential, click Edit keys and settings, verify it's you, add it there and click Save the new connection. HostWebhook checks the key with Odoo when it saves: if you can't see the key, paste one.

  1. Marker 1: Model: one of the models listed on the connection.
  2. Marker 2: Fields: what to bring of each record, by technical name.
An Odoo node with Search records of any model, the model and the fields to bring

Some models are never used.

The ones that write to people, move money or decide who has access, and the website and the employees. Accounting, inventory and calendar are only read.

Start a flow when a record is created or changes

Add a trigger and pick Odoo. Choose New record or New or updated record, what to watch, and click Activate. HostWebhook asks Odoo on a timer and sends each new or changed record once.

  1. Marker 1: Event Trigger: what fires it.
  2. Marker 2: What to watch: contacts, opportunities, quotations and orders, tasks, invoices and bills, or a model of yours.
  3. Marker 3: Ignore changes made by this connection, so that a flow that writes in Odoo doesn't start itself. If the key is of a person, their own changes by hand are skipped too.
  4. Marker 4: Check every, in seconds: every 5 minutes if you leave it empty, 15 on Free. Your plan sets the minimum.
An Odoo trigger with the event, what to watch, Ignore changes made by this connection on and how often it checks

It starts from when you turn it on: nothing older comes out. Archived records are seen; deleted ones are not, nor the steps between two checks.

Choose which records
  • Conditions: only the records that meet all of them. Their values are fixed: a trigger takes no {{ }}.
  • More fields: fields of yours to bring too. 60 in total, with the ones the record already brings.
  • Opportunities brings no leads, and Invoices and bills no other journal entries. For those, pick A model of yours with crm.lead or account.move (step 05).
Test it first

Test push brings the latest records that match what is saved, as the flow would get them, also before you activate the trigger. It doesn't start the flow. Finish every condition first: while one is half-written, the Odoo settings aren't saved, and the trigger can't be turned on or tested.

When it waits and when it stops
  • Your key expired, or your Odoo doesn't answer: the trigger waits and says so on its card. Nothing is lost: it goes on from where it was. After 7 days it turns off, and when you activate it again it still goes on from there and says from which day. Start again from now skips what happened before.
  • It turns off by itself, with the reason on its card, when waiting doesn't fix it: the user of the key can't read those records, the model is gone or is no longer on the list of the connection, a field of its conditions is gone… Fix it and activate it again: it goes on from where it was.
  • What you change in a trigger that is on is not used until you click Apply changes.
If you need the event right away

Odoo 17 and later can call the URL of a Webhook node the moment something happens:

  1. In HostWebhook, add a Webhook node and copy its URL.
  2. In Odoo, create an automation rule on the model with the action Send Webhook Notification, paste the URL and choose the fields.
  3. The flow gets them with _model, _id and _action.

Odoo waits one second for the answer and doesn't try again, so an event that doesn't arrive is lost. It is not signed either: keep the URL to yourself, and read the record again with the Odoo node.

Let an AI node use your Odoo

Set the node's mode to AI toolkit, and add the node to an AI node's tools or expose it as an MCP server. AI can read contacts, opportunities, products and tasks. Orders, invoices and everything that writes start blocked.

  1. Marker 1: Projects where AI can create tasks, in Settings. Only projects your customers don't see. With none, AI can't create tasks.
  2. Marker 2: Sales team, Salesperson, Who gets the tasks and Who gets the activities. You set them; AI can't.
The settings of an Odoo node in AI toolkit mode: the projects where AI can create tasks, the sales team and the people
  1. Marker 3: Block these tool calls: orders, invoices and everything that writes start blocked. Unblock only what the AI needs.
  2. Marker 4: The limits, under How it works: at most 10 changes per flow run and 200 a day per connection.
The same node further down: the limits, under How it works, and Block these tool calls, with 11 of 19 blocked
Let AI write
  1. Open the credential, click Edit keys and settings and verify it's you. If you can't see the key, paste one (a new one if you don't have it: Odoo shows it only once). Tick Allow AI to write in this Odoo and click Save the new connection.
  2. In the node, unblock the tools that write, under Block these tool calls. They carry the label Destructive, as in every toolkit, but none of them deletes anything.
  3. Pick the projects where AI can create tasks, if you want it to. In Odoo, a new project is open to the customers you invite, so at the start it can't be picked: open it in Odoo, go to Settings and set Visibility to All internal users. The customers invited to that project stop seeing it: if you share it, use another project for AI.

What AI never does.

Write quotations, change an order or an invoice, mark an opportunity as won or lost, change a task, use Any model, add files, or delete anything. In a contact that exists, it only changes the job position and adds tags.

Runs that Hermes or Claude start

When Hermes or the Claude connector starts a run, or an AI node calls the flow, every Odoo step of that run follows the same rules and the same limits, your own steps too.

The Claude connector hides an Odoo step and can't change it. It says: “This step may involve Odoo data, so it is hidden here. Change it in HostWebhook.”

If a voice agent calls a flow that has an Odoo step, that step runs as yours, and the agent hears what the last step returns.

The AI MCP server of Odoo is another thing

Odoo 20 has one of its own. It connects an AI client to your database without HostWebhook, so the blocks and the limits of this page don't apply to it, and a key made for it doesn't work here.

Each MCP call counts as one run, so with an MCP client the limit that stops it is the one of the day: 200 changes.

Reconnect when the key expires

From 14 days before, the credential says Key expires in 14 days, and so on until Key expired. When Odoo stops accepting the key, the credential says Needs reconnect and the steps that use it fail. Triggers wait, and go on from where they were once it has a new key.

Create a new key in Odoo, open the credential and click Edit keys and settings. Verify it's you, paste the key in API key and click Save the new connection. It is the same credential, so your nodes and triggers keep working.

  1. Marker 1: How long the key has left, here Key expired.
  2. Marker 2: Edit keys and settings, also in the Keys and settings card further down.
The page of an Odoo credential whose key expired, with Edit keys and settings at the top
  1. Marker 3: First you verify it's you, with your password, the code of your authenticator app or a code by email: here, the authentication code. It lasts 5 minutes and only covers this credential.
  2. Marker 4: Verify opens the form of the connection, with API key, Models of “Any model” and Allow AI to write in this Odoo. The address and the database stay the same. If Odoo doesn't accept the key, nothing changes and the form says why.
The Verify it's you window over the credential, with the authentication code, Cancel and Verify

If you can see the keys of the credential, the form comes with the key it has. If not, the key box comes empty: paste the new one, also when you only want to change something else, because HostWebhook checks the key with Odoo every time it saves.

If the credential is sensitive

It doesn't show what it had, so it asks for everything again: the address and the database (the same ones), how the certificate is checked, the models, and whether AI may write. Its badge says Key expires in 14 days or less.

Deleting a credential doesn't delete the key.

Delete it in Odoo too, in the same place where you created it.

Troubleshooting

Odoo did not accept the API key: it may have expired. Create a new one in Odoo and paste it in Edit keys and settings (step 08). In Odoo 20, its Scope has to be RPC.

There is no Odoo with that database at that address. Check the address and the name of the database. In Odoo Online the database is usually the first part of the address.

The user of this connection does not have permission for that in Odoo. Give that permission to the user of the key, in Odoo.

This Odoo does not have the app for that. Opportunities need CRM, quotations need Sales, invoices need Invoicing and tasks need Project.

The certificate of your Odoo was rejected. Your server has a certificate of its own. Paste its CA certificate or its fingerprint in Edit keys and settings (step 02).

Other flows are using this Odoo right now. Try again in a moment. Odoo Online and Odoo.sh take one call per second, and this one waited too long.

This Odoo takes one call per second: about 738 items fit in one step. The list is too long for one step, so nothing was sent. Put a Loop before the node or send fewer records.

The connection was lost, so the record may have been created. The answer of Odoo did not arrive. Look in Odoo before you run it again.

Customers can see it. In Odoo, a new project is open to the customers you invite, and AI doesn't create tasks there. Open the project in Odoo, go to Settings and set Visibility to All internal users. Team members only works too (Invited internal users before Odoo 20), with the user of the key in that project. The customers invited to that project stop seeing it, and changing it back doesn't invite them all again: if you share it, use another project for AI.

That is not one of the models of this connection. Add it to Models of “Any model” in Edit keys and settings (step 05).

File is required. The step before left no file where you look for it. After a webhook, use {{payload._files[0]._file}} (step 03).

Odoo is a trademark of Odoo S.A. HostWebhook is not affiliated with, sponsored or endorsed by Odoo S.A.