{% extends "layouts/settings.html" %}{% load i18n %} {% block title %}{% translate "API Keys - Settings - Inkelligent" %}{% endblock %} {% block content %}

{% translate "API Keys" %}

{% translate "Used by AI agents and external scripts to act in your workspaces. Each key can be scoped to one workspace and an explicit list of social accounts." %}

{# Flash messages — success / error from the issue + revoke flows. #} {% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% if revoked_count %}
{% if show_all %} {% translate "Hide revoked keys" %} {% else %} {% translate "Show" %} {{ revoked_count }} {% translate "revoked" %} {% endif %}
{% endif %} {% if rows %}
{% for row in rows %}
{% include "api_keys/_key_row.html" with row=row %}
{% endfor %}
{% else %}
{% if revoked_count and not show_all %}

{% translate "No active API keys." %}

{% translate "Show" %} {{ revoked_count }} {% translate "revoked" %} {% translate "or click" %} {% translate "Issue new key" %} {% translate "to mint a new one." %}

{% else %}

{% translate "No API keys issued yet." %}

{% translate "Click" %} {% translate "Issue new key" %} {% translate "to mint one for an agent." %}

{% endif %}
{% endif %} {# ---- Issuance modal ---------------------------------------------- #} {% include "api_keys/_issue_modal.html" %} {% comment %} One-time token reveal modal (rendered server-side when a key was just issued; ``showRevealModal`` is initialised above). {% endcomment %} {% if reveal_token %} {% include "api_keys/_token_reveal.html" with token=reveal_token key_name=reveal_key_name %} {% endif %}
{% endblock %}