Authentication

Only Bearer Auth is supported. You must have a user account within Thingsee Operations to access these services. You will get a user account from your Thingsee Operations admin.

POST /auth/login

Curl example for getting tokens.

      curl -X POST \
        https://xxx.execute-api.xxx.amazonaws.com/prod/v1/auth/login \
        -H 'Content-Type: application/json' \
        -d '{
        "email": "user1@mail.com",
        "password": "pwd1"
      }'

A token returned by a successful authentication.

      {
        "data": {
          "token": "XXX",
          "refreshToken": "XXX"
        }
      }

From now on, you must include token to a header Authorization: Bearer <token> when making API calls. The token will expire after 15 minutes.

POST /auth/refresh

Refresh your access token by using refreshToken

      curl -X POST \
        https://xxx.execute-api.xxx.amazonaws.com/prod/v1/auth/refresh \
        -H 'Authorization: Bearer <token>' \
        -H 'Content-Type: application/json' \
        -d '{
        "refreshToken": "XXX"
      }'

Returns new tokens.

      {
        "data": {
          "token": "XXX",
          "refreshToken": "XXX"
        }
      }
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information