RBAC

Role mappings link Discord role IDs to permission keys. Permissions: tickets.create, tickets.view.own, tickets.view.all, tickets.manage, tickets.assign, tickets.close, tickets.ai.pause, tickets.ai.resume, tickets.ai.force_handoff, settings.manage, billing.manage.

Configure mappings in the dashboard under Permissions. The API evaluates permissions from the user's roles on the server. Results are cached in Redis (TTL 60 seconds); cache is invalidated when mappings change.