{% extends "layouts/app.html" %} {% from "components/breadcrumb.html" import page_header %} {% from "components/button.html" import button %} {% block title %}API Keys - NeoZen Admin{% endblock %} {% block page_header %} {% call page_header("API Keys", subtitle="Manage API keys for service accounts", breadcrumbs=[{"label": "Settings", "href": "/settings"}, {"label": "API Keys"}]) %} {{ button("Create API Key", variant="primary") }} {% endcall %} {% endblock %} {% block content %}

Security Notice

API keys grant full access to your account. Keep them secure and never share them publicly. Rotate keys regularly.

No API keys

Create an API key to enable programmatic access.

Using API Keys

Include your API key in the Authorization header:

curl -H "Authorization: Bearer YOUR_API_KEY" \
     https://api.example.com/v1/users

Or use the X-API-Key header:

curl -H "X-API-Key: YOUR_API_KEY" \
     https://api.example.com/v1/users

Available Scopes

users:read
Read user information
users:write
Create, update, and delete users
roles:read
Read roles and permissions
roles:write
Manage roles and assignments
sessions:read
Read session information
sessions:revoke
Revoke user sessions
{% endblock %}