---
title: "POST /rest-auth/login/"
method: POST
path: "/rest-auth/login/"
tags: ["rest_auth", "v1"]
---

# POST /rest-auth/login/

`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 body

- Login
  - `username` string
  - `email` string, email
  - `password` string, required

## Response `201`

- LoginResponse
  - `key` string, required
  - `user_name` string
  - `user` string

---

[API](https://skmtc.net/lexpredict/apis/contraxsuite-api.md) · [All operations](https://skmtc.net/lexpredict/apis/contraxsuite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lexpredict/contraxsuite-api/versions/3429f921b4cb/schema)
