Please enable JavaScript to view this site.

iService API Documentation

Navigation: Introduction

Login API (webapp-api-login)

Scroll Prev Top Next More

login

Most API requests require the user to be authenticated before any meaningful response data is provided. The exceptions to this are within the Customer Portal APIs (webbapp-api-findanswers). Users may browse the knowledge base, view articles, and submit questions using the built-in Ask a Question form without logging into iService. Although there are additional features available to customers that login (access to their history, subscriptions, etc.), most of the features within the customer portal are available to anonymous users.

 

For those API endpoints that require authentication, the user must first login to receive a cookie that contains a session ID. The webapp-api-login form contains the various endpoints used to authenticate and obtain details about logged in users. The session ID obtained during authentication is then used for all subsequent API requests keeping the user logged in during their session. iService keeps track of actions used by the session ID, and will automatically log the user out when there have not been any actions taken (page reload, etc.) for a specified time frame. The default time frame for agent inactivity is 90 minutes, but this can be overridden with new values for each agent in the Agent Settings page.

 

Endpoints

 

The endpoints within the login form include the following:

 

login - This is used to log a user into iService and provide the cookie and session ID.

agentlogin - This is used for MS Active Directory integration, but is deprecated in v8.

loggedin - returns details about the logged in user, including access rights from their user type.

Register - This API registers a new user by creating the contactID and contact properties.

registeropenid - This API creates the OpenID GUID value and sets it for the contact. For new users, this creates a contact and sets the OpenID GUID for that user as their login.

logout - This API logs the user out of iService.

resetsend  - This API generates a password reset notification.

resetconfirm -  This API creates the new password after the user clicks on the reset link sent via resetSend.

 

Users log into iService with either a username and password, or a Google openID GUID associated with their contact.

 

JSON Value Descriptions for Logged In Object

 

 

The API Response for the LoggedIn object returns the following details. These values are used within several API endpoints.

 

Name

Type

Description

accessRights

Array

An array of strings. Each item is an access rights granted to the user.

accessibleSegments

Array

An array of strings. Each item is a segment ID. These IDs describe the segments to which the user has been granted access in the Agent Admin page. For non-agents, the list represents the segments that are included within the website associated with the domain.

alsoUseDefaultCSS

Boolean

Deprecated.

broadcastMessage

String

The details of the broadcast message displayed on the top of the iService agent UI. This is generally HTML.

chats

Array

An array of strings. Each item is an interaction ID for chats that are currently assigned to the agent.

contactID

String

Contact ID of the logged in user.

contactName

String

The name of the logged in user. If there is no name (First or Last), the email or login is returned. Otherwise, the contact ID is provided.

isAvailable

Boolean

Shows the availability status of a logged in user to handle chat requests.

isLoggedIn

Boolean

Represents the status of the logged in user. True if logged in, false if not.

isPasswordResetConfigured

Boolean

Indicates if the website associated with the URL has password reset configured. This is set in the Websites page.

logins

Array

An array of login objects.
 
The values are described below.

logins[].name

String

The login email address, username, or openID identifier.

logins[].type

String

"" - when the value is a username

"Email" - when the value is an email address

"Bounced" - when the email address listed was marked as undeliverable.

"Google", etc. - when the value is an openID login identifier.

 

numChats

Number

Shows the number of chats assigned to the agent.

registrationFormID

String

Deprecated

spamPolicyUrl

String

This URL is displayed on the bottom of the iService agent UI and should contain terms of service details related to sending email.

styleSheet

String

Deprecated

tenantID

String

Represents the tenant ID of a logged in user.

 

tog_plus        Authenticating a user (api=login)

 

tog_plus        Getting details for the logged in user (api=loggedin)

 

tog_plus        Registering a new user (api=register)

 

tog_plus        Registering new user with openid (api=registeropenid)

 

tog_plus        Logging a user out of iService (api-logout)

 

tog_plus        Forgot/Resetting a password (api=resetSend)

 

tog_plus        Confirm Reset Password (api=resetConfirm)

 

 

 

 

 

© 2008 - 2022 One-to-One Service.com, Inc. All rights reserved.