Skip to main content

Agent Login API

To make a agent API request you need to generate the agent token. The agent token can generated using agent id and password, get the agent id and password in the TeleCMI CHUB dashboard. After getting the agent id and password, make a POST request to the below base URL to generate the unique agent token.

Base URL

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

https://piopiy.telecmi.com/v1/agentLogin

Required Parameters

These are the required POST method parameters with description

Parameter NameTypeDescription
*idstringYour agent id
*passwordstringYour agent password
Note
The * marked parameter is mandatory.

Sample JSON Request

Below is the following sample JSON POST method request

{
"id": "103_1111113",
"password": "abc123"
}

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": "Agent loged in successfully",
"token": "xxxx-xxxx-xxxx-xxxx",
"agent": {
"id": "103_1111113",
"inet_no": 1111113,
"name": "Prasath Sekar"
}
}

Properties

These are the list of properties and its description

PropertyTypeDescription
msgstringYour agent id and password is authenticated and logged in sucessfully
tokenstringYour agent unique token
agentJSON arrayYour agent information in detail
idstringYour agent id
inet_nonumberYour app id
NamestringYour agent name
Note
Token will automatically expire after 30 days.

HTTP status codes

TeleCMI API platform represents the following status code to identity the errors.

Status codeStatus codeDescription
200OKWe received the request
404ErrorInvalid agent id or password, authentication failed