Overview
Scoped API keys help reduce security risk by following the least privilege principle. With scoped permissions, you can:- create keys for specific integrations or teams
- allow access only to the resources an integration needs
- separate read access from write access
- limit the impact of a leaked or compromised key
Access to API Key Management
Only the following user roles can access API key settings:Permission Model
Permissions are grouped by resource. Each resource supports one of the following access levels:- None – no access
- Read – read-only access
- Write – write access, including read access where applicable
Permission Groups
Main
Payments
Subscriptions
Endpoint-to-Permission Mapping
Each API request requires a matching permission.Create an API Key
1
Open Developers settings
In the PayNext Dashboard, go to the Developers page and open the API Keys tab.
2
Create a new API key
Click New API key.
3
Enter basic details
Provide a name for the API key so it is easy to identify later.
4
Assign permissions
Choose the required access level for each resource using the available options:
- None
- Read
- Write
5
Save the key
Click Create to generate the API key.
Update an API Key
You can review and update permissions for an existing API key at any time. Permission changes take effect for subsequent API requests made with that key.Best Practices
- Create separate API keys per service or integration
- Grant only the minimum required permissions
- Avoid reusing the same key across multiple systems
- Review old keys and remove unnecessary access
- Rotate keys periodically
- Restrict production and sandbox usage to different keys
Notes
WriteincludesReadwhere applicable- Some resources support only
Writeor onlyRead, depending on available API operations - API key management is available only to Admin and Developer roles