Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.5 KB

token_endpoints.rst

File metadata and controls

35 lines (27 loc) · 1.5 KB

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/ Backward-compatible URL: /token/create/

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/ Backward-compatible URL: /token/destroy/

Method Request Response
POST -- HTTP_204_NO_CONTENT