Skip to content

Get a policy pack with its entries

GET
/api/v1/policy/{registry_type}/packs/{slug}
curl --request GET \
--url https://api.pkgplease.com/api/v1/policy/example/packs/example \
--header 'Authorization: Bearer <token>'
registry_type
required
string

One of the org's configured registry types (npm is the one in active use).

slug
required
string

Pack with entries

Media typeapplication/json
object
Examplegenerated
{}

Policy pack not found

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}