cURL
curl --request POST \ --url https://api.example.com/api/v1/school/auth/login/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "password": "<string>", "email": "jsmith@example.com", "phone_number": "<string>" } '
{ "success": true, "data": "<unknown>", "tokens": {} }
Authentication for School/Tenant Users.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1
Schema for login success response (drf-spectacular).
User profile (id, email, roles, etc.)
access and refresh JWT tokens
Show child attributes