Choose the correct account type
A Developer account key authenticates, but the seller configuration APIs need a Seller account.
Choose an environment
Each environment has its own dashboard, its own accounts, and its own keys.
A key works only in the environment that issued it. The
environment value in your code must match the dashboard of the key.
Register and create a key
1
Register a Seller account
Open sandbox.inflowpay.ai. Register a Seller account.
2
Create an API key
Create an API key in the dashboard. This key is your
INFLOW_API_KEY.3
Store the key with its environment
Put the environment name and the key in the same Add
.env file. They must always change together..env
.env to .gitignore. Never commit a key.Check the key at startup
Catch a wrong account type at startup and stop with a clear message. For x402,createInflowSellerClient makes authenticated calls when you construct it, so the error appears at startup. For MPP, the inflow method loads its configuration in the background, so the error appears at the first paid request.
startSeller is your own startup function. For 401 and other errors, see Errors.
Keep keys safe
- Keep production keys in the secret manager of your deployment. Never commit them.
- Do not put a key in a chat, a plan file, or an issue.
- Rotate a key if it appears outside your secret manager.
Next step
Protect an endpoint
Accept MPP and x402 on an endpoint with InFlow Payments.