Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
thingsee_services_api:authentication [2019/04/02 07:23]
tmuvee
thingsee_services_api:authentication [2019/04/02 10:57]
tmuvee
Line 3: Line 3:
 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. 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 ​=====+===== Authenticate using email and password ​=====   
 + 
 +<​Code>​POST /​auth/​login</​Code>​
  
 Curl example for getting tokens. Curl example for getting tokens.
Line 30: Line 32:
 From now on, you must include **token** to a header **Authorization:​ Bearer <​token>​** when making API calls. The token will expire after 15 minutes. 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 tokens ​===== 
 +<​Code>​POST /​auth/​refresh</​Code>​
  
 Refresh your access token by using **refreshToken** ​ Refresh your access token by using **refreshToken** ​