{% extends "layouts/settings.html" %} {% block title %}API Keys - Settings - Redea Social{% endblock %} {% block content %}

API Keys

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 %} Hide revoked keys {% else %} Show {{ revoked_count }} 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 %}

No active API keys.

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

{% else %}

No API keys issued yet.

Click Issue new key 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 %}