API Keys
All API requests require a Bearer token in theAuthorization header:
Key Types
Both key types use the same API endpoint (
https://api.plexospay.com). The key determines the environment.
Creating an API Key
1
Sign in to the Dashboard
Go to dashboard.plexospay.com
2
Navigate to API Keys
Click Settings → API Keys in the sidebar
3
Create a key
Click Create API Key, give it a name, and copy the secret key.
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.