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

API tokens

Personal access tokens authenticate scripts and bots on the JSON API at /admin/api/sites/<slug>/posts/, using the Authorization: Bearer ... header. HTML admin routes reject bearer headers; use a browser session and CSRF token for those routes.

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 %}