API Service Documentation

Command: user_login_token

Returns a persistent login token for the provided username & password.
Commandline Example: curl --data "username=test9999&password=rxkb928-3x4" https://example.com/service

Request

NameTypeRequiredExample
usernameStringYjohndoe

The username of the customer

passwordStringYPass123

The password of the customer

reissueIntegerN1 or 0

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

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
@example commandline