{% extends "base.html" %} {% block title %}API Tokens - OpenRouter Monitor{% endblock %} {% block content %}

API Tokens Management

Generate New API Token

{% if new_token %}

Save Your Token!

{% endif %}

Your API Tokens

{% for token in api_tokens %} {% else %} {% endfor %}
Name Status Last Used Created Actions
{{ token.name }} {% if token.is_active %} Active {% else %} Revoked {% endif %} {{ token.last_used_at or 'Never' }} {{ token.created_at }} {% if token.is_active %} {% endif %}
No API tokens found. Generate your first token above.

Using API Tokens

Include your API token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

Available endpoints:

{% endblock %}