Key Format
Keys are environment-specific:| Environment | Prefix | Base URL | Usage |
|---|---|---|---|
| Sandbox | sk_test_ | api.sandbox.paygentic.io | Development and testing |
| Live | sk_live_ | api.paygentic.io | Production |
Creating Keys
- Login to Paygentic Dashboard
- Navigate to Settings → API Keys
- Click Create New Key
- Name the key descriptively
- Copy immediately - it won’t be shown again
Managing Keys
Viewing Keys- See all active keys
- Check creation and last-used dates
- Identify by descriptive names
- View partial values (last 4 characters)
Usage
Include keys in the Authorization header using Bearer authentication scheme.Security Practices
Mandatory- Never commit keys to git
- Use environment variables
- Rotate keys regularly
- Revoke compromised keys immediately
- Use sandbox keys for development only
- Separate keys per application
- Monitor usage to find inactive keys
- Document which applications use which keys
- Use descriptive key names
Troubleshooting
Authentication Failures- Verify correct key format
- Check key hasn’t been revoked
- Confirm environment match (test vs live)
- Use correct base URL for environment
- Verify user permissions for the key
- Check organization context
- Contact admin for permission changes