---
title: "CreateSessionTokenWithCredentials"
method: POST
path: "/v1/auth/login/"
tags: ["auth"]
---

# CreateSessionTokenWithCredentials

`POST /v1/auth/login/`

Create a new session token with the provided credentials.

## Request body

- DtoCreateSessionToken
  - `password` string
  - `username` string

## Response `200`

OK

- EntityAccessToken
  - `expiresIn` integer
  - `tokenStr` string
  - `type` string

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/goinfinite/apis/osapi.md) · [All operations](https://skmtc.net/goinfinite/apis/osapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goinfinite/osapi/revisions/7320a5d8ef9e/schema)
