Token Endpoints

Token Create

Use this endpoint to obtain user authentication token. This endpoint is available only if you are using token based authentication.

Default URL: /token/login/

Method

Request

Response

POST

  • {{ User.USERNAME_FIELD }}

  • password

HTTP_200_OK

  • auth_token

Token Destroy

Use this endpoint to logout user (remove user authentication token). This endpoint is available only if you are using token based authentication.

Default URL: /token/logout/

Method

Request

Response

POST

HTTP_204_NO_CONTENT