{% extends "config/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}API Tokens - Pychestrate{% endblock %} {% block content %} {% set form = form_data or {} %}
Tokens let the pyc command line, CI jobs, and scripts call the
API as you, with Authorization: Bearer <token>. A token
has your permissions and never more; a read-only token can only read.
| Name | Token | Access | Status | Created | Last used | Expires | Actions |
|---|---|---|---|---|---|---|---|
| {{ token.name }} | {{ token.token_hint }}… | {{ token.scope }} | {{ ui.status_badge(token.status) }} | {{ token.created_at | format_datetime }} | {% if token.last_used_at %}{{ token.last_used_at | format_datetime }}{% else %}never{% endif %} | {{ token.expires_at | format_datetime }} | {% if token.status == 'active' %} {% else %} — {% endif %} |
Administrators: service accounts and everyone's tokens are on Admin › API Tokens.
{% endif %} {% endblock %}