rest/auth

rest/auth

URL

http://<<ip address>>/rest/auth

Method

POST

Description

Request a JWT token, to be used with subsequent calls. The token should be provided as a Bearer token in the header.

Request

{ "username": "<username>", "password": "<password>" }

Response

{ "token": "<JWT>" }

Possible Errors

HTTP401 if username or password incorrect

HTTP400 when request was invalid

{ "message": «human readable error» }

Status

Added in 2.5