{% extends "profile_base.html" %} {% set profile_security_active = "tokens" %} {% block profile_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 | {% set order_value = query.order | default('-created_at', true) %} {% if order_value == "created_at" %} {% set next_created_order = "-created_at" %} {% else %} {% set next_created_order = "created_at" %} {% endif %}Created {% if order_value == "created_at" %} ↑ {% elif order_value == "-created_at" %} ↓ {% endif %} | {% if order_value == "expires_at" %} {% set next_expires_order = "-expires_at" %} {% else %} {% set next_expires_order = "expires_at" %} {% endif %}Expires {% if order_value == "expires_at" %} ↑ {% elif order_value == "-expires_at" %} ↓ {% endif %} | 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 %} |