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

# Authentication

> अपने backend से X-API-Key के साथ API requests को authenticate करें।

प्रत्येक Swipelux API key को एक सुरक्षित backend पर रखें। कभी भी key को browser code, mobile application bundle, या client-visible configuration file में न रखें।

## अपनी API key भेजें

साझा base URL `https://platform.swipelux.com` का उपयोग करें और अपनी key `X-API-Key` header में भेजें।

```bash theme={null}
export API_BASE='https://platform.swipelux.com'
export SWIPELUX_API_KEY='replace-with-your-api-key'

curl --request GET \
  "${API_BASE}/v3/capabilities" \
  --header "X-API-Key: ${SWIPELUX_API_KEY}"
```

[`GET /v3/capabilities`](/api-reference/capabilities/get-v3-capabilities) पुष्टि करता है कि key वैध है और आपका backend API तक पहुँच सकता है।

## Sandbox और production

Sandbox और production एक ही API host का उपयोग करते हैं। API key environment का चयन करती है।

Environment के विकल्प को deployment configuration में रखें। एक production deployment को कभी भी sandbox key पर fall back नहीं करना चाहिए, और एक sandbox deployment को कभी भी production credentials नहीं मिलने चाहिए।

## Credentials को सुरक्षित रूप से संग्रहीत करें

Sandbox और production keys को अलग-अलग secret-manager entries में संग्रहीत करें। प्रत्येक backend deployment को केवल उसी entry तक पहुँच दें जिसकी उसे आवश्यकता है।

Keys को source control, logs, analytics, support screenshots, और error responses से बाहर रखें। यदि आपको लगता है कि किसी key को उजागर कर दिया गया है, तो उसे rotate करें।

आगे, [sandbox testing कॉन्फ़िगर करें](/hi/integration/sandbox) या [Quickstart](/hi/integration/quickstart) शुरू करें।
