> ## Documentation Index
> Fetch the complete documentation index at: https://curlec.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate API Keys

> Know how the owner of a RazorpayX account generates and regenerates API keys on the RazorpayX Dashboard.

Available in
🇲🇾 Malaysia

> [!NOTE]
>
> RazorpayX payouts in Malaysia are available on request. RazorpayX is not enabled on Razorpay Curlec accounts by default. To enquire about RazorpayX for your business, [contact our Support team](https://curlec.com/docs/payments/dashboard/support.md).

After Razorpay Curlec [sets up your RazorpayX account](https://curlec.com/docs/x/set-up.md), the owner of the account generates the API keys on the RazorpayX Dashboard. You send the key ID and key secret with every API request, using HTTP Basic Authentication.

> [!WARNING]
>
> **Watch Out!**
>
> * Only the owner of the account creates API keys.
> * RazorpayX API keys are generated on the RazorpayX Dashboard and are separate from your Dashboard login credentials.
> * The key secret is shown only once. After generating the keys, download the key details and save them securely. If you have misplaced the key details, [regenerate](#regenerate-api-keys) the keys and replace them wherever required.
> * Live API calls work only from your [allowlisted server IPs](https://curlec.com/docs/x/dashboard/allowlist-ip.md).

To generate API keys:

1. Log in to the [RazorpayX Dashboard](https://x.razorpay.com/) as the owner.
2. Click the user icon at the top right and click **My Account & Settings**.
3. Navigate to **Developer Controls** → **API Keys** and click **Generate Key**.
4. Download the key details when the pop-up appears and store the secret securely.

## Regenerate API Keys

Regenerate your keys if the secret is lost or may be exposed, or as part of regular rotation.

To regenerate keys:

1. Log in to the [RazorpayX Dashboard](https://x.razorpay.com/) as the owner.
2. Click the user icon at the top right and click **My Account & Settings** → **Developer Controls**.
3. Click **Regenerate Key**. The Dashboard asks for an OTP.
4. Choose when the old key stops. You can deactivate the old key immediately, or within 24 hours so you can switch over without a gap.
5. Download the new key details. The secret is not shown again.
6. Update your production configuration before the old key stops working.

### Next Steps

* [Allowlist IPs](https://curlec.com/docs/x/dashboard/allowlist-ip.md)

### Related Information

* [About RazorpayX](https://curlec.com/docs/x.md)
* [About APIs](https://curlec.com/docs/x/apis.md)
