API's

API Documentation

API Name

 API URL

API Description

Make Call APIhttp://customername.synkato.io/kerauno/api/v1/makecall/Start a call through the Platform by sending a source number and a destination number.
Reporting APIhttp://customername.synkato.io/kerauno/api/v1/reporting/Get CDRs and Ring Group CDRs for a certain time period in JSON, CSV, or XML.
Agent Statuses APIhttp://customername.synkato.io:57080/v1/callflow/agent_statuses/[RING_GROUP]Get Agent Statuses for a certain Ring Group in JSON, CSV, or XML.

Make Call API

http://customername.synkato.io/kerauno/api/v1/makecall/

Parameter Name

Field

Type

Default

Example

Required

API Keykeyvarchar(40)N/A
b0f4ad5193ad04858dae03a1b3dbe9071ff12e52
 Yes
Sourcesrcvarchar(40)N/A3000Yes
Destinationdstvarchar(40)N/A3002Yes

API Error Example:

{
"error":
"You must send an api key ('key')." 
}

Call Success Return:

{
"response":
"Success" 
}

Call Failure Return:

{
"response":
"Failure"
}

Reporting API

http://customername.synkato.io/kerauno/api/v1/reporting/

Parameter Name

Field

Type

Default

Example

Required

API Keykeyvarchar(40)N/A
b0f4ad5193ad04858dae03a1b3dbe9071ff12e52
Yes
Report Typetypevarchar(11)N/A"cdr" or "ring_groups"Yes
Start Datestart_datedatetimeN/A2014-09-11 12:40:44Yes
End Dateend_datedatetimeN/A2014-09-11 12:40:44Yes
Export Typeexport_typevarchar(4)json"json" "csv" or "xml"No

API Error Example:

{ 
"error": 
"You must send an api key ('key')." 
}

API Success Return (cdr):


Returns all CDRs within date range.

{ 
"cdr_0": 
{
"date_time":"2014-09-09 11:10:33",
 "hostname":"test.axiatp.net",
 "server_name":"test.axiatp.net",
 "server_ip":"141.101.124.203",
 "unique_id":"1410275433.3986",
 "call_type":"Internal",
 "to":"2002",
 "source_num":"2002",
 "source_name":"John Smith",
 "dest_num":"3000",
 "dest_name":"Jane Doe",
 "trunk_name":"Internal",
 "duration":"8" 
}
}

API Success Return (ring_groups):


Returns all Ring Group CDRs within date range (with additional Ring Group information).

{
"cdr_0": 
{
"date_time":"2014-09-09 11:14:48", 
"hostname":"test.axiatp.net", 
"server_name":"test.axiatp.net", 
"server_ip":"141.101.124.203", 
"unique_id":"1410275688.4013", 
"call_type":"Ring Groups", 
"to":"+19999999999", 
"source_num":"2002", 
"source_name":"John Smith", 
"dest_num":"4000", 
"dest_name":"Ring Group", 
"trunk_name":"Internal", 
"duration":"6", 
"ring_group_num":"4000", 
"ring_group_name":"Test", 
"ans_agent_num":"3000", 
"ans_agent_name":"Jane Doe", 
"hold_time":"4", 
"release_reason":"caller" 
}
}

AGENT STATUSES API

http://customername.synkato.io:57080/v1/callflow/agent_statuses/[RING_GROUP]

Parameter Name

Field

Type

Default

Example

Required

API Keykeyvarchar(40)N/Ab0f4ad5193ad04858dae03a1b3dbe9071ff12e52Yes

API Error Example:

{ 
"error": 
"No Results Found."
}

API Success Return (GET):


Returns all Agent Statuses for the Ring Group

{
"1133": 
{
"extension":"1133", 
"status":"Available", 
"available":false, 
"busy":true, 
"username":"test@test.com" 
}, "3924": 
{
"extension":"3924", 
"status":"Ring Group - Available", 
"available":true, 
"busy":false, 
"username":"test2@test.com" 
}, 
"4433": 
{
"extension":"4433", 
"status":"Ring Group - Paused", 
"available":false, 
"busy":true,
"username":"test3@test.com" 
}
}

Post API

Post API allows the ability to configure a URL into the system to send Synkato data to.


Parameter Name

Field

Type

Example

Timestamptimestampdatetime2014-11-04 16:10:41
Eventeventvarchar(12)
"CALL_STARTED", "CALL_ENDED", "TRANSFER", or "PARKED"
Sourcesourcevarchar(40)
3000
Destinationdestinationvarchar(40)
3002
Unique IDuniqueidvarchar(40)
1415135441.3799
Channelchannelvarchar(40)SIP/3000-000000e5
Descriptiondescriptionvarchar(100)3000 is calling 3002
Durationdurationint8