{% extends "profile_base.html" %} {% set profile_security_active = "tokens" %} {% block profile_content %}
{% set breadcrumbs = [ {"name": current_user.name | display_name(current_user.username), "href": "/profile"}, {"name": "API tokens", "href": "/profile/tokens"}, {"name": "Create"} ] %} {% include "partials/breadcrumbs.html" %}

Create token

{% include "partials/flash.html" %}

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.

A label to help you recognize the token later.
Defaults to 1 month.
{% if token_limit_reached %}
You already have 5 active API tokens. Revoke one to create another.
{% endif %}
{% with primary_label="Create token", primary_disabled=token_limit_reached, cancel_href="/profile/tokens" %} {% include "partials/form_actions.html" %} {% endwith %}
{% endblock %}