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

# Create Your API Key

All requests to the Xoxoday Rewards API must be authenticated.

Xoxoday uses bearer authentication, where each request must include an HTTP header that includes your Client ID, Secret ID, and Access Token. The following guide explains how to generate your client ID, secret ID, and access tokens from the admin portal.

## How to Generate Your API Key

1. Log in to your Xoxoday Admin Dashboard (Sandbox or Production).
2. Go to Settings → API
   <Frame>
     <img src="https://mintcdn.com/plum/wJinCdnBpLeyuCR-/images/Chat-Screenshot-Aug-6-2025-(2).png?fit=max&auto=format&n=wJinCdnBpLeyuCR-&q=85&s=ce471438362de57c15c137948bf4ae06" alt="Chat Screenshot Aug 6 2025 (2)" title="Chat Screenshot Aug 6 2025 (2)" className="mx-auto" style={{ width:"35%" }} width="592" height="844" data-path="images/Chat-Screenshot-Aug-6-2025-(2).png" />
   </Frame>
   \\
3. Under the Storefront Integration tab, click Generate New Tokens.\\
   <Frame>
     <img src="https://mintcdn.com/plum/wJinCdnBpLeyuCR-/images/Chat-Screenshot-Aug-25-2025.png?fit=max&auto=format&n=wJinCdnBpLeyuCR-&q=85&s=39eca846aace56e01192a6f487e48954" alt="Chat Screenshot Aug 25 2025" width="1084" height="409" data-path="images/Chat-Screenshot-Aug-25-2025.png" />
   </Frame>
4. A pop-up will appear showing the scope of integration. Click Save.\\
   <Frame>
     <img src="https://mintcdn.com/plum/wJinCdnBpLeyuCR-/images/Chat-Screenshot-Aug-25-2025-(1).png?fit=max&auto=format&n=wJinCdnBpLeyuCR-&q=85&s=dd25ba2b13f639b1ecdb2d2552cbef86" alt="Chat Screenshot Aug 25 2025 (1)" width="420" height="162" data-path="images/Chat-Screenshot-Aug-25-2025-(1).png" />
   </Frame>
5. Your Client ID and Secret ID will now be visible on the dashboard — copy and store them securely.
6. Click on “Generate New Tokens”.\\
   <Frame>
     <img src="https://mintcdn.com/plum/wJinCdnBpLeyuCR-/images/c569f48e9f3b1e610141d9e6646e3e47579106c09cf3f72f6eacb98607c0abcf-Screenshot_2025-08-25_at_1.25.51_PM.png?fit=max&auto=format&n=wJinCdnBpLeyuCR-&q=85&s=e8fee22f00638a5534b8e3a62d83ba35" alt="C569f48e9f3b1e610141d9e6646e3e47579106c09cf3f72f6eacb98607c0abcf Screenshot 2025 08 25 At 1 25 51 PM" width="2068" height="1110" data-path="images/c569f48e9f3b1e610141d9e6646e3e47579106c09cf3f72f6eacb98607c0abcf-Screenshot_2025-08-25_at_1.25.51_PM.png" />
   </Frame>
7. Confirm by clicking “Yes, Generate”.\\
   <Frame>
     <img src="https://mintcdn.com/plum/wJinCdnBpLeyuCR-/images/Chat-Screenshot-Aug-6-2025-(3).png?fit=max&auto=format&n=wJinCdnBpLeyuCR-&q=85&s=deffac9a01e5efd9caaee80b4798d627" alt="Chat Screenshot Aug 6 2025 (3)" width="822" height="458" data-path="images/Chat-Screenshot-Aug-6-2025-(3).png" />
   </Frame>
8. Your Access & Refresh Tokens will be displayed — copy it immediately, as it will not be shown again.\\
   <Frame>
     <img src="https://mintcdn.com/plum/wJinCdnBpLeyuCR-/images/Chat-Plum-&-Perks-Image-(1).png?fit=max&auto=format&n=wJinCdnBpLeyuCR-&q=85&s=51a24ffc6474fd5d7dcaf0dfcc490b7d" alt="Chat Plum & Perks Image (1)" width="694" height="525" data-path="images/Chat-Plum-&-Perks-Image-(1).png" />
   </Frame>
9. Treat this token like a password. Keep it secure and never expose it publicly.

## Using the API Key

To authenticate your API requests, include the access token in the Authorization header as a Bearer token:

```text theme={null}
Authorization: Bearer <your-access-token>
```

This header is required for all authenticated API calls to both sandbox and production environments.

> Ensure that your token is kept secure and never exposed in client-side code or public repositories.
