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.
# 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'
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.