Use Login Token

Documentation index for AI tools: /llms.txt

This topic will show you how to generate and use Login Tokens for seamlessly authenticating users in ClickHelp. This is especially useful for authenticating Power Readers.

Only users with Administrator access can create login tokens.
Using ClickHelp API, call the Get Login Token method specifying which user you'd like to generate the token for, whether you need it to be multi-usable, and its expiry date.
  1. Use an existing user account or create one. You can use a Power Reader or a Contributor account. 
  2. You will get the token as the token field value in the response. Copy or extract it programmatically.
    JSON
    {
        "expirationDate": "2077-12-31T02:35:00Z",
        "token": "SMxf5RlJ586y4iYWemQyECH51ueoOdBF",
        "userName": "pr1",
        "isMultiUse": true
    }
  3. Manually or programmatically append the generated token to a link to restricted documentation as the t query parameter. For example:
    https://docs.hedronlabs.org/articles/my-publication/my-topic?t=SMxf5RlJ586y4iYWemQyECH51ueoOdBF
  4. Send this link to the user or show it in your application or on your website.

When clicking such a link, the user will get authenticated in your ClickHelp portal as the user you've specified when generating the token.

If you wish to learn more about Login Tokens, read The Token Login Mechanism.