{% extends "organizations/edit_organization_base.html" %} {% load crispy_forms_tags %} {% block sidebar_footer %}

Information

Use the API documentation to learn how authentication works, browse available endpoints, and copy example requests.

- Read the API documentation
- Explore the Swagger reference

{% endblock %} {% block tab_content %} {% if new_token %}
Warning: This token will only be displayed once. Make sure to copy it now before closing this page.
Use this token in the Authorization header: Authorization: Bearer {{ new_token }}
{% endif %}

New Token

{% csrf_token %} {% crispy token_form %}

Tokens

{% if api_scopes_enabled %} {% endif %} {% for token in api_tokens %} {% if api_scopes_enabled %} {% endif %} {% empty %} {% endfor %}
Name AccessScopesCreated At Last Used Created By Status
{{ token.name }} {% if token.description %}
{{ token.description }} {% endif %}
{% if token.access_mode == "write" %} {{ token.get_access_mode_display }} {% else %} {{ token.get_access_mode_display }} {% endif %} {% if token.scopes %} {% for scope in token.scopes %} {{ scope }} {% endfor %} {% else %} All scopes {% endif %} {{ token.created_at|date:"Y-m-d H:i" }} {% if token.last_used_at %}{{ token.last_used_at|date:"Y-m-d H:i" }}{% else %}Never{% endif %} {% if token.created_by %}{{ token.created_by.username }}{% else %}Deleted user{% endif %} {% if token.is_active %} Active {% else %} Revoked on {{ token.revoked_at|date:"Y-m-d H:i" }} {% if token.revoked_by %} by {{ token.revoked_by.username }} {% endif %} {% endif %} {% if token.is_active %} {% endif %}
No API tokens created yet.
{% endblock %} {% block extra_scripts %}{% endblock %}