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

# 身分驗證

> 從您的後端使用 X-API-Key 對 API 請求進行身分驗證。

請將每一組 Swipelux API 金鑰保存在受保護的後端。切勿將金鑰放入瀏覽器程式碼、行動應用程式套件或用戶端可見的設定檔中。

## 傳送您的 API 金鑰

使用共用的基礎 URL `https://platform.swipelux.com`,並於 `X-API-Key` 標頭中傳送您的金鑰。

```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) 會確認金鑰有效,且您的後端能連線至 API。

## 沙箱與正式環境

沙箱與正式環境使用相同的 API 主機。API 金鑰會選擇對應的環境。

請將環境選擇保存在部署設定中。正式環境的部署絕不可回退至沙箱金鑰,沙箱部署也絕不可取得正式環境的憑證。

## 安全地存放憑證

請將沙箱與正式環境的金鑰存放於不同的密鑰管理項目中。僅授予每個後端部署存取其所需項目的權限。

請勿將金鑰放入原始碼控管、日誌、分析、客服截圖或錯誤回應中。若您認為金鑰可能已外洩,請立即輪替。

接下來,請[設定沙箱測試](/zh-Hant/integration/sandbox) 或開始[快速入門](/zh-Hant/integration/quickstart)。


## Related topics

- [總覽](/zh-Hant/knowledge-base/compliance/overview.md)
- [KYC 驗證等級](/zh-Hant/knowledge-base/individual-onboarding/verification-levels.md)
- [上線](/zh-Hant/integration/go-live.md)
- [個人入駐總覽](/zh-Hant/knowledge-base/individual-onboarding/overview.md)
- [司法管轄區框架](/zh-Hant/knowledge-base/compliance/jurisdictions-and-availability.md)
