πInventory export API
List your P0 environments and export their access inventory as JSON. Pull credentials, identities, grants, and resources programmatically for custom integrations.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.p0.app/o/{orgId}/assessmentThe environments in the organization.
The caller could not be authenticated.
The caller is authenticated but lacks the required assessment.read permission.
The environment ID returned by the list endpoint. An environment ID is also its assessment ID.
The environment's inventory, grouped by entity type.
The caller could not be authenticated.
The caller is authenticated but lacks the required assessment.read permission.
No environment matches the given ID.
The environment has no completed assessment to export.
Too many inventory exports are in progress. Back off and retry shortly.
Response notes
Example export request
Related
Last updated