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

# Key Management

> Website key management plus public RG_LIVE key API

# Key Management

## In the Website

From the dashboard you can:

* generate keys
* choose temporary or permanent type
* set notes/prefixes
* manage key lifecycle for your script

## Public API Endpoints

Only these public routes are for external RG\_LIVE integrations:

* `POST /api/keys/create`
* `POST /api/keys/verify`

## Public API Auth

Use:

* `x-api-key: rg_live_...`
* or `Authorization: Bearer rg_live_...`

## Create Example

```json theme={null}
{
  "scriptId": "<script_uuid>",
  "type": "temporary",
  "duration": 1440,
  "note": "premium",
  "prefix": "PREM"
}
```

## Verify Example

```json theme={null}
{
  "scriptId": "<script_uuid>",
  "key": "Key_..."
}
```
