Authentication

The Wattio API uses JWT to authenticate requests. Authentication to the API is performed via Bearer Token. Provide your user and password to receive a new access token. All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail. Note: do not send content-type: application/json to the API, always send it as content-type: text/plain

POST

/api/auth

Parameters

userstringREQUIRED
The user you use to login.
passwordstringREQUIRED
The user password.

Response

Returns an object containing the access token.

Success