GetAuthTokenUser

Gets UserName from a token

Gets the UserName from an AuthToken

GET https://signup.trialkey.ca/api/v2/GetAuthTokenUser

This endpoint allows a UserName to be looked up from an AuthToken. This can be used when using Quick Links to have a user log into your system via the TrialKey provided login page with your branding. Upon success, the system will redirect the user to the page you have specified in the dashboard along with the AuthToken as a query param. You can then use this AuthToken to ask TrialKey to validate it to find out who the user is via the GetAuthTokenUser() API, and then match them with your user profile in your own database/settings store.

Example URL:

https://www.trialkey.ca/api/v2/GetAuthTokenUser?AuthToken=<AUTH_TOKEN>&AccountAPIToken=<ACCOUNT_API_TOKEN>&Domain=mywebsite.com

Query Parameters

{
    "name"="Wilson",
    "owner": {
        "id": "sha7891bikojbkreuy",
        "name": "Samuel Passet",
    "species": "Dog",}
    "breed": "Golden Retriever",
}

Return Value: If any of the required parameters are missing, the call will fail with a 404 HTTP status code.

If the call succeeds, it will return the UserName as a string that corresponds to the AuthToken param.

Last updated