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

# Getting started

> Learn how to sign up, access the admin dashboard, and create your first API key to start integrating Snag loyalty rules

<head>
  <script type="application/ld+json">
    {JSON.stringify({
            "@context": "https://schema.org",
            "@graph": [
              {
                "@type": "HowTo",
                "name": "Getting started",
                "description": "Learn how to sign up, access the admin dashboard, and create your first API key to start integrating Snag loyalty rules",
                "step": [
                  {"@type": "HowToStep", "name": "Create your account", "text": "Visit Snag Solutions and sign up for an account."},
                  {"@type": "HowToStep", "name": "Access the Admin Dashboard", "text": "Once your account is verified, access the admin dashboard at admin.snagsolutions.io."},
                  {"@type": "HowToStep", "name": "Navigate to API Keys", "text": "From the admin dashboard, navigate to the API Keys page using the left sidebar navigation."},
                  {"@type": "HowToStep", "name": "Create your first API key", "text": "Click the Create New API Key button to generate your first API key. Store it securely in an environment variable."}
                ]
              },
              {
                "@type": "BreadcrumbList",
                "itemListElement": [
                  {"@type": "ListItem", "position": 1, "name": "Home", "item": "https://docs.snagsolutions.io/welcome"},
                  {"@type": "ListItem", "position": 2, "name": "Loyalty", "item": "https://docs.snagsolutions.io/loyalty/loyalty-overview"},
                  {"@type": "ListItem", "position": 3, "name": "Development", "item": "https://docs.snagsolutions.io/loyalty/development/getting-started"},
                  {"@type": "ListItem", "position": 4, "name": "Getting started"}
                ]
              }
            ]
          })}
  </script>
</head>

<Tip>
  **Using an AI coding assistant?** Connect Cursor, Claude, or Copilot to Snag Docs for context-aware help. [Learn how](/ai-coding-assistant).
</Tip>

Welcome to Snag! This guide will walk you through the initial setup process to get your API key and start integrating loyalty rules into your application.

## Sign Up and Access

<Steps>
  <Step title="Create your account">
    Visit [Snag Solutions](https://www.snagsolutions.io) and sign up for an account.
  </Step>

  <Step title="Access the Admin Dashboard">
    Once your account is verified, you can access the admin dashboard at [admin.snagsolutions.io](https://admin.snagsolutions.io).

    <Info>
      The admin dashboard is where you'll manage your loyalty programs, and configure your API keys.
    </Info>
  </Step>

  <Step title="Navigate to API Keys">
    From the admin dashboard, navigate to the **API Keys** page using the left sidebar navigation.
  </Step>

  <Step title="Create your first API key">
    Click the "Create New API Key" button to generate your first API key.

    <Check>
      Copy your API key and store it in a secure location like an environment variable.
    </Check>
  </Step>
</Steps>

## Using Your API Key

Your API key is the foundation for all Snag API interactions. Here's how to use it:

<Note>
  Use a <strong>Website API key</strong>
  to access loyalty APIs (rules, transactions, entries, users, and related endpoints). A <strong>Stratus API key</strong>
  is used to secure Stratus relayer and Stratus functions; these keys allow you to submit and start onchain transactions. Do not use Stratus keys with loyalty endpoints.
</Note>

### With Snag SDK

```javascript theme={null}
import SnagSolutions from '@snagsolutions/sdk'

const client = new SnagSolutions({
  apiKey: 'your-api-key-here',
})

// Now you can use the client to interact with Snag APIs
const users = await client.users.get()
```

### With HTTP Requests

For direct HTTP calls, include your API key in the `x-api-key` header:

```bash theme={null}
curl -X GET 'https://admin.snagsolutions.io/api/users' \
  -H 'x-api-key: your-api-key-here'
```

```javascript theme={null}
const response = await fetch('https://admin.snagsolutions.io/api/users', {
  headers: {
    'x-api-key': 'your-api-key-here',
    'Content-Type': 'application/json',
  },
})
```

<Tip>
  Keep your API key secure and never expose it in client-side code. Always use environment variables or secure configuration management.
</Tip>

## Next Steps

Now that you have your API key, you're ready to:

1. **Create users** - Learn how to add users to your Snag system
2. **Manage user groups** - Understand how to handle multiple wallets per user
3. **Connect social accounts** - Integrate social media platforms with your users

<Card title="Create Your First User" icon="user" href="/loyalty/development/create-users">
  Learn how to add users to your Snag system using the metadata endpoint.
</Card>

{' '}
