{% extends "base.html" %} {% block title %}API Tokens — {{ project.name }} — Fossilrepo{% endblock %} {% block content %}
Tokens for CI/CD systems and automation. Used with Bearer authentication.
{{ token.token_prefix }}...
{% if search %}No tokens matching "{{ search }}".{% else %}No API tokens generated yet.{% endif %}
{% if not search %} Generate the first token {% endif %}Use the token with the CI Status API:
curl -X POST {{ request.scheme }}://{{ request.get_host }}/projects/{{ project.slug }}/fossil/api/status \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"checkin": "abc123", "context": "ci/tests", "state": "success"}'