Authentication
The Method API uses API keys to authenticate requests. The API key serves as an identifier for your team. Secret API keys for your team have the prefix sk_
Authorization
header of a request.Get an Access Token
👉 Get started by creating your account in the Method Dashboard, or email us at team@methodfi.com. We cannot wait to see what you'll build!- cURL
- Node.js
- Python
curl https://production.methodfi.com/accounts \
-H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc"
const { Method, Environments } = require('method-node');
const method = new Method({
apiKey: 'sk_WyZEWVfTcH7GqmPzUPk65Vjc',
env: Environments.production,
});
const accounts = await method.accounts.list();
from method import Method
method = Method(env='production', api_key='sk_WyZEWVfTcH7GqmPzUPk65Vjc')
accounts = method.accounts.list()