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 Code | Description |
|---|---|
| 200 OK | Token created. |
| 400 Bad Request | Invalid credentials. |
Example Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"token": "42fb2fdbf0d65982bd4478753ba81773ffd84775"
}