---
title: "Login user"
method: POST
path: "/login"
tags: ["Login"]
---

# Login user

`POST /login`

## Request

- Base URL: `https://api.tetrascience.com`
- URL: `https://api.tetrascience.com/login`
- Auth: none required

Authenticate user credentials with email and password. Use this for standard username/password login flows to obtain user tokens for API access.

## Request body

- object
  - `email` string, email
  - `password` string, password
  - `subdomain` string

## Response `200`

Login Successful

- object
  - `user` object
    - `authType` AuthType (unresolved $ref)
    - `email` Email (unresolved $ref)
    - `firstName` string
    - `lastName` string
    - `id` Id (unresolved $ref)
    - `lastActivity` string
    - `status` 'active' | 'inactive'
    - `systemRole` string
    - `roles` object[]
      - `id` Id (unresolved $ref)
      - `orgSlug` Schema (unresolved $ref)
      - `organizationId` Id (unresolved $ref)
      - `role` string
      - `roleId` Id (unresolved $ref)
      - `status` Status (unresolved $ref)
      - `userId` Id (unresolved $ref)
      - `orgName` string
  - `token` string: JWT token

## Other responses

- `401`: Not authorized, details in response body

---

[API](https://skmtc.dev/tetrascience/apis/administration.md) - [All operations](https://skmtc.dev/tetrascience/apis/administration/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrascience/apis/administration/revisions/c1c829febcc5?raw)
