# npm Hooks API

**Canonical:** https://apis.io/apis/npm/hooks/  
**Provider:** npm — https://apis.io/providers/npm/  
**Documentation:** https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm

npm Hooks API is one of 10 APIs that [npm](https://apis.io/providers/npm/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification. This API exposes 1 JSON Schema definition. Tagged areas include Webhook, Notification, Event, Automation, and Packages. The published artifact set on APIs.io includes API documentation, an OpenAPI specification, an AsyncAPI specification, and 1 JSON Schema.

The npm Hooks API allows developers to subscribe to notifications about changes in the npm registry. Hooks send HTTP POST payloads to a configured URI whenever a package is changed, enabling developers to build integrations that respond to registry events in real time. Users can add hooks to follow specific packages, track all activity of given npm users, or monitor all packages within an organization or user scope. The API provides endpoints for creating, listing, updating, and deleting hook subscriptions.

## Machine-readable artifacts (4)

- **Documentation** — https://blog.npmjs.org/post/145260155635/introducing-hooks-get-notifications-of-npm
- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/npm/refs/heads/main/openapi/npm-hooks-api-openapi.yml
- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/npm/refs/heads/main/asyncapi/npm-hooks-asyncapi.yml
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/npm/refs/heads/main/json-schema/npm-hook-event-schema.json

## Other npm APIs (9)

- [npm Registry API](https://apis.io/apis/npm/registry/)
- [npm CLI](https://apis.io/apis/npm/cli/)
- [npm Provenance](https://apis.io/apis/npm/provenance/)
- [npm Downloads API](https://apis.io/apis/npm/npm-downloads-api/)
- [npm OIDC API](https://apis.io/apis/npm/npm-oidc-api/)
- [npm Packages API](https://apis.io/apis/npm/npm-packages-api/)
- [npm Search API](https://apis.io/apis/npm/npm-search-api/)
- [npm Tokens API](https://apis.io/apis/npm/npm-tokens-api/)
- [npm Trusted Publishers API](https://apis.io/apis/npm/npm-trusted-publishers-api/)

## Tags

Webhook, Notification, Event, Automation, Packages

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/npm/hooks/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/npm/.
