To interact with Nevermined programmatically, you need a Nevermined API Key. This key is required for both:
- Payment Libraries (TypeScript SDK and Python SDK)
- REST API (direct HTTP calls)
Get Your API Key
Sign in to Nevermined App
Navigate to API Keys
Go to Settings > API Keys in your dashboard.
Generate a New Key
Click Generate and copy your new API key. It starts with nvm:.export NVM_API_KEY="nvm:your-api-key-here"
Keep your API key secure. Do not commit it to version control or share it publicly.
For a complete walkthrough, see our 5-Minute Setup Guide.
Choose Your Environment
Nevermined offers two environments:
| Environment | Purpose | Network |
|---|
| Sandbox | Testing and development | Base Sepolia |
| Live | Production | Base Mainnet |
TypeScript SDK
Python SDK
REST API
import { Payments } from '@nevermined-io/payments'
const payments = Payments.getInstance({
nvmApiKey: process.env.NVM_API_KEY,
environment: 'testing' // or 'live' for production
})
from payments_py import Payments, PaymentOptions
payments = Payments.get_instance(
PaymentOptions(
nvm_api_key=os.environ['NVM_API_KEY'],
environment='testing' # or 'live' for production
)
)
| Environment | Base URL |
|---|
| Sandbox | https://api.sandbox.nevermined.dev/api/v1 |
| Live | https://api.live.nevermined.dev/api/v1 |
curl -X GET "https://api.sandbox.nevermined.dev/api/v1/protocol/agents" \
-H "Authorization: Bearer $NVM_API_KEY"
Next Steps