API: Authorisation
Table of Contents
If the user has a setup with a token that does not expire, please skip to Token Based access Setup below.
ENAPPS ERP API utilises token based authentication for all requests. Tokens as standard have a 24h validity. To obtain a token, the auth method below must be called with Login, Password and Bearer Secret Key as per below:
Authorisation request | ||
URL | https://company.erp.zone:4095/api/v1/auth | |
Method | POST | |
HEADER | Key | Authorization |
Value | Bearer YOUR_SECRET_KEY_HERE | |
Example | ![]() |
|
Body | login | your_login |
password | your_password | |
Example | ![]() |
Token-based access setup
The returned access token from the above API call can then be used with all other standard API requests as below
Token-based access | ||
URL | https://company.erp.zone:4095/api/v1/product/get_basic | |
HEADER | Key | Authorization |
Value | Bearer YOUR_ACCESS_TOKEN_HERE | |
Example | ![]() |