{% extends 'base.html' %} {% load static %} {% block title %}API Management{% endblock %} {% block css %} {% endblock %} {% block content %}

API Management

Manage API keys, endpoints, and monitor API usage

Active API Keys
{{ active_api_keys }}
{{ total_api_keys }} total
API Calls Today
{{ api_calls_today|floatformat:0 }}
{{ api_calls_change }}% vs yesterday
Success Rate
{{ success_rate }}%
Last 24 hours
Avg Response Time
{{ avg_response_time }}ms
Last hour

API Keys

{% for api_key in api_keys %} {% endfor %}
Name Key Permissions Usage Rate Limit Last Used Status Actions
{{ api_key.name }}
{{ api_key.description|default:"No description" }}
{{ api_key.key_preview }}
{% for permission in api_key.permissions.all %} {{ permission.name }} {% endfor %}
{{ api_key.usage_count }}
{{ api_key.usage_today }} today
{% if api_key.rate_limit %}
{{ api_key.rate_limit }}/{{ api_key.rate_limit_period }}
{% else %} Unlimited {% endif %}
{% if api_key.last_used %}
{{ api_key.last_used|date:"M d, Y" }}
{{ api_key.last_used|timesince }} ago
{% else %} Never {% endif %}
{% if api_key.is_active %} Active {% else %} Inactive {% endif %} {% if api_key.expires_at %}
Expires {{ api_key.expires_at|date:"M d, Y" }}
{% endif %}
{% if api_key.is_active %} {% else %} {% endif %}

Available Endpoints

{% for endpoint_group in api_endpoints %}
{{ endpoint_group.name }}
{{ endpoint_group.endpoints|length }} endpoints
{% for endpoint in endpoint_group.endpoints %}
{{ endpoint.method }} {{ endpoint.path }}
{% endfor %}
{% endfor %}

Usage Analytics

{% endblock %} {% block js %} {% endblock %}