{% extends "layout.html" %} {% block title %}Access tokens{% endblock %} {% block body_class %}plain-page token-page{% endblock %} {% block body %}

Access tokens

4CAT has an API, which is documented with an OpenAPI-compatible specification here. Some API endpoints require authentication. You can generate an access token through which to authenticate yourself on this page. Alternatively, tokens may be requested programmatically via the /api/request-token/ endpoint, when requested with a currently logged-in session.

{% if not tokens %}

You currently have no active access token(s). Request one:

{% else %} {% for token in tokens %} {% endfor %}
Token Calls so far Expiration
{{ token.token }} {{ token.calls }} {{ token.expires|datetime }}
{% endif %}
{% endblock %}