---
title: "Log in with email and password"
method: POST
path: "/v1/auth/jwt/login"
tags: ["auth"]
---

# Log in with email and password

`POST /v1/auth/jwt/login`

## Request

- Base URL: `https://api.smartloop.ai`
- URL: `https://api.smartloop.ai/v1/auth/jwt/login`
- Auth: none declared

OAuth2 password flow: `username` is the account email. Returns an access token and a refresh token.

## Request body `application/x-www-form-urlencoded`

- object
  - `username` string, required
  - `password` string, required

## Response `200`

Signed in

- TokenPair
  - `access_token` string, required
  - `refresh_token` string, required
  - `token_type` 'bearer', required

## Other responses

- `400`: LOGIN_BAD_CREDENTIALS: wrong password, unknown email or inactive account
- `422`: Validation error

---

[API](https://skmtc.dev/smartloop/apis/smartloop-platform-api.md) - [All operations](https://skmtc.dev/smartloop/apis/smartloop-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smartloop/apis/smartloop-platform-api/revisions/17a787eabbe8?raw)
