API allows other software packages like IVRS, Call Center Applications to intreract with neuCRM in a secured way.
With the help of API in neuCRM you connect with any 3rd party Application which supports JSON API
The possible example is, When a customer calling your call center number, he could have the following options:
API End point | $BASE_URL/api/ Here the $BASE_URL will be http://192.168.1.100/crm or http://crm.mydomain.com |
---|---|
HTTP method | POST and GET methods are usually used. |
Input Request format | Query string |
Output Response format | JSON |
Authentication | CRM login userid (not username) and API Key of that user is used for Authentication |
To make a test API call
GET /api/server/test
curl $BASE_URL/api/server/test
The expected API Response will be
{ "result": "OK", "error": null }
GET /api/server/version
curl -X POST $BASE_URL/api/server/version
{ "result":{ "version_id":"30", "version_no":"4.0", "version_date":"2019-12-19" }, "error":null }
GET /api/server/mode
curl -X POST $BASE_URL/api/server/mode
{ "result": "active", "error": null }
API End point is
POST /api/server/country_state
Input Parameters | Required ? | Description |
---|---|---|
country | N | Country to filter result. Default: list all countries |
curl -X POST $BASE_URL/api/server/country_state
or
curl -X POST $BASE_URL/api/server/country_state -d country="India"