---
title: "POST /accounts/appsmith/users/login"
method: POST
path: "/accounts/appsmith/users/login"
tags: ["accounts"]
---

# POST /accounts/appsmith/users/login

`POST /accounts/appsmith/users/login`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/accounts/appsmith/users/login`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- SOSLogin
  - `email` string, email, required

## Response `200`

OK

- AccountsTokenPairResponse
  - `access` string
  - `refresh` string
  - `requires_two_factor` boolean
  - `challenge_token` string, uuid
  - `methods` string[]
  - `requires_org_setup` boolean
  - `message` string
  - `new_org` boolean
  - `org_name` string
  - `is_first_login` boolean
  - `recovery_codes_warning` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
