You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use postman to test API calls to Pardot but keep getting this error from the title.
Full Error:
{
"@attributes": {
"stat": "fail",
"version": 1,
"err_code": 49
},
"err": "Access Denied"
}
I am able to successfully get an API key from a post call in Postman, but cannot query the data.
An example of how to do this now if the tool is using CURL:
curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array("Authorization: Pardot api_key={<api_key>}, user_key={<user_key>}"));
Activity
creuzerm commentedon May 15, 2019
You are using GET parameters along with the AUTH variables.
This is the new correct behavior of the API by the Pardot server under the new AUTH requirements to my understanding.
http://developer.pardot.com/#using-the-api
An example of how to do this now if the tool is using CURL:
curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array("Authorization: Pardot api_key={<api_key>}, user_key={<user_key>}"));