> ## 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 Reference Guide

> Get started with Razorpay APIs and test them on Postman. Generate API Keys in Test and Live Modes.

export const VideoCard = props => {
  const {title, href, videoUrl, children} = props;
  const css = `
.rzp-vcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  background: #fff;
  height: 100%;
}
.rzp-vcard-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.rzp-vcard-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.rzp-vcard-body { padding: 1rem 1.15rem 1.15rem; }
.rzp-vcard-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
}
.rzp-vcard-title a { color: inherit; text-decoration: none; }
.rzp-vcard-title a:hover { color: #3395ff; }
.rzp-vcard-desc { font-size: 0.875rem; line-height: 1.6; color: #475569; }
.rzp-vcard-desc > :first-child { margin-top: 0; }
.rzp-vcard-desc > :last-child { margin-bottom: 0; }
:where(.dark) .rzp-vcard {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
:where(.dark) .rzp-vcard-title { color: #f1f5f9; }
:where(.dark) .rzp-vcard-desc { color: #94a3b8; }
`;
  return <div className="rzp-vcard">
      <style>{css}</style>
      {videoUrl ? <div className="rzp-vcard-video">
          <iframe src={videoUrl} title={title || "Video"} loading="lazy" referrerPolicy="strict-origin-when-cross-origin" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowFullScreen />
        </div> : null}
      <div className="rzp-vcard-body">
        {title ? <p className="rzp-vcard-title">
            {href ? <a href={href}>{title}</a> : title}
          </p> : null}
        <div className="rzp-vcard-desc">{children}</div>
      </div>
    </div>;
};

<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>

Razorpay APIs are completely RESTful, and all our responses are returned in JSON.

<Info>
  **Integrations**

  * Looking to integrate your website, ecommerce store or mobile app with Razorpay Payment Gateway? Find the [right integration method](/docs/payments/payment-gateway#integration-types).
  * Accept payments [**without** a website or app](/docs/payments#accept-payments) using other Razorpay products, such as Payment Links, Payment Pages, Subscription Links, Invoices and Smart Collect.
  * For S2S integration, contact the [Support team](https://razorpay.com/support/#request) with your requirements.
</Info>

<CardGroup cols={2}>
  <VideoCard title="Razorpay Postman Public Workspace" href="https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/collection/12492020-952c7295-118c-400f-8f2c-5266ef6f689a" videoUrl="https://www.youtube.com/embed/0k5NpkMgUWQ?si=qZcBE8alhTN7b4_-">
    Our APIs are present on the Razorpay [Postman Public Workspace](https://www.postman.com/razorpaydev/workspace/razorpay-public-workspace/collection/12492020-952c7295-118c-400f-8f2c-5266ef6f689a). Watch the video to know how to fork APIs and save them to your private workspace for testing.
  </VideoCard>

  <VideoCard title="Try Razorpay APIs on Postman" videoUrl="https://www.youtube.com/embed/TExjOlOCxTw?si=cS9MlY6_cm4tPGWq">
    Test Razorpay APIs using Postman. Watch the video to know how to get started.

    All Razorpay APIs are authenticated using Basic Authentication. You must [generate test API keys](/docs/api/authentication) on the Dashboard before trying the APIs.
  </VideoCard>
</CardGroup>

## API Gateway URL

For most of the Razorpay APIs, the Gateway URL is `https://api.razorpay.com/v1`. You need to include this before each API endpoint to make API calls. However, certain APIs are on V2. Hence, the gateway URL may differ for certain APIs.

<AccordionGroup>
  <Accordion title="Example">
    * Use the URL `https://api.razorpay.com/v1/payments` to access payment resources.

    * Use the URL `https://api.razorpay.com/v2/accounts` to access Route (Linked Account)-related resources.
  </Accordion>
</AccordionGroup>

### Related Information

* [Understand Razorpay APIs](/docs/api/understand)
* [API Authentication](/docs/api/authentication)
* [Sandbox Setup](/docs/api/sandbox-setup)
* [Errors](/docs/errors)
* [API Best Practices](/docs/api/best-practices)
* [API Glossary](/docs/api/glossary)
