> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# API Sandbox Setup

> Sandbox setup for testing Razorpay APIs.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
  <span>🇸🇬 Singapore</span>
  <span>🇺🇸 United States</span>
</div>

The Razorpay Sandbox environment allows you to test your integration without using real money. It is a crucial step before going live with your Razorpay integration.

## Steps

Follow these steps to set up the sandbox environment.

<AccordionGroup>
  <Accordion title="Generate API Keys">
    Follow these [steps to generate API keys](/docs/us/api/authentication#generate-api-keys).
  </Accordion>

  <Accordion title="Use Sandbox URL & Client Libraries">
    The base URL for the Razorpay Sandbox and production API is the same - `https://api.razorpay.com/v1/`. In case of certain APIs, it is `https://api.razorpay.com/v2`.

    For testing APIs in the sandbox environment, use the test API keys.
  </Accordion>

  <Accordion title="Go live">
    After testing is complete, generate [Live API keys](/docs/us/payments/dashboard/account-settings/api-keys#live-mode-api-keys) from the dashboard. Ensure to replace the Test API keys in your integration with the Live API keys before going live. You can accept real money payments using the Live API Keys.
  </Accordion>
</AccordionGroup>

### Related Information

* [Understand Razorpay APIs](/docs/us/api/understand)
* [Errors](/docs/us/errors)
* [Best Practices](/docs/us/api/best-practices)
* [Glossary](/docs/us/api/glossary)
