Back to Top

User Manual of Odoo REST API

Updated 9 May 2025

Introduction

Odoo REST API offers secure access to application resources through user authentication tokens. These tokens can be generated using Base64-encoded credentials in tools like Postman. 

Odoo REST API allows you to define specific access rights and privileges for each user or API key. Responses can be formatted in either JSON or XML, based on user preference.

Additionally, users can retrieve database table schemas through this API.

Features

  1. Protect your API using secure tokens, verifying user identity before allowing access.
  2. User can set the API validity and Throttling limit for an API.
  3. Easily create authentication tokens from the user’s profile without extra setup.
  4.  Test your API endpoints directly in the browser using Open API tools for quick validation.
  5. Create API keys with defined rules and limits to control what data or actions are allowed.
  6.  Perform all key operations like retrieving, creating, updating, or deleting data using standard HTTP methods.
  7.  Select your preferred output format for API responses — either JSON or XML — for smooth integration.
  8.  Use the API to check and access your database’s table structure when needed.
  9.  Secure your login and token process by encoding credentials in Base64 format.
  10. One API key can be used safely across different users while still maintaining security.
  11.  Receive clear messages about permission issues or access limits directly in the API response.

Installation

1. Once you purchase the App from Webkul store, you will receive the link to download the zip file of the module.

2. Extract the file on your system after the download finishes. You will be able to see a folder named- ‘odoo_REST.’

Searching for an experienced
Odoo Company ?
Find out More

3. Copy and paste this folder inside your Odoo Add-Ons path.

4. Now, open Odoo App and click on the Settings menu. Here, click on Activate Developer Mode.

5. Then, open the Apps menu and click on ‘Update Modules List.’

6. In the search bar, remove all the filters and search ‘odoo_REST.’

7. You will be able to see the module in the search results. Click on ‘Install’ to install it

Workflow

Under Settings >> Technical menu >> Web Service Account

1. Now, generate an API Secret Key and enable User Authentication.  Also, select ‘Available for’ option. By enabling Advanced Feature, users can set APIs Validity and Throatling Limits.

Next, generate an API Secret Key, along with enabling ‘User Authentication’. Also, select the ‘Available for’ option.

Generate API keys

2. Select ‘users’ under ‘Users & Companies.’ >>  Choose ‘API Key’ and click ‘Generate Token’ button to create a token for that specific API within User Authentication’ tab.

Generate token  with user authentications

3. After that, move back to API key  >> User icon/option. This will open a list of users, and their user authentication token will be shown next to their User ID.

Manage API tokens

5. You can also configure the API key for specific access. Choose the ‘Specific Resources’ option in the ‘Available for’ option, and configure them.

You can also perform User Authentication from Open API.

All you do is encode the login credentials from Base64 in the given format and follow the screenshot instructions.   {‘login’:’admin’,’ password’:’admin’}.

Encode your credentials

6. The user can also access REST API Documents Settings>> Technical>> REST API Documents

Access OPEN API doc

7. Generate a token with OPEN API

Go to Technical >> REST API Documents

Generate a token with OPEN API

8. Then navigate to Open API >> /api/generate_token

Click on Tryout, and enter your API Key and Token for authentication

Enter API key and token

9. Token Generated Successfully.

Token generated

Need Help?

We hope this guide has been helpful. Share your feedback in the comments section below.

For any issues or further inquiries, please raise a ticket on UV Desk or contact our support team via email.

Thank you for choosing us, and we’re here to assist you further!

Current Product Version - 1.0.0

Supported Framework Version - Odoo V11 , V12, V13, V14, V15, V16 , V17, V18

Blog Version - Odoo V11 , V12, V13, V14, V15, V16 , V17, V18
  • Version Odoo V11 , V12, V13, V14, V15, V16 , V17, V18
  • Version Odoo 16, 15, 14
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


2 comments

  • A. Essam
    • Sakshi Attri (Moderator)
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home