{% extends 'paxalia/base.html' %} {% load static i18n %} {% block title %}{% trans "Paxalia API Keys" %} – Paxalia Analytics{% endblock %} {% block page_title %}{% trans "Paxalia API Keys" %}{% endblock %} {% block page_subtitle %}{% trans "Credentials for server-to-server event ingestion and the read API" %}{% endblock %} {% block extra_css %} {% endblock %} {% block dashboard_content %}
{% if new_key_plaintext %}
{% trans "Copy this key now — it won't be shown again:" %}
{{ new_key_plaintext }}
{% endif %}

{% trans "Create a Key" %}

{% csrf_token %}

{% trans "Send it as a header on requests to the Paxalia API:" %} Authorization: Bearer pxa_... — {% trans "never usable from browser-side JavaScript; use the public event snippet for that instead." %}

{% trans "Keys" %}

{% if keys %} {% for key in keys %} {% endfor %}
{% trans "Name" %} {% trans "Key" %} {% trans "Scopes" %} {% trans "Status" %} {% trans "Last used" %} {% trans "Actions" %}
{{ key.name }} {{ key.key_prefix }}… {% if key.scope_ingest %}{% trans "ingest" %}{% endif %} {% if key.scope_read %}{% trans "read" %}{% endif %} {% if key.is_active %}{% trans "Active" %}{% else %}{% trans "Revoked" %}{% endif %} {{ key.last_used_at|date:"Y-m-d H:i"|default:"—" }} {% if key.is_active %}
{% csrf_token %}
{% endif %}
{% csrf_token %}
{% else %}
{% trans "No API keys yet." %}
{% endif %}
{% endblock %} {% block page_scripts %} {% endblock %}