Accessing alllocationpolicy Data

I am trying to get the data from the LocationPolicySummary, but I cannot seem to get the past policies. I am using the following code, but I get a Missing Authentication Token. How should I access it? Thank you!

policies = c3aidatalake.fetch(
“alllocationpolicy”,
{
“spec”: {

    }
}

)

policies

Hi @matthewfan2022, you can see an example of how to access AllVersionsForPolicy in the Quickstart notebooks.

To fetch LocationPolicySummary objects:

policy_united_states = c3aidatalake.fetch(
  "locationpolicysummary",
  {
      "spec" : {
          "filter" : "contains(location.id, 'UnitedStates')",
          "limit" : -1
      }
  }
)

policy_united_states

Use the AllVersionsForPolicy API of LocationPolicySummary to access historical and current versions of a policy.

versions = c3aidatalake.read_data_json(
    "locationpolicysummary",
    "allversionsforpolicy",
    {
        "this" : {
            "id" : "Wisconsin_UnitedStates_Policy"
        }
    }
)

pd.json_normalize(versions)