{% extends "base.html" %} {% block title %}Users API Reference{% endblock %} {% block content %}

Users API Reference

Authentication & User Management

Authentication

All API requests require authentication using JWT tokens. Include the access token in the Authorization header.

Authorization: Bearer YOUR_ACCESS_TOKEN

User Schema

email string required
password string required
name string
role string user | admin
verified boolean

API Endpoints

POST Register User

                        
POST Login

                        
GET Get Current User

                        
GET List Users Admin

                        
PUT Update User

                        
POST Refresh Token

                        
POST Logout

                        
{% endblock %} {% block scripts %} {% endblock %}