API Keys
All API requests require a Bearer token in theAuthorization header:
Key Types
| Prefix | Environment | Real Charges |
|---|---|---|
sk_test_ | Sandbox | No |
sk_live_ | Production | Yes |
https://api.plexospay.com). The key determines the environment.
Creating an API Key
Sign in to the Dashboard
Go to dashboard.plexospay.com
Security Best Practices
Never expose your secret key in client-side code
Never expose your secret key in client-side code
API keys should only be used server-side. Never include them in JavaScript bundles, mobile apps, or public repositories.
Use environment variables
Use environment variables
Store your API key in an environment variable like
PLEXOS_PAY_SECRET_KEY rather than hardcoding it.Rotate keys regularly
Rotate keys regularly
If you suspect a key has been compromised, revoke it immediately and create a new one from the dashboard.
Use test keys for development
Use test keys for development
Always use
sk_test_ keys during development. Switch to sk_live_ only in production.