{% extends "base.html" %} {% block title %}API tokens | SUB-ALIGATOR{% endblock %} {% block content %} {% if has_new_token %}
Token created – copy it now

The new API token {{ new_token_name }} was created. Copy it now – it will not be shown again. Only its hash is stored.

Use it as: Authorization: Bearer {{ new_token_value }}

{% endif %}
API tokens
{% if error != "" %}

{{ error }}

{% endif %}

Tokens authenticate the JSON REST API under /api/v1/ via the Authorization: Bearer header. See the README for endpoint documentation.

{% if tokens.len() == 0 %}

No API tokens yet.

{% else %} {% for t in tokens %} {% endfor %}
Name Token Status Created Last used Actions
{{ t.name }} {{ t.token_prefix }}… {% if t.enabled %} active {% else %} revoked {% endif %} {{ t.created_at_local }} ({{ t.created_by }}) {{ t.last_used_at_local }} {% if t.enabled %} {% else %} {% endif %}
{% endif %}
Create new token

A descriptive name of the integration that will use this token. It appears in the audit log as actor api:<name>.

Back
{% for t in tokens %} {% if t.enabled %} {% else %} {% endif %} {% endfor %} {% endblock %}