---
title: "Login"
method: POST
path: "/v1/auth/login"
tags: ["Authentication"]
deprecated: true
---

# Login

`POST /v1/auth/login`

> **Deprecated.**

DEPRECATED: Use as a fallback method only - Phrase Platform API tokens should be the preferred way. Returns information about the user with the token to be used in the Authorization header and its expiration date.

## Request body

- LoginRequestV1
  - `userName` string, required
  - `password` string, required
  - `otpCode` string
  - `organization` OrganizationUidV1
    - `uid` string

## Response `200`

Successful login.

- LoginResponseV1
  - `token` string, required
  - `tokenType` 'Bearer', required
  - `expires` string, required

## Other responses

- `400` — Bad request
- `401` — Not authorized
- `403` — Forbidden
- `404` — Resource not found
- `405` — Method not allowed
- `408` — Timeout
- `410` — Gone
- `415` — Unsupported media type
- `429` — Too many requests
- `500` — Internal server error
- `501` — Not implemented

---

[API](https://skmtc.net/phrase/apis/control-hub-service.md) · [All operations](https://skmtc.net/phrase/apis/control-hub-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phrase/control-hub-service/revisions/98ecac7ba2bf/schema)
