---
title: "Login to server"
method: GET
path: "/api/login"
tags: ["sts-controller"]
---

# Login to server

`GET /api/login`

Authenticates the user and returns user information. This service is optional and primarily used for session-based authentication.

## Response `200`

Successfully authenticated. The session ID is returned in a cookie named `JSESSIONID`. You need to include this cookie in subsequent requests.

- unknown

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/okdokument/apis/signatus-api.md) · [All operations](https://skmtc.dev/okdokument/apis/signatus-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/okdokument/signatus-api/revisions/9c9e86b39952/schema)
