/authenticate [POST]

ThoughtFarmer REST API Method: /authenticate

Attempts to authenticate a user based on the passed in parameters. If successful, it returns a token that can be passed into the other API calls to represent the authenticated user.

Response Formats:

HTTP Method(s):
Requires Authentication:
false (no token required), but the user attempting to authenticate must be a ThoughtFarmer administrator.


Parameter Type Description 
username string Required. The username of the user to authenticate
password string Required, if an Authorization header is not set. The password of the user to authenticate
applicationId string Required. A valid application id that allows the client to make calls against the API
When ThoughtFarmer is configured to use an external login provider, the password parameter can be omitted, and an authorization header can be set with a REST API authentication token instead. A REST API authentication token can be generated in the admin panel, on the API Token page.

Response Status Codes:
200 - Authentication successful
401 - Error validating user or application id
Example request
  Content-Type: application/json
    "username": "user",
    "password": "password",
    "applicationId:" 123456