{% extends "base.html" %} {% block content %}
API tokens let you authenticate API requests and Git smart-HTTP operations from scripts and tools. You can have up to 5 active tokens at a time. Learn more in the docs.
{% if page.results | length == 0 %}No API tokens yet.
{% else %}| Name | Token | Created | Expires | Status | |
|---|---|---|---|---|---|
| {{ token.name }} | {% if token.token_display | length > 12 %} {{ token.token_display[:12] }} {% else %} {{ token.token_display }} {% endif %} | {{ token.created_at | humantime }} | {{ token.expires_at | humantime }} | {% if token.is_active and not token.is_expired %} Active {% elif token.is_revoked %} Revoked {% elif token.is_expired %} Expired {% else %} Inactive {% endif %} | {% if token.is_active %} {% elif token.is_revoked %} {% endif %} |