---
title: "Login and retrieve a JWT Token"
method: POST
path: "/auth"
tags: ["auth"]
---

# Login and retrieve a JWT Token

`POST /auth`

Login with the provided credentials (POST data) and return a JWT Token for this user.

## Headers

- `X-Fields` string, mask

## Request body

- AuthModel
  - `password` string, required — the user password
  - `username` string, required — the user username

## Response `200`

Success

- TokenReplyModel
  - `authentication_token` string, required

## Other responses

- `401` — Wrong credentials

---

[API](https://skmtc.net/contractp/apis/contract-p.md) · [All operations](https://skmtc.net/contractp/apis/contract-p/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/contractp/contract-p/revisions/8ce53ebd6bd3/schema)
