Unauthorized access. ErrorCode: 401

Hi,
I’m getting 401(Unauthorized access) error everytime trying to make POST-request with PHP to add person(for example) even using your example from documentation - https://support.pipedrive.com/hc/en-us/articles/206679239-Creating-a-deal-using-the-REST-API-and-PHP-full-working-example-code- using my API key which is works when I try to make curl request with terminal.
Any thoughts?

That’s a bit of an older article, could you take a look at this one instead and see if you’re running into the same problem?

1 Like

@David thanks! this one works. Can be closed.