Generates temporary user tokens for individual users.


Returns a new temporary user token for this user. This temporary token is valid for only 5 minutes.



User Token must be kept secret and transferred only over SSL, as it's effectively as good as a user's email and password.

The following are the examples of HTTP status codes including errors that API can generate

Response codes

Response content


200 OK


Everything worked correctly. Temporary token has been retrieved.

401 Unauthorized

sig is empty

Missing required 'sig' header

401 Unauthorized

teamid is empty

Missing required 'teamid' header

404 Not Found

Object not found

User with this UserKey not found.

Using temporary token

For authorization in Slemma use the Java script to send a POST request to a specific dashboard (for example, with the received temporary token (parameter name is 'token') and team identifier (parameter name is 'teamid').

<form action="" target="_blank" method="POST"> 
                  Team ID
                  <input type="text" name="teamid">
                  Temporary token
                  <input type="text" name="token">
                  <input type="submit">

After successful authorization, the target dashboard will open.

Click Try It! to start a request and see the response here!