How to generate API Token without using Client Id and Client secret

  1. Call Pipedrive API

After capturing the call disposition, make an API call to Pipedrive CRM to update the corresponding contact or lead record with the new disposition.


// Example: Assume you have the contact ID and API token

var contactId = '12345';
var apiToken = 'your-api-token';
var apiUrl = '';

// Make API call to update call disposition
    url: apiUrl + 'activities',
    type: 'POST',
    data: {
        api_token: apiToken,
        subject: 'Call',
        type: 'call',
        person_id: contactId,
        note: 'Call disposition: ' + disposition
    success: function(response) {
        console.log('Call disposition updated successfully:', response);
        // Handle success
    error: function(xhr, status, error) {
        console.error('Error updating call disposition:', error);
        // Handle error

* How to Generate API Token by using Oauth API I tried by Using Pipedrive CRM APIToken but getting 401 Unauthorized Error or If I generate Access Token by using Package client id and client secret at that time also getting same error.