Iker Lissarrague
04/16/2026, 9:51 AMv2/api-key endpoint
{
...
"object_type": "env",
"access_level": "read",
"owner_type": "pdp_config"
}
it works fine and I get an api key
however, if I try to use it on the /v2/pdps/me/config it returns an error with a message: "The requested data could not be found, we could not find 'pdpconfig' with the given filters: ..."
am I doing something wrong?Ask Inkeep
04/16/2026, 9:51 AMAsk Inkeep
04/16/2026, 9:51 AMowner_type: "pdp_config", the system expects this API key to be associated with an *existing PDP configuration* (1) . The /v2/pdps/me/config endpoint is specifically designed to get configuration for an *already authenticated PDP container* (2) .
When you manually create an API key via the /v2/api-key endpoint with owner_type: "pdp_config", you're creating the key but not the underlying PDP config record that it should be linked to. This is why you're getting the "could not find 'pdpconfig'" error.
The typical flow is:
1. First, a PDP configuration gets created (this happens automatically when you deploy a PDP container or can be managed through the PDP configs endpoints) (3)
2. That PDP config has an associated API key generated for it (4)
3. The PDP uses that API key to authenticate and fetch its configuration via /v2/pdps/me/config (2)
To resolve this, you should either:
• Use the environment-level API key instead (get it via /v2/api-key/{proj_id}/{env_id}) (5) , which doesn't require a PDP config association
• Or create the API key through the proper PDP confAsk Inkeep
04/16/2026, 9:51 AMdavid
04/16/2026, 10:22 AMAsk Inkeep
04/16/2026, 3:02 PMIker Lissarrague
04/16/2026, 7:45 PMThe typical flow is:
1. First, a PDP configuration gets created (this happens automatically when you deploy a PDP container or can be managed through the PDP configs endpoints) (3)
2. That PDP config has an associated API key generated for it (4)
3. The PDP uses that API key to authenticate and fetch its configuration viaI'm having some trouble understanding this, isn't it necessary to pass in a(2)/v2/pdps/me/config
PDP_API_KEY to even get the PDP container running?permit support automation2
04/16/2026, 7:45 PMEli Moshkovich
04/16/2026, 8:19 PM/v2/pdps/me/config only works with an API key that has the right permissions to back a PDP. The key you created has "access_level": "read", which doesn't qualify — that's why you're getting the "pdpconfig not found" error. You also don't need to set owner_type yourself; the system handles that for you.
To get a working PDP key, either:
1. Grab the environment API key from the Permit dashboard (Projects → Environments → API Key) — simplest option.
2. Or create one via API with:
{
"organization_id": "...",
"project_id": "...",
"environment_id": "...",
"object_type": "env",
"access_level": "write"
}
Either of those will work as your PDP_API_KEY when running the PDP container.
Hope that clears it up!