API Connector Hub
One place to keep API logins, see every request your connectors send, retry the ones that failed and receive signed webhooks. Payment, shipping and cloud add-ons build on it.
| Odoo | 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | Discuss (mail) |
| Licence | OPL-1, 40 EUR |
| Tests | 15 automated, run on every version |
| Module | api_ |
The situation
Each connector module (a payment gateway, a carrier, a cloud drive) ships its own API key field, its own token refresh, its own try/except around requests and its own log, or none. When the carrier returns 503 on Friday evening, the label is simply not created and nobody knows until Monday. Webhooks from the gateway are checked in one module and not checked in the next.
API Connector Hub holds that plumbing once. A connection stores the base URL, the login and the retry rules. Code calls connection.request(...) and gets a dict back, while the hub writes a log line with secrets hidden, schedules a retry when the service is busy and stops when it is not worth trying again. Incoming webhooks get a secret URL, a signature check and a server action.
What it adds
Getting started
Open Apps, clear the Apps filter, search for API Connector Hub and click Activate. It needs only Discuss, which every Odoo has. Only administrators (Settings access) see the API Hub menu.
Apps › api_connector_hub › Activate
Create a connection: name, a short code such as pay_live, the Base URL and the login. Press Test Connection. Retry rules, timeout, SSL verification and default headers are on the Requests tab. Developers call it from Python: env['api.connection'].get_connection('pay_live').request('POST', '/charges', json={...}, reference='S00042').
API Hub › Connections
Open Request Log to see what was sent, filter on Failed or Waiting to Retry, and open a line to read the masked request and the response. For webhooks, create an endpoint, copy its URL into the other service, enter the signing secret and pick the server action to run.
Fine print
Log
Can it sit under the connector we need?
Tell us which service you want to connect and we will say how it fits the hub.
Email odoo.expert.111@gmail.com
Also by Awins
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module