---
title: "POST /login"
method: POST
path: "/login"
---

# POST /login

`POST /login`

Login with user and password and get an access token to talk on behalf of the user

## Request body

- LoginCredentials
  - `email` string
  - `password` string

## Response `201`

success response

- UserSession
  - `accessToken` string
  - `internalUser` object
  - `user` User
    - `email` string
    - `firstName` string
    - `id` string
    - `lastName` string
    - `transcriptLang` string

## Other responses

- `401` — credentials are invalid
- `default` — unexpected error

---

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