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

Request body

usernamestring
emailstring email
passwordstring required

Example request

{
  "password": "password",
  "email": "email",
  "username": "username"
}

Response

keystring required
user_namestring
userstring

Example response

{
  "user_name": "user_name",
  "user": "user",
  "key": "key"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.