Skip to main content

RG_LIVE Endpoints

These are the only public routes intended for external tools using rg_live_* keys.

POST /api/keys/create

Creates a new key for a script.

Auth

Use one of:
  • x-api-key: rg_live_...
  • Authorization: Bearer rg_live_...
  • body field apiKey or api_key

Body

Notes

  • scriptId required
  • type: permanent or temporary
  • duration used for temporary keys (minutes)
  • prefix optional, sanitized to alphanumeric/-/_

Success (200)

Errors

  • 400 invalid JSON, missing scriptId, invalid prefix
  • 401 invalid API key
  • 500 internal error

POST /api/keys/verify

Validates whether a key exists for a script and is currently valid.

Auth

Use one of:
  • x-api-key: rg_live_...
  • Authorization: Bearer rg_live_...

Body

Valid (200)

Invalid (200)

Errors

  • 400 missing scriptId or key
  • 401 missing/invalid API key
  • 500 database/internal failure