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.

javascript

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

var contactId = '12345';
var apiToken = 'your-api-token';
var apiUrl = 'https://api.pipedrive.com/v1/';

// Make API call to update call disposition
$.ajax({
    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.

Hi! The API token cannot be generated programmatically. It can be obtained only manually from the Pipedrive app: How to find the API token

The alternative is OAuth, which you can learn more about here: OAuth 2.0 overview