Building an API or internal service usually means needing a batch of realistic-looking secret keys — for testing, documentation examples, or seeding a dev environment. trySandbox’s API Key Generator produces prefixed keys in the format you need.
In short: Generate random secret keys in base64, hex, or UUID format, with an optional custom prefix (like sk_live_ or pk_test_).
Why prefixed keys matter
Prefixes like sk_ vs pk_ (a pattern popularized by Stripe) let developers instantly recognize a key’s purpose and environment at a glance — and let automated secret-scanners catch leaked keys in commits before they cause damage.
Step-by-step
- Open the API Key Generator on trySandbox.
- Choose a format (base64, hex, or UUID).
- Add a custom prefix if you want one (e.g. sk_test_).
- Generate and copy the key.
Generate an API key on trySandbox.io →
For actual production use
These are great for testing, mock data, and documentation — for real production API keys, generate them through your actual auth/backend system so they’re properly tied to permissions and revocation, not a standalone tool.