npm · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for npm Public Tokens API

5 actions 5 updates phrasing extends openapi/npm-tokens-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for npm's API. It is a proposal applied on top of the contract, not a document npm publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 5

$.info
$.paths['/-/npm/v1/tokens'].get
$.paths['/-/npm/v1/tokens'].post
$.paths['/-/npm/v1/tokens/token/{token_id}'].delete
$.paths['/-/npm/v1/tokens/token/{token}'].delete

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for npm Public Tokens API
  version: 1.0.0
extends: openapi/npm-tokens-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-22'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 4
- target: $.paths['/-/npm/v1/tokens'].get
  update:
    x-apievangelist-phrasing:
      intent: List my npm access tokens
      effect: read
      questions:
      - Which npm access tokens have I created?
      - Can I see the scopes of my tokens?
      instructions:
      - text: List my npm access tokens.
      - text: Show page {page} of my tokens, {perPage} per page.
        slots:
          page: query.page
          perPage: query.perPage
      method: generated
      generated: '2026-11-22'
- target: $.paths['/-/npm/v1/tokens'].post
  update:
    x-apievangelist-phrasing:
      intent: Create an npm access token
      effect: write
      questions:
      - How do I generate a short-lived npm token for CI/CD?
      - Can I restrict a new token to certain scopes and IP ranges?
      instructions:
      - text: Create an npm access token with password {password}.
        slots:
          password: requestBody.password
      - text: Create a read-only token {readonly} with password {password}.
        slots:
          readonly: requestBody.readonly
          password: requestBody.password
      - text: Create an automation token {automation} for publishing from {cidr_whitelist}, password {password}.
        slots:
          automation: requestBody.automation
          cidr_whitelist: requestBody.cidr_whitelist
          password: requestBody.password
      method: generated
      generated: '2026-11-22'
- target: $.paths['/-/npm/v1/tokens/token/{token_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete an npm token by its ID
      effect: destructive
      questions:
      - How do I revoke an npm token using its UUID?
      - Can I delete a token by its key hash?
      instructions:
      - text: Delete npm token {token_id}.
        slots:
          token_id: path.token_id
      - text: Revoke token {token_id} with OTP {otp}.
        slots:
          token_id: path.token_id
          otp: header.npm-otp
      method: generated
      generated: '2026-11-22'
- target: $.paths['/-/npm/v1/tokens/token/{token}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Revoke an npm access token by UUID or npm_ value
      effect: destructive
      questions:
      - How do I permanently revoke an npm access token I no longer need?
      - Can I delete a token using the npm_ string itself instead of an ID?
      - Does deleting an npm token require a 2FA one-time password?
      instructions:
      - text: Permanently remove the npm access token identified by {token}.
        slots:
          token: path.token
      - text: Revoke the npm token {token} using one-time password {otp}.
        slots:
          token: path.token
          otp: header.npm-otp
      - text: Delete the npm token {token} through the web authentication flow, auth type {auth_type}.
        slots:
          token: path.token
          auth_type: header.npm-auth-type
      method: generated
      generated: '2026-11-22'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/npm-tokens-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.