Skip to content

Authenticates a user and returns a JWT token

POST
/api/v1/User/login

Sample request:

POST /api/v1/User/login
{
    "username": "johndoe",
    "password": "password123"
}

Authorizations

Request Body

Login credentials

object
username
required
string
>= 1 characters
password
required
string
>= 1 characters

Responses

200

Authentication successful

object
token
required
string
nullable
expires
string format: date-time
tokenType
required
string
nullable
accessLevel
required
string
nullable
numericLevel
integer format: int32
description
required
string
nullable

401

Invalid credentials

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties