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

> This guide will walk you through the essential steps to get started with our API, from obtaining your API key to making your first request.

# Quickstart

<Steps>
  <Step title="Obtain Your API Keys">
    To start using the One of None API, you need to obtain your API keys from the dashboard. **Only team owners and team admins** have access to the API keys management section. Follow the steps below:

    1. **Log in to your One of None dashboard.**
       * Go to [One of None Dashboard](https://cloud.oneofnone.io) and sign in with your credentials.

    2. **Navigate to the API Keys section.**
       * In the sidebar, select **Team Settings**, then click on **API Keys**.

    3. **Copy your API keys.**
       * You will find two types of API keys available:
         * **Client API Key:** Safe for client-side operations (e.g., web applications), can be exposed in the browser.
         * **Server API Key:** For server-side operations, must be kept secret and never exposed publicly.
       * Click the **copy icon** next to the key to copy it to your clipboard.

    {' '}

    <Warning>
      Always keep your **Server API Key** secure and never expose it in a browser or
      client environment. **If your Server API key is leaked, regenerate it
      immediately**.
    </Warning>
  </Step>

  <Step title="Add Whitelisted Domains">
    Before you can start making requests to the API, you need to whitelist the domains that will use your API keys. **Only team owners and team admins** have access to this section:

    1. **Add your domains.**
       * Enter the fully qualified domain name (e.g., `https://yourwebsite.com` or `http://localhost:<port>` for local development).
         <Tip>Use wildcard subdomains like `*.yourwebsite.com` if you need broader access.</Tip>

    2. **Save the changes.**
       * Click the **"Save"** button to apply the changes.

    <Warning>Only requests originating from the whitelisted domains will be allowed to use the client API key.</Warning>
  </Step>

  <Step title="Make Your First API Request">
    Once you have obtained your API key and whitelisted your domains, you're ready to make your first API request. Use the `x-api-key` header to authenticate your requests.

    <CodeGroup>
      ```bash cURL theme={null}
      curl -X GET "https://api.oneofnone.io/v1/products" \
           -H "x-api-key: YOUR_API_KEY"
      ```

      ```javascript Node.js theme={null}
      const fetch = require('node-fetch');

      async function fetchProducts() {
        const response = await fetch('https://api.oneofnone.io/v1/products', {
          headers: {
            'x-api-key': 'YOUR_API_KEY'
          }
        });
        const data = await response.json();
        console.log(data);
      }

      fetchProducts();
      ```

      ```python Python theme={null}
      import requests

      url = "https://api.oneofnone.io/v1/products"
      headers = {"x-api-key": "YOUR_API_KEY"}

      response = requests.get(url, headers=headers)
      print(response.json())
      ```
    </CodeGroup>

    Replace `YOUR_API_KEY` with your actual API key to authenticate the request. If everything is set up correctly, you'll receive a JSON response like the following:

    ```json theme={null}
      {
        "data": [
          {
            "attributes": {},
            "collection_id": 123,
            "created_at": "2023-11-07T05:31:56Z",
            "description": "<string>",
            "grade": 123,
            "id": 123,
            "image": {
              "url": "<string>"
            },
            "is_vaulted": true,
            "name": "<string>",
            "registered_at": "2023-11-07T05:31:56Z",
            "slug": "<string>",
            "status": "<string>",
            "token_id": 123,
            "updated_at": "2023-11-07T05:31:56Z",
            "video": {
              "url": "<string>"
            },
            "gallery": []
          }
        ],
        "pagination": {
          "next": "<string>",
          "prev": "<string>",
          "limit": 123,
          "offset": 123
        }
      }
    ```

    If you encounter any issues, refer to the [troubleshooting page](/troubleshooting).
  </Step>
</Steps>

## Explore More

Once you have successfully made your first request, you can explore other API endpoints by referring to our [API Documentation](/api-reference). Need help? Contact our support team at [support@oneofnone.io](mailto:support@oneofnone.io).
