API Service Documentation

Command: user_login_token_update

Returns an updated login token for the provided login token

Request

NameTypeRequiredExample
ai_tokenStringYjohndoe

The existing ai_token to update

reissueIntegerN1 or 0

Should we issue a new token (destroying the old token)?

expirationDatetimeN2018-02-08

Any time string will do (passed through strtotime). This value is only used for brand new keys or when reissue is true.

Response

NameTypeExample
ai_tokenStringS09F2092JF09ASDAFDUFAAFDUD_BMX9I

The ai_token which can be used in other API calls that this user has permission to use

ai_expirationDatetime2019-07-20 12:00:00

The time that the specified token is set to expire