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

> Complete reference for all Discord bot commands

This page documents all available slash commands in the Trackly SMS Discord bot.

## SMS Commands

General platform commands for account management and status.

### `/sms ping`

Check if the bot is online and responding.

```
/sms ping
```

**Response**: Bot latency, database status, and overall health.

***

### `/sms status`

View current system status.

```
/sms status
```

**Response**: Status of database, Discord connection, and other services.

***

### `/sms link`

Link your Discord account to your Trackly SMS account.

```
/sms link <api_key>
```

| Parameter | Required | Description              |
| --------- | -------- | ------------------------ |
| `api_key` | Yes      | Your Trackly SMS API key |

<Warning>
  Your API key is briefly visible when you type this command. Use it in a private channel.
</Warning>

**What happens**:

* Your Discord account is linked to your account
* You gain access to your private channels
* You can now use all authenticated commands

***

### `/sms unlink`

Disconnect your Discord account from Trackly SMS.

```
/sms unlink
```

**What happens**:

* Your Discord account is unlinked
* You lose access to private channels
* Your Trackly account is unaffected

***

### `/sms usage`

View usage statistics for your account.

```
/sms usage [period]
```

| Parameter | Required | Default | Options                         |
| --------- | -------- | ------- | ------------------------------- |
| `period`  | No       | `month` | `today`, `week`, `month`, `all` |

**Response**: Outbound messages, inbound messages, total segments, and estimated cost.

***

### `/sms balance`

Check your current unbilled balance.

```
/sms balance
```

**Response**: Unbilled segments, estimated amount, and last billing date.

***

### `/sms whoami`

View information about your linked account.

```
/sms whoami
```

**Response**: Account name, account ID, linked date, and admin status.

***

## Support Commands

Create and manage support tickets. See [Discord Support](/integrations/discord-support) for details.

### `/support new`

Create a new support ticket.

```
/support new <subject> [priority] [category]
```

| Parameter  | Required | Default   | Options                                  |
| ---------- | -------- | --------- | ---------------------------------------- |
| `subject`  | Yes      | -         | Brief description of your issue          |
| `priority` | No       | `normal`  | `low`, `normal`, `high`, `urgent`        |
| `category` | No       | `general` | `general`, `billing`, `technical`, `api` |

**What happens**:

* A ticket is created with a unique number
* A private thread is created for the conversation
* Support staff are notified

***

### `/support list`

List your support tickets.

```
/support list [status]
```

| Parameter | Required | Default | Options                                            |
| --------- | -------- | ------- | -------------------------------------------------- |
| `status`  | No       | `all`   | `all`, `open`, `in_progress`, `resolved`, `closed` |

***

### `/support close`

Close a support ticket.

```
/support close <ticket_number>
```

| Parameter       | Required | Description                |
| --------------- | -------- | -------------------------- |
| `ticket_number` | Yes      | The ticket number to close |

***

### `/support reply`

Reply to a support ticket.

```
/support reply <ticket_number> <message>
```

| Parameter       | Required | Description        |
| --------------- | -------- | ------------------ |
| `ticket_number` | Yes      | The ticket number  |
| `message`       | Yes      | Your reply message |

***

## Alert Commands

Configure how you receive alerts. See [Discord Alerts](/integrations/discord-alerts) for details.

### `/alerts configure`

Configure your alert preferences.

```
/alerts configure [delivery_failures] [opt_outs] [billing] [inbound_sms] [minimum_severity]
```

| Parameter           | Required | Default  | Description                                           |
| ------------------- | -------- | -------- | ----------------------------------------------------- |
| `delivery_failures` | No       | `true`   | Enable delivery failure alerts                        |
| `opt_outs`          | No       | `true`   | Enable opt-out alerts                                 |
| `billing`           | No       | `true`   | Enable billing alerts                                 |
| `inbound_sms`       | No       | `false`  | Enable inbound SMS alerts                             |
| `minimum_severity`  | No       | `medium` | Minimum severity: `low`, `medium`, `high`, `critical` |

***

### `/alerts mute`

Temporarily mute all alerts.

```
/alerts mute <duration>
```

| Parameter  | Required | Format        | Examples          |
| ---------- | -------- | ------------- | ----------------- |
| `duration` | Yes      | Number + unit | `1h`, `30m`, `1d` |

***

### `/alerts unmute`

Unmute alerts.

```
/alerts unmute
```

***

### `/alerts status`

View your current alert preferences.

```
/alerts status
```

**Response**: Shows which alerts are enabled, minimum severity, and mute status.

***

## Admin Commands

These commands are only available to users with the Admin role.

### `/admin provision`

Set up Discord channels for an account.

```
/admin provision <account_id> [create_activity]
```

| Parameter         | Required | Default | Description             |
| ----------------- | -------- | ------- | ----------------------- |
| `account_id`      | Yes      | -       | Account ID (integer)    |
| `create_activity` | No       | `true`  | Create activity channel |

***

### `/admin deprovision`

Remove Discord channels for an account.

```
/admin deprovision <account_id>
```

***

### `/admin announce`

Post an announcement to all users.

```
/admin announce <title> <message> [mention_everyone]
```

***

### `/admin status`

Update system status.

```
/admin status <service> <status> <message>
```

| Parameter | Options                             |
| --------- | ----------------------------------- |
| `status`  | `operational`, `degraded`, `outage` |

***

### `/admin tickets`

View all open support tickets.

```
/admin tickets
```

***

### `/admin tenants`

List all provisioned accounts (tenants).

```
/admin tenants
```

## Next Steps

<CardGroup cols={2}>
  <Card title="Discord Alerts" icon="bell" href="/integrations/discord-alerts">
    Set up real-time alerts
  </Card>

  <Card title="Discord Support" icon="headset" href="/integrations/discord-support">
    Get help via Discord
  </Card>
</CardGroup>
