{% extends "admin/base.html" %} {% block title %}Manage User: {{ user.username }}{% endblock %} {% block content %}
← Back to Dashboard {% include 'partials/_flash_messages.html' %}

User: {{ user.username }}

{% if not user.is_admin %}
{% endif %}

Create New API Key

Hint: Set a custom limit (e.g., 100 requests per 1 minute). Leave blank to use the global default settings.

API Keys

{% for key in api_keys %} {% else %} {% endfor %}
Name / Prefix Created Rate Limit Status Actions
{{ key.key_name }}
{{ key.key_prefix }}
{{ key.created_at.strftime('%Y-%m-%d %H:%M') }} {% if key.rate_limit_requests and key.rate_limit_window_minutes %} {{ key.rate_limit_requests }} / {{ key.rate_limit_window_minutes }} min {% else %} Default {% endif %} {% if key.is_revoked %} Revoked {% elif key.is_active %} Active {% else %} Disabled {% endif %}
{% if not key.is_revoked %}
{% if key.is_active %} {% else %} {% endif %}
{% endif %}
No API keys found for this user.
{% endblock %}