{% extends "base.html" %} {% block title %}API Tokens - Fixture Manager{% endblock %} {% block content %}
Manage your API tokens for external application access
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 fixturesGET /api/matches - List all matchesGET /api/match/<id> - Get match details| 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 %}
|
Create your first API token to start accessing the API