To create a token, use the following request:

POST /auth/tokens

Example request

POST /auth/tokens HTTP/1.1
Content-Type: application/json

{
	"username": "demo",
	"password": "demo"
}

Response

The LAC REST API returns the standard HTTP response codes described in the following table.

Status CodeDescription
200 OKToken created.
400 Bad RequestInvalid credentials.

Example Response

HTTP/1.1 200 OK
Content-Type: application/json

{
	"token": "42fb2fdbf0d65982bd4478753ba81773ffd84775"
}