---
title: "Getting started"
description: "Learn how to sign up, access the admin dashboard, and create your first API key to start integrating Snag loyalty rules"
keywords: ["Snag API quickstart", "Web3 loyalty API", "loyalty SDK setup", "developer onboarding"]
---

> **For AI agents:** the complete documentation index is at [llms.txt](https://docs.snagsolutions.io/llms.txt). Append `.md` to any page URL for its markdown version.

import AiAssistantCallout from '/snippets/ai-assistant-callout.mdx'

<AiAssistantCallout />

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
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
curl -X GET 'https://admin.snagsolutions.io/api/users' \
  -H 'x-api-key: your-api-key-here'
```

```javascript
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>

{' '}
