Token Validation

Token expiration

Tokens are stored on the server and remain valid for 10 minutes from the time they are generated. However, once a token is used in a request, its expiry time is refreshed and is updated to 10 minutes after the time of the request. You can keep a token alive by refreshing it up to a maximum of 24 hours, at which point the token will expire automatically.

Once a token has expired, any requests made with that token will fail. To prevent a method call from failing, you should check to see if a token is still valid with the TokenValid method before you use it in a request. In general, you should request a new token before each action or operation that you perform using Octopus API to avoid any problems with expired tokens.

Token validation

Token Validation

// POST https://api.maximizer.com/octopus/TokenValid
// Authorization: Bearer <token>
{
}

Example: Token Validation

// Request β†’
// POST https://api.maximizer.com/octopus/TokenValid
// Authorization: Bearer <token>
{
}
// Response ←
{
    "Code": 0
}