ProtectedaccountProtected OptionalappProtectedcurrentProtectedenvironmentProtectedenvironmentProtectedheliconeProtectednvmProtectedreturnProtectedschemeProtected OptionalversionStatica2aStatic A2A helpers and utilities. Example: Payments.a2a.buildPaymentAgentCard(...)
Exposes A2A server and client registry methods. The client registry is initialized only if getClient is called.
Gets (or creates) a RegisteredPaymentsClient for the given alias. The registry is initialized only on first use.
Starts the A2A server with payment integration.
Returns the Delegation API for listing enrolled payment methods.
The instance is lazily initialized on first access — the current
organization pin (set via setOrganizationId or the constructor
option) is forwarded so the first call carries the right
X-Current-Org-Id header.
Returns the MCP integration API. The instance is memoized so that configuration
set via configure({ agentId, serverName }) persists across calls.
It returns the account address associated with the NVM API Key used to initialize the Payments Library instance.
The account address extracted from the NVM API Key
ProtectedgetInternalReturns the HTTP options required to query the backend.
HTTP method.
Optionalbody: anyOptional request body.
OptionalextraHeaders: Record<string, string>Optional per-call header overrides. Use
{ 'X-Current-Org-Id': orgId } to target a specific workspace for
one call without mutating the instance-level pin.
HTTP options object.
Returns the environment name used to initialize the Payments instance.
The environment name (e.g. 'sandbox', 'live')
Returns the current organization context applied to every authenticated
backend request via the X-Current-Org-Id header.
null means "no pinned workspace" — the backend falls back to the
caller's API-key tag or most-recent active membership.
ProtectedgetInternalGet HTTP options for public backend requests (no authorization header). Converts body keys from snake_case to camelCase for consistency.
HTTP method
Optionalbody: anyOptional request body (keys will be converted to camelCase)
HTTP options object
ProtectedparsePins (or clears) the active organization workspace used by every
subsequent authenticated request. The SDK forwards the choice as the
X-Current-Org-Id header so the backend scopes publications and
other org-aware queries to the requested organization.
Pass null to clear the pin and let the backend fall back to the
API key's org tag or the caller's most-recent active membership.
For one-off targeting (e.g. publish a single agent into Org B without
leaving Org B as the active workspace) prefer the per-call
{ organizationId } option on agents.registerAgent /
plans.registerPlan / similar.
Org ID to pin (e.g. org-…) or null to clear.
StaticgetGet an instance of the Payments class for browser usage.
The options to initialize the payments class.
An instance of Payments
StaticgetGet an instance of the Payments class for server-side usage.
The options to initialize the payments class.
An instance of Payments
Main class that interacts with the Nevermined payments API. Use
Payments.getInstancefor server-side usage orPayments.getBrowserInstancefor browser usage.Remarks
This API requires a Nevermined API Key, which can be obtained by logging in to the Nevermined App.
The library provides methods to manage AI Agents, Plans & process AI Agent Requests.
Each of these functionalities is encapsulated in its own API class:
plans: Manages AI Plans, including registration and ordering and retrieving plan details.agents: Handles AI Agents, including registration of AI Agents and access token generation.requests: Manages requests received by AI Agents, including validation and tracking.observability: Provides observability and logging utilities for AI Agents with Helicone integration