/impersonate [POST]

ThoughtFarmer REST API Method: /impersonate

Will allow administrators to impersonate another user for API calls. It requires authentication of an admin username and password and a userID of the requested user for impersonation. If successful, it returns a token for the requested user that can be passed into the other API calls to represent that user. 

Response Formats:

HTTP Method(s):
Requires Authentication:
false, user making call must be a ThoughtFarmer administrator


Parameter Type Description 
username string Required. The username of the user to authenticate
password string Required. The password of the user to authenticate
impersonateUserId int Required. The id of the requested user for impersonation.
applicationId string Required. A valid application id that allows the client to make calls against the API
Response Status Codes:
200 - Authentication successful
401 - Error validating user or application id
403 - Insufficient permissions to impersonate user
404 - Invalid impersonateUserId
Example request
  Content-Type: application/json
    "username": "user",
    "password": "password",
    "impersonateUserId": 1234