Skip to main content

Login Token V3

To make a Connly SDK connection you need to generate a user token. The user token can be generated using email id and password. Make a POST request to the below base URL to generate the unique user token.

Base URL

Send your POST method request with valid parameters, to the following base URL.

https://api.connle.com/agent/login

Required Parameters

These are the required POST method parameters with description

Parameter NameTypeDescription
email_idstringYour email id
passwordstringYour user password
Note
All the above parameters are mandatory.

Sample JSON Request

Below is the following sample JSON POST method request

{
"email_id":"user@example.com",
"password": "admin@123"
}

Sample Response

If the provided information is valid, your web server will get a sample response from TeleCMI Platform as given below

{
"code": 200,
"msg": "Login successful",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZ2VudF9pZCI6IjUxNTlfMjIyNDI1NyIsImluZXRfbm8iOjIyMjQyNTcsImVtYWlsX2lkIjoiYmFsYUB0ZXN0LmNvbSIsInVzZXJfaWQiOiI5NDU4ZDg0Mi1mN2Y3LTQ3ZTEtYjUyYi0zOTNjZmI0ZjI4OTMiLCJvcmdfaWQiOiIwZDk2OTQ1MC01NDAzLTExZWMtYTNlMS1kN2QyYmUwOTVmZTEiLCJpYXQiOjE3ODM5Mzk3MTQsImV4cCI6MTc4NDExMjUxNH0.wZ8F1WeDbwMMvaCqlF6KLxq7TRvJ3gF0isRH45UqjAQ"
}

Properties

These are the list of properties and its description

PropertyTypeDescription
msgstringLogin status message
tokenstringYour user unique token
Note
Token will automatically expire after 2 days.

HTTP Status Codes

TeleCMI API platform represents the following status codes to identify the errors.

Status codeStatus TypeDescription
200OKLogin successful
202Accepted2FA is enabled. Please complete 2FA verification
400Bad RequestInvalid input. Please check your data and try again
401UnauthorizedIncorrect password, please try again. Remaining attempts: {n}
403ForbiddenAccount blocked / Too many failed attempts
404Not FoundUser not found, please enter a valid user email
429Too Many RequestsToo many login attempts
498Invalid TokenToken is invalid or expired
500Internal Server ErrorInternal server error