{% extends "base.html" %} {% block title %}API Keys — Stratum{% endblock %} {% block content %}

API Keys

Long-lived keys for CI/CD pipelines and integrations.

Usage
curl -H "X-API-Key: <key>" https://your-stratum/api/pipeline/scan
curl -H "Authorization: Bearer <key>" https://your-stratum/api/pipeline/scans
{% if keys %}
{% for key in keys %} {% endfor %}
Label ID Created Last Used
{{ key.label }} {{ key.id }} {{ key.created_at[:10] if key.created_at else '—' }} {{ key.last_used[:10] if key.last_used else 'Never' }}
{% else %}
No API keys yet

Generate a key to authenticate pipeline scans and integrations.

{% endif %}
{% endblock %}