GET /contacts/getContactByName/{name}
Customer interaction managent module’s API documentation
Version : 1.0.0
License : EF
License URL : http://www.expertflow.com/
Terms of service : null
Host : localhost:3000
Schemes : HTTP, HTTPS
Contacts : API for contacts in the system
Schema : API to change Contact object attributes
Mapping : API to define search criteria for contact
Interactions : APIs to load or save interactions against a contact
application/json
application/json
API for contacts in the system
GET /contacts/getContactByName/{name}
Get the searched contacts from database
Type | Name | Description | Schema |
---|---|---|---|
Path | name | name of user that we want to find | string |
application/json
/contacts/getContactByName/string
{ }
POST /contacts/getContactsBySearchTerms
Get list of contacts from database
Type | Name | Description | Schema |
---|---|---|---|
Body | search | Search terms for the contact the we want to search. Any number of properties can be included here in search criteria |
application/json
/contacts/getContactsBySearchTerms
{
"phone" : "string",
"first_name" : "string"
}
{ }
GET /contacts/loadMore/{last_id}
Get the searched contacts from database
Type | Name | Description | Schema |
---|---|---|---|
Path | last_id | Id of the last contact object received in the list | string |
application/json
/contacts/loadMore/string
{ }
GET /contacts/{contact_id}
Type | Name | Description | Schema |
---|---|---|---|
Path | contact_id | ID of user that we want to find | string |
/contacts/string
{
"phone1" : "string",
"first_name" : "string",
"last_name" : "string"
}
PUT /contacts/{contact_id}
Type | Name | Description | Schema |
---|---|---|---|
Path | contact_id | ID of user that we want to find | string |
Body | contact | User with new values of properties |
/contacts/string
{
"phone1" : "string",
"first_name" : "string",
"last_name" : "string"
}
{
"phone1" : "string",
"first_name" : "string",
"last_name" : "string"
}
DELETE /contacts/{contact_id}
Type | Name | Description | Schema |
---|---|---|---|
Path | contact_id | ID of user that we want to find | string |
/contacts/string
{
"phone1" : "string",
"first_name" : "string",
"last_name" : "string"
}
GET /getContactList
Get list of contacts from database
application/json
/getContactList
{ }
POST /saveContact
Create new contact in system
application/json
/saveContact
{
"phone1" : "string",
"first_name" : "string",
"last_name" : "string"
}
{
"phone1" : "string",
"first_name" : "string",
"last_name" : "string"
}
API to change Contact object attributes
GET /getSchema
List all the attributes of contact object
application/json
/getSchema
{ }
POST /saveSchema
Add new attribute to contact object
Type | Name | Description | Schema |
---|---|---|---|
Body | schema | Attribute name that we want to create |
application/json
/saveSchema
{
"label" : "string",
"key" : "string",
"type" : "string"
}
{
"label" : "string",
"key" : "string",
"type" : "string"
}
PUT /schema/{schema_id}
Type | Name | Description | Schema |
---|---|---|---|
Path | schema_id | ID of attribute that we want to delete | string |
Body | schema | User with new values of properties |
/schema/string
{
"label" : "string",
"key" : "string",
"type" : "string"
}
{
"label" : "string",
"key" : "string",
"type" : "string"
}
DELETE /schema/{schema_id}
Type | Name | Description | Schema |
---|---|---|---|
Path | schema_id | ID of attribute that we want to delete | string |
HTTP Code | Description | Schema |
---|---|---|
200 | User is deleted | No Content |
/schema/string
API to define search criteria for contact
POST /mapping
Add condition to search criteria
Type | Name | Description | Schema |
---|---|---|---|
Body | mapping | Attribute name that we want to create |
application/json
/mapping
{
"callVar" : "string",
"callVariable" : "string",
"key" : "string",
"varNumber" : "string"
}
{ }
GET /mapping
Get defined search criteria
HTTP Code | Description | Schema |
---|---|---|
200 | Successfully | No Content |
application/json
/mapping
PUT /mapping/{id}
Type | Name | Description | Schema |
---|---|---|---|
Path | id | ID of the condition that we want to delete | string |
Body | mapping | condition with new values of properties |
/mapping/string
{
"callVar" : "string",
"callVariable" : "string",
"key" : "string",
"varNumber" : "string"
}
{
"callVar" : "string",
"callVariable" : "string",
"key" : "string",
"varNumber" : "string"
}
DELETE /mapping/{id}
Type | Name | Description | Schema |
---|---|---|---|
Path | id | ID of the condition that we want to delete | string |
HTTP Code | Description | Schema |
---|---|---|
200 | condition has been removed from search criteria | No Content |
/mapping/string
APIs to load or save interactions against a contact
GET /interactions/loadInteractions/{id}
Get list of interactions for a specific contact from database
Type | Name | Description | Schema |
---|---|---|---|
Path | id | ID of the contact for which interactions need to be loaded | string |
application/json
/interactions/loadInteractions/string
{
"interactions" : [ {
"type" : "string",
"agentId" : "string",
"start_time" : "string",
"call_duration" : "string",
"ivr_trail" : "string",
"call_id" : "string",
"call_disposition" : "string",
"team_name" : "string",
"csq" : "string",
"interaction_type" : "string",
"wrap_up" : "string"
} ],
"call_Id" : "string",
"phone_number" : "string"
}
POST /interactions/updateOrSaveInteractionTree/{call_Id}
Add new interaction to contact object
Type | Name | Description | Schema |
---|---|---|---|
Path | call_Id | ID of the contact for which interactions need to be loaded | string |
Body | interactionObject | condition with new values of properties |
application/json
/interactions/updateOrSaveInteractionTree/string
{
"interaction" : {
"type" : "string",
"agentId" : "string",
"start_time" : "string",
"call_duration" : "string",
"ivr_trail" : "string",
"call_id" : "string",
"call_disposition" : "string",
"team_name" : "string",
"csq" : "string",
"interaction_type" : "string",
"wrap_up" : "string"
},
"call_Id" : "string",
"ani" : "string"
}
{
"type" : "string",
"agentId" : "string",
"start_time" : "string",
"call_duration" : "string",
"ivr_trail" : "string",
"call_id" : "string",
"call_disposition" : "string",
"team_name" : "string",
"csq" : "string",
"interaction_type" : "string",
"wrap_up" : "string"
}
Name | Description | Schema |
---|---|---|
first_name | Example : | string |
last_name | Example : | string |
phone1 | Example : | string |
Type : < contactObject > array
Name | Description | Schema |
---|---|---|
ani | Example : | string |
call_Id | Example : | string |
interaction | Example : |
Name | Description | Schema |
---|---|---|
agentId | Example : | string |
call_disposition | Example : | string |
call_duration | Example : | string |
call_id | Example : | string |
csq | Example : | string |
interaction_type | Example : | string |
ivr_trail | in case of IVR type of interaction | string |
start_time | Example : | string |
team_name | Example : | string |
type | Example : | string |
wrap_up | Example : | string |
Name | Description | Schema |
---|---|---|
call_Id | Example : | string |
interactions | Example : | < interactionObject > array |
phone_number | Example : | string |
Type : < schemaObject > array
Name | Description | Schema |
---|---|---|
key | Example : | string |
label | Example : | string |
type | Example : | string |
Type : < searchCriteria > array
Name | Description | Schema |
---|---|---|
callVar | Example : | string |
callVariable | Example : | string |
key | Example : | string |
varNumber | Example : | string |
Name | Description | Schema |
---|---|---|
first_name | Example : | string |
phone | Example : | string |
On this page |