Digileaper Api Documentation
How to Generate and Use the OAuth2 Bearer Token
1. Navigate to the APIs Section
At the top-right corner, next to the Home tab, click on the APIs tab.
You will see a list of available APIs.
2. Generate the Token
In the API list, locate the Token Service API under the Name column
— or simply search for it using the search bar.Click on Token Service API to open its details.
Under the Operations section, select POST – Generate OAuth2 Bearer Token.
The right panel will display operation details.
Click Try this operation. A new panel will slide in from the right.
Go to the Headers tab click on +Add Header
Add a new entry with Key (left box): "Content-Type" and Value (right box): "application/json".
Go to the Body tab and select Raw.
Paste the following JSON and replace it with your actual credentials
(keep these values strictly confidential):
{"client_id": "<your-client-id>","secret": "<your-secret>" }Scroll down and click Send.
In the response section, at the bottom, you will find:
"Bearer <token>"Copy this token (keep it confidential).
Close the panel using the X button at the top right.
3. Using the Bearer Token in Other API Calls
Go to any other API and choose the operation you want to execute.
Click Try this operation.
Select + Add Header.
In the header fields:
Key:
AuthorizationValue: Paste the Bearer Token you copied earlier.
4. Sending Data in Save/Update Operations
For all Save and Update operations:
Go to the Body tab.
Select Raw.
Enter your request payload in JSON format, for example:
[{"firstName": "John","lastName": "Doe","jobTitle": "Software Engineer","contactType": "External","email": "john.doe@example.com","phone": "+919876543210","organisationName": "Digileaper","unitName": "IT","location": "Chennai","employementStatus": "active","note": "marketing agent","startDate": "01-01-2025","endDate": "01-01-2026","deleted": false},{"firstName": "David","lastName": "Doe","jobTitle": "Software Engineer","contactType": "Internal","email": "david.doe@example.com","phone": "+919876543210","organisationName": "Techaffinity","unitName": "IT","location": "Chennai","employementStatus": "active","note": "very important contact","startDate": "01-01-2025","endDate": "01-01-2026","deleted": false} ]5. For List Operations
No request body is required.