{% extends "base.html" %} {% block title %}App Keys Management{% endblock %} {% block content %}

App Keys Management

Manage API keys and printer pairing keys for QZ Tray

QZ Tray Printer Pairing Keys
{% if error %} {% endif %} {% if success %} {% endif %}
Generate New Pairing Key
Active Pairing Keys
{% if pairing_keys %} {% for key in pairing_keys %} {% endfor %} {% else %} {% endif %}
Printer Name Pairing Key Valid Until Days Remaining Actions
{{ key.printer_name }} {{ key.pairing_key }} {{ key.valid_until }} {% set days_left = key.days_remaining %} {% if days_left > 30 %} {{ days_left }} days {% elif days_left > 0 %} {{ days_left }} days {% else %} Expired {% endif %}
No pairing keys found. Create one to enable QZ Tray printing.
Application API Keys
Generate New API Key
Active API Keys
{% if api_keys %} {% for key in api_keys %} {% endfor %} {% else %} {% endif %}
Key Name Key Type API Key Created Actions
{{ key.key_name }} {{ key.key_type }} {{ key.api_key[:20] }}... {{ key.created_at.strftime('%Y-%m-%d %H:%M') if key.created_at else 'N/A' }}
No API keys found. Create one for external integrations.
Note: Keep your API keys secure and never share them publicly. Regenerate keys if you suspect they have been compromised.
{% endblock %}