Available tools
Python SDK
pip install naturalpay - Build agents in PythonTypeScript SDK
npm install @naturalpay/sdk - Build agents in TypeScript/JavaScriptInstallation
Quick start
Agent authentication
Both SDKs accept either credential type inNATURAL_API_KEY (see Authentication):
- Agent key (
ak_ntl_…) — bound to one agent. Requests resolve as that agent automatically: do not pass an agent ID (a conflicting one is rejected).instanceIdis required on money-movement methods (payments.create, transfers, payment-request fulfillment) so each agent run is auditable. - API key (
sk_ntl_…) — party-scoped. Calls act as your party. Prefer agent keys for new agent integrations.
With an agent key
Available resources
Both SDKs provide these resources:| Resource | Description |
|---|---|
payments | Create and retrieve payments |
wallet | Balance, deposits, and withdrawals |
transactions | List transaction history |
agents | Create and manage agents |
customers | List customer relationships |
MCP server
Natural runs a hosted MCP server athttps://mcp.natural.co for AI agent integration. Pick this path when an AI host application (Claude Code, Cursor, Codex) runs the agent — point the client at the endpoint and authenticate with OAuth. See MCP for setup per client.
Use an SDK instead when you’re running the agent runtime yourself.