Token Login

The following endpoint can be used to provide your clients with a single login to their Oktopost account.

How it Works

Obtaining the Login Token

In order to obtain the token, you must make an authenticated request to the endpoint below and include your application's privateKey.

Example Request

curl -i https://api.oktopost.com/v2/auth-token?privateKey=[KEY]

Example Result

{  
    "Result":true,
    "Token":"574dac5e6bcb31.23085498b3fc1c5d3398cca07bb31e5729d3a32f"
}

Note that the privateKey is available only for authorized applications. If you wish to use this endpoint, please contact us.

Final Redirect

Once the token has been obtained, the user has to be redirected to the following URL:

Example Redirect

https://app.oktopost.com/auth/token/id/[TOKEN]

By default, the user will be redirected to the Oktopost dashboard. If you wish to redirect the user to any other page within the platform you can add a _redirect parameter to the URL with the desired path, as such:

Example Redirect With Followup URL

https://app.oktopost.com/auth/token/id/[TOKEN]?_redirect=/calendar

Feedback and Knowledge Base