Authentication

The API accepts 3 different authentication methods:

M2mauth oauth2

Retrieve an Access Token with the OAuth 2.0 flows described below before accessing the API. Once you have an access token, send it in the Authorization HTTP header to authenticate with the API.

Flow type clientCredentials
Token URL https://machine.watttrix.io/oauth2/token
Scopes
  • https://node-api.watttrix.net/all.read:

M2mauth opic (openIdConnect)

OpenID Connect is a simple identity layer on top of the OAuth 2.0 protocol. It enables Applications to verify the identity of End-Users based on the authentication performed by an Authorization Server.

The OpenID Connect URL for this API is: https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_lcPsbjj2m.

Bearer token (http)

Send a bearer token (“JWT” Formatted) in the Authorization HTTP header to authenticate with the API.