Skip to content

Create an Access Token

Will return a new access_token for the user

API endpoint

https://subdomain.helpmonks.com/p/sso/oauth/create_token

Parameters

Name Required Value Comment
access_id Yes String
access_secret Yes String
user_email Yes String

Example

POST : https://subdomain.helpmonks.com/p/sso/oauth/create_token
{
    "access_id" : "bedcdbb55b31ff7bacd9cb4b4e99abfc",
    "access_secret" : "13dee613cbc84826a33cc4c7effd17ee179ef0d1a06f4be",
    "user_email" : "awesome@user.com"
}

Result

{
    "access_token": "71ff80d51fd57fdf9c11172230762b64",
    "user": {
        "id": "5a3ddc31bc3056898f52752d",
        "email": "awesome@user.com",
        "first_name": "Awesome",
        "last_name": "Monk"
    },
    "access_id": "bedcdbb55b31ff7bacd9cb4b4e99abfc"
}

The result contains the access_token which you can now use to log into the users Helpmonks account or use for other SSO API calls.

Statuscode

On success will return 200

Authenticating with invalid credentials will return 401

Errors will return 500