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

# Login

`POST /api/v1/login`

Login route.

Args:
    credentials (CredentialsInfo): User credentials.

Returns:
    TokenInfo: Token information.

## Request body

- CredentialsInfo — Credentials information
  - `username` string, nullable — RDI database user
  - `password` string, nullable — RDI database password

## Response `200`

Successful Response

- TokenInfo — Token information
  - `access_token` string, required
  - `token_type` string, required

## Changes

- **2026-02-02** `f0a3d26cc0c6` — 1 info
  - removed the non-success response with the status `422`
- **2025-05-09** `acb8b4d3bbed` — 1 warning, 1 info
  - removed the request property `user`
  - added the new optional request property `username`
- **2025-02-27** `b0ed6c7dac42` — 1 warning, 2 info
  - removed the request property `username`
  - added the new optional request property `user`
  - added the non-success response with the status `422`

[Change history](https://skmtc.dev/redis/apis/redis-data-integration-api/changes/api/v1/login/post.md)

---

[API](https://skmtc.dev/redis/apis/redis-data-integration-api.md) · [All operations](https://skmtc.dev/redis/apis/redis-data-integration-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/redis/redis-data-integration-api/revisions/30f630f0aac5/schema)
