{% extends "admin/base.html" %} {% block title %}API tokens · bragi admin{% endblock %} {% block content %}

API tokens

Personal access tokens authenticate scripts and bots. Use them with the Authorization: Bearer ... header on any admin endpoint or the JSON REST surface at /admin/api/sites/<slug>/posts/.

Create a token

Scopes {% for value, label in scopes %}

{% endfor %}

Active tokens ({{ tokens | length }})

{% if not tokens %}

No tokens yet.

{% else %} {% for tok in tokens %} {% endfor %}
Name Scopes Created Last used Expires
{{ tok.name }}
brg_{{ tok.public_id }}_...
{{ tok.scopes | join(', ') or 'none' }} {{ tok.created_at or '-' }} {{ tok.last_used_at or 'never' }} {{ tok.expires_at or 'never' }}
{% endif %}
{% endblock %}