API keys are used to authenticate your API requests to Paystrator.
Each API key can have specific permissions per product, ensuring secure and controlled access.
Treat your API keys like passwords β never share them publicly or embed them in client-side code.
π Where to Find API Keys Configuration Settings
- In your Paystrator dashboard, go to:
Settings β Developers - Youβll see three tabs:
API Keys
β (this one)IP Whitelist
Webhooks
If you are in Testing mode, you can skip this stage β a default API key has already been generated for you.
How to Create a New API Key
- Click
+ Create New API Key
. - Enter a Key Name (e.g.,
Backend Integration
orMobile App
). - For each product, set the capabilities:
- None β No access
- Read Only β Can retrieve data but not modify it
- Write Only β Can send data but not retrieve it
- Read & Write β Full access to that product
- Click Save & Close.
- Copy your API key and store it securely β this is the only time you will be able to see the full value.
π‘ Tips & Best Practices
- Use separate keys for development, staging, and production environments.
- Rotate keys periodically or immediately if you suspect compromise.
- Limit permissions to the minimum required for each use case.
- Store keys securely in environment variables or a secrets manager.
- Never commit keys to source control or expose them in client-side code.
βΆοΈ Next Step
With your API key ready, proceed to: