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

# Discord Integration

> Connect Trackly SMS to Discord for real-time alerts and support

Trackly SMS integrates with Discord to provide real-time alerts, support ticketing, and account management directly from your Discord server.

## Features

<CardGroup cols={2}>
  <Card title="Real-Time Alerts" icon="bell">
    Get notified of delivery failures, opt-outs, billing events, and more
  </Card>

  <Card title="Support Tickets" icon="ticket">
    Create and manage support tickets without leaving Discord
  </Card>

  <Card title="Account Status" icon="chart-line">
    Check usage, balance, and system status from Discord
  </Card>

  <Card title="Team Collaboration" icon="users">
    Multiple team members can access via their own Discord accounts
  </Card>
</CardGroup>

## Getting Started

### Step 1: Join the Trackly Discord

Join our Discord server using this invite link:

<Card title="Join Discord" icon="discord" href="https://discord.gg/trackly">
  Click to join the Trackly SMS Discord server
</Card>

### Step 2: Link Your Account

Once you're in the server, link your Discord account to your Trackly account:

```
/sms link YOUR_API_KEY
```

<Warning>
  Use this command in a private channel or DM with the bot. Your API key will be visible briefly.
</Warning>

You'll see a confirmation:

```
Successfully linked to account **Your Company Name**!
API Key: `***xyz`

You now have access to your private channels.
```

### Step 3: Access Your Channels

After linking, your private channels are **auto-provisioned** if they don't already exist. You'll have access to:

| Channel     | Purpose                               |
| ----------- | ------------------------------------- |
| `#alerts`   | Real-time delivery and billing alerts |
| `#support`  | Create and manage support tickets     |
| `#activity` | Message activity feed (optional)      |

## Available Commands

See [Discord Commands](/integrations/discord-commands) for a complete reference.

### Quick Reference

| Command             | Description                 |
| ------------------- | --------------------------- |
| `/sms ping`         | Check bot health            |
| `/sms status`       | View system status          |
| `/sms usage`        | View usage statistics       |
| `/sms balance`      | Check unbilled balance      |
| `/sms whoami`       | View linked account info    |
| `/support new`      | Create a support ticket     |
| `/alerts configure` | Configure alert preferences |

## Private Channels

Each account gets private channels that only their team members can access:

* **#yourcompany-alerts**: Your delivery and billing alerts
* **#yourcompany-support**: Your support ticket threads
* **#yourcompany-activity**: Your message activity (optional)

Team members must link their Discord accounts to access these channels.

## Security

<AccordionGroup>
  <Accordion title="How is my data protected?">
    * Private channels are only visible to linked team members
    * API keys are stored securely and never displayed after linking
    * You can unlink your account at any time with `/sms unlink`
  </Accordion>

  <Accordion title="What data is shared with Discord?">
    * Alert notifications (phone numbers are masked)
    * Usage statistics
    * Support ticket content
    * No message content is ever shared
  </Accordion>

  <Accordion title="Who can access my channels?">
    Only Discord users who have linked an API key from your account can see your private channels.
  </Accordion>
</AccordionGroup>

## Unlinking Your Account

To disconnect your Discord account:

```
/sms unlink
```

This removes your access to private channels but doesn't affect your Trackly account.

## Next Steps

<CardGroup cols={2}>
  <Card title="Command Reference" icon="terminal" href="/integrations/discord-commands">
    See all available commands
  </Card>

  <Card title="Configure Alerts" icon="bell" href="/integrations/discord-alerts">
    Customize your alert preferences
  </Card>

  <Card title="Support Tickets" icon="ticket" href="/integrations/discord-support">
    Learn about Discord-based support
  </Card>
</CardGroup>
