Skip to content

"err_code": 49 "err": "Access Denied" #181

Open

Description

@ndlang

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.

URL:
https://pi.pardot.com/api/list/version/3/do/query?user_key=<user_key>&api_key=<api_key>&format=json&fields=created_at,id,name,updated_at&id_greater_than=0&sort_by=id&sort_order=ascending

Activity

  1. creuzerm commented on May 15, 2019

    @creuzerm

    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>}"));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions