rest_auth
v1
POST /rest-auth/login/
Check the credentials and return the REST Token if the credentials are valid and authenticated. Calls Django Auth login method to register User ID in Django session framework
Accept the following POST parameters: username, password Return the REST Framework Token Object's key.
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"password": "password",
"email": "email",
"username": "username"
}Response
Example response
{
"user_name": "user_name",
"user": "user",
"key": "key"
}Changes
No recorded changes to this operation across all 5 revisions of this API.