← Back to all endpoints
POST
/login
public
Request Body
Content-Type
Format
application/json
object
Schema
Field
Type
Required
Description
school_id
string
Yes
Schul-ID (e.g. 1234)
username
string
Yes
Username without school prefix
password
string
Yes
User password
Example
{ "school_id": "<Schul-ID (e.g. 1234)>", "username": "<Username without school prefix>", "password": "<User password>" }
Responses
200
Successful Response
{ "access_token": "<access_token>", "refresh_token": "<refresh_token>", "school_id": "<school_id>", "username": "<username>", "encryption_ready": true, "expires_in": 0 }
422
Validation Error
{ "detail": [] }