Authentication endpoints

Obtain user authentication token

To obtain user authentication token
/auth/token/login/

Method

Request

Response

POST

  • username

  • password

HTTP_200_OK
  • auth_token

HTTP_401_Unauthorized
  • detail (optional)

  • non_field_errors (optional)

To logout user (remove user authentication token)
/auth/token/logout/

Method

Request

Response

POST

HTTP_204_NO_CONTENT