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

Once you’ve received access to your sandbox or production account, follow these steps to generate 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/jEpA9_WPjJJ_2zB2/images/Chat-Screenshot-Aug-6-2025.png?fit=max&auto=format&n=jEpA9_WPjJJ_2zB2&q=85&s=1c48656a965b31677f22cfca5f05973a" alt="Chat Screenshot Aug 6 2025" title="Chat Screenshot Aug 6 2025" className="mx-auto" style={{ width:"40%" }} width="592" height="844" data-path="images/Chat-Screenshot-Aug-6-2025.png" />
   </Frame>
3. Under the Reward API tab, click Generate Client ID.
   <Frame>
     <img src="https://mintcdn.com/plum/jEpA9_WPjJJ_2zB2/images/80d03a78af63e1a2e8ce283fbc6bd6ea41cef808f8fd911923409827ace034f8-Screenshot_2025-08-17_at_4.42.34_PM.png?fit=max&auto=format&n=jEpA9_WPjJJ_2zB2&q=85&s=bb69ab2cb44239fa58eff527a7897e62" alt="80d03a78af63e1a2e8ce283fbc6bd6ea41cef808f8fd911923409827ace034f8 Screenshot 2025 08 17 At 4 42 34 PM" width="2170" height="423" data-path="images/80d03a78af63e1a2e8ce283fbc6bd6ea41cef808f8fd911923409827ace034f8-Screenshot_2025-08-17_at_4.42.34_PM.png" />
   </Frame>
4. A pop-up will appear showing the scope of integration (Plum PRO API/Gift Card API). Click Save. Your Client ID and Secret ID will now be visible on the dashboard — copy and store them securely.\\
   <Frame>
     <img src="https://mintcdn.com/plum/jEpA9_WPjJJ_2zB2/images/Chat-Plum-&-Perks-Image.png?fit=max&auto=format&n=jEpA9_WPjJJ_2zB2&q=85&s=a63fa4ad54a5ecb5ad07e797c546adff" alt="Chat Plum & Perks Image" width="1492" height="848" data-path="images/Chat-Plum-&-Perks-Image.png" />
   </Frame>
5. Click on “Generate New Tokens”.
   <Frame>
     <img src="https://mintcdn.com/plum/jEpA9_WPjJJ_2zB2/images/c9342d005a457923658c5dd0fd254626825a116f85db4656be7c3ab349232d9d-Screenshot_2025-08-06_at_4.34.40_PM.png?fit=max&auto=format&n=jEpA9_WPjJJ_2zB2&q=85&s=5c7f029e5b985e0cd1083ffcb711b6a6" alt="C9342d005a457923658c5dd0fd254626825a116f85db4656be7c3ab349232d9d Screenshot 2025 08 06 At 4 34 40 PM" width="2108" height="642" data-path="images/c9342d005a457923658c5dd0fd254626825a116f85db4656be7c3ab349232d9d-Screenshot_2025-08-06_at_4.34.40_PM.png" />
   </Frame>
6. Confirm by clicking “Yes, Generate”.
   <Frame>
     <img src="https://mintcdn.com/plum/jEpA9_WPjJJ_2zB2/images/6aa35c341ee2122be9626e8ab0fcf2e3783301ea3949bbd930cfea7b7608af3c-Screenshot_2025-08-06_at_4.34.57_PM.png?fit=max&auto=format&n=jEpA9_WPjJJ_2zB2&q=85&s=d0832211cf71cd0fbfdb91df25c45bdc" alt="6aa35c341ee2122be9626e8ab0fcf2e3783301ea3949bbd930cfea7b7608af3c Screenshot 2025 08 06 At 4 34 57 PM" title="6aa35c341ee2122be9626e8ab0fcf2e3783301ea3949bbd930cfea7b7608af3c Screenshot 2025 08 06 At 4 34 57 PM" className="mx-auto" style={{ width:"67%" }} width="822" height="458" data-path="images/6aa35c341ee2122be9626e8ab0fcf2e3783301ea3949bbd930cfea7b7608af3c-Screenshot_2025-08-06_at_4.34.57_PM.png" />
   </Frame>
7. Your Access & Refresh Tokens will be displayed — copy it immediately, as it will not be shown again.
   <Frame>
     <img src="https://mintcdn.com/plum/jEpA9_WPjJJ_2zB2/images/Chat-Screenshot-Aug-6-2025-(1).png?fit=max&auto=format&n=jEpA9_WPjJJ_2zB2&q=85&s=942471c1dd5e1407580f8588172cd2d0" alt="Chat Screenshot Aug 6 2025 (1)" title="Chat Screenshot Aug 6 2025 (1)" className="mx-auto" style={{ width:"53%" }} width="1406" height="1072" data-path="images/Chat-Screenshot-Aug-6-2025-(1).png" />
   </Frame>
8. 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.
