user_login_link
Returns a login link. Also automatically creates the specified user if provided external_id isn't found in the system.
Commandline Example: curl --data "ai_login_id=api_user&ai_login_password=IhN4hth1IwlL&ai_command=user_login_link&external_id=999999&username=test9999&first_name=API&last_name=TEST&phone=4093334444@email=test@example.com" https://example.com/service
Name | Type | Required | Example |
---|---|---|---|
external_id | String | Y | abc123 The external user ID, used to uniquely identify this user between the two systems (required) |
username | String | Y | johndoe The username of the customer (alphanumeric and dashes). This cannot be left blank if automatic user creation is desired. |
password | String | N | Pass123 Not required. If provided, the password must contain at least 7 characters and include at least one uppercase letter, one lower case letter, and one number |
first_name | String | Y | John |
last_name | String | Y | Doe |
phone | String | Y | 8005551234 |
email | String | Y | john.doe@example.com |
company | String | N | Doe Enterprises |
account_type | String | N | Customer An optional/custom account type. If "User" (the default), this can be omitted. |
date_added | Date String | N | 2014-01-01 13:59:00 YYYY-MM-DD HH:MM:SS |
Name | Type | Example |
---|---|---|
user_id | Integer | 1001 The new internal ID used by this system. It is not required that you store this value as we will store your external_id in association with this account. |
ai_sid | Integer | 31754 The session keys passed to assume the newly logged-in session |
ai_sid_key | String | i1e9hr978d |
dashboard_url | String | http://domain.com/dashboard?ai_sid=31754&ai_sid_key=i1e9hr978d The URL you may use to send this user to our dashboard page |