Create token
Create Access Token
Authentication
Endpoint
Request Parameters
Response
Response Body
Request Example:
Create and return new access and refresh tokens for a user based on their email and password.
Args: email (str): The email of the user for whom the tokens are created. password (str): The password of the user for authentication.
Returns: AuthSchema: The schema containing the new access and refresh tokens.
Raises: HTTPException: If the token creation fails due to incorrect credentials.
Query parameters
emailstringRequired
passwordstringRequired
Header parameters
acceptstringRequiredExample:
application/json
application/jsonx-api-keystringRequiredExample:
X api key for authentication
[x-api-key]Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
/auth/tokenLast updated