{% extends "base.html" %} {% block title %}API Tokens - Fixture Manager{% endblock %} {% block content %}

🔑 API Tokens

Manage your API tokens for external application access

API Usage

Base URL: {{ request.url_root }}api/

Authentication: Include your token in the Authorization header:

Authorization: Bearer YOUR_TOKEN_HERE

Available Endpoints:

  • GET /api/fixtures - List all fixtures
  • GET /api/matches - List all matches
  • GET /api/match/<id> - Get match details
Your API Tokens
{% if tokens %}
{% for token in tokens %} {% endfor %}
Name Status Created Expires Last Used Actions
{{ token.name }} {% if token.is_valid() %} Active {% elif token.is_expired() %} Expired {% else %} Revoked {% endif %} {{ token.created_at.strftime('%Y-%m-%d %H:%M') }} {{ token.expires_at.strftime('%Y-%m-%d %H:%M') }} {% if token.last_used_at %} {{ token.last_used_at.strftime('%Y-%m-%d %H:%M') }} {% if token.last_used_ip %}
from {{ token.last_used_ip }} {% endif %} {% else %} Never used {% endif %}
{% if token.is_active and not token.is_expired() %} {% endif %}
{% else %}
No API tokens yet

Create your first API token to start accessing the API

{% endif %}
{% endblock %}