Available in🇮🇳 India🇸🇬 Singapore🇺🇸 United States
Check how to authenticate the APIs.
All Razorpay APIs are authenticated using Basic Auth. Basic auth requires the following:
[YOUR_KEY_ID][YOUR_KEY_SECRET]
Authorization header for each request in the Basic base64token format. Here, base64token is a base64 encoded string of YOUR_KEY_ID:YOUR_KEY_SECRET.
Generate API Keys
You can generate API Keys from the Dashboard.- Payments
- RazorpayX
Follow these steps to generate API keys:
Test Mode API Keys
Watch this video to see how to generate API keys in the Test mode.
Live Mode API Keys
Watch this video to see how to generate API keys in the Live mode.
- Log in to your Dashboard with the appropriate credentials.
- Select the mode (Test or Live) for which you want to generate the API key.
- Test Mode: The test mode is a simulation mode that you can use to test your integration flow. Your customers will not be able to make payments in this mode.
- Live Mode: When your integration is complete, switch to live mode and generate live mode API keys. In the integration, replace test mode keys with live mode keys to accept customer payments.
- Navigate to Account & Settings → API Keys (under Website and app settings) → Generate Key to generate key for the selected mode.
Roll API Keys
You can roll the Live and Test mode API keys if you have lost them or exposed them. You can choose to regenerate the API keys by deactivating them immediately or after 24 hours.- Payments
- RazorpayX
Know how to regenerate Razorpay API keys.