Pipedrive API: Error 401 Invalid token too often

Martin Krajčír
Martin Krajčír Member Posts: 11 VERIFIED MEMBER
Second Anniversary 5 Up Votes Name Dropper First Comment

I try to integrate Pipedrive with Zapier to run my own Automation.

I use following API https://api.pipedrive.com/v1/filters unfortunately I got many times response:

success: false

error: Invalid token: access token is invalid

errorCode: 401

error_info: Please check developers.pipedrive.com

But sometimes I got OK response and everything works fine. Why sometimes Pipedrive API not working?

Answers

  • Manuel Oliveira
    Manuel Oliveira Admin Posts: 1,368 COMMUNITY MANAGER
    1000 Comments 250 Likes 25 Answers Third Anniversary

    Hi @Martin Krajčír , there could be a few reasons for that, such as the API request being outside the scope your app asked permission for. For more details on that, please have a look in the documentation here from our developers' corner.

  • Martin Krajčír
    Martin Krajčír Member Posts: 11 VERIFIED MEMBER
    Second Anniversary 5 Up Votes Name Dropper First Comment

    Hi @Manuel Oliveira I absolutely have no idea what I have to do 🙄

    I have authenticated Zapier on Pipedrive side.

    I have authenticated Pipedrive on Zapier side.

    Test works fine and sometimes also the whole integration works fine, but sometimes it fail on error: access token is invalid.

  • Leonardo Zimmermann
    Leonardo Zimmermann Pipedrive Team Posts: 159 PIPEDRIVE TEAM
    Third Anniversary 100 Comments 5 Answers 5 Likes

    Hey, @Martin Krajčír!

    There are a few different possibilities here. You could, for example, be running a filter through that endpoint for which your user's key do not have access - but this is just a conjecture.

    Bottom line in this case is that this situation needs further investigation, since the information we have so far is not enough for us to reach a conclusion. For that reason, I kindly ask you to please reach out to our support so that this can be tackled further.

    Thank you.

  • tenzinc
    tenzinc Member Posts: 2 NEW MEMBER
    First Comment

    We did a token refresh and it still gave us invalid access token error

    {
    	"success": false,
    	"error": "Invalid token: access token is invalid",
    	"errorCode": 401,
    	"error_info": "Please check developers.pipedrive.com"
    }
    

  • Manuel Oliveira
    Manuel Oliveira Admin Posts: 1,368 COMMUNITY MANAGER
    1000 Comments 250 Likes 25 Answers Third Anniversary
    edited January 27 #6

    Hi @tenzinc have you checked that the token belongs to an active user, that a more recent token hasn’t since been generated, and that the user has the necessary permissions for the request?
    If you’ve checked these steps and the 401 error code persists, please contact our friendly neighborhood support team, and they’ll assist you further.