API Key Management
HyperRail provides two types of API keys for different use cases: public keys and secret keys. You can manage these keys from your HyperRail dashboard.- Secret Keys (sk_test_ for test mode, sk_live_ for live mode): Used exclusively for server-to-server communications and backend integrations. These keys grant full access to your account and must be kept confidential. Never share your secret keys in public locations like code repositories (GitHub), client-side code, or other unsecured environments.
Authentication Process
All server-side API requests to HyperRail must be authenticated using your secret key. Here’s how to authenticate:- Include your secret key in the Authorization header of every request using the Bearer token format.
- HTTPS is mandatory: All API requests must be made over HTTPS for secure communication. Requests made over plain HTTP will fail.
- Authentication Failure: Calls made without proper authentication will result in a 401 Unauthorized status code response from the API.
Authorization: Bearer SECRET_KEY