Hanzo
OpenapiRegistry

Packages lists the org's npm packages — `<org>` and `@<org>/…` — from the npm…

Packages lists the org's npm packages — `<org>` and `@<org>/…` — from the npm registry's search index, optionally narrowed by a query within that scope.

GET /v1/registry/packages

Addresshttps://api.hanzo.ai/v1/registry/packages
MethodGET
Operationget_registry_packages
AuthAuthorization: Bearer $HANZO_API_KEY

Packages lists the org's npm packages — <org> and @<org>/… — from the npm registry's search index, optionally narrowed by a query within that scope. The org boundary is applied server-side after the search, so a query can never widen it.

Request

1 field.

FieldInTypeRequiredDescription
queryquerystringQuery narrows the listing within the org's scope when present; the org boundary itself is never widened by it.

Response

StatusBodyMeaning
200registryPackageListok

200 body — 5 fields.

FieldInTypeAlwaysDescription
databodyregistryPackage[]Data is the packages in the org's scope.
data[].descriptionbodystringDescription says what the package is, as published.
data[].namebodystringName is the package name (&lt;org&gt; or @&lt;org&gt;/…).
data[].updatedbodystringUpdated is when the package last changed, as the registry reports it.
data[].versionbodystringVersion is the latest published version.

Failure carries the platform error shape — see Errors.

Examples

hanzo registry packages

Registry API · All Hanzo APIs · Interactive reference

How is this guide?

On this page