Service API

For versions:4.6.1

API

NoteDescription
serverApplication Url
usernameUsername Credential
passwordPassword credential
generatedTokenIdGenerate token id

Get token

Method POST
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/auth
Header  
Body {
    “username”:”[username]”,
    “password”:”[password]”
}
Status 200
Response
{
    “token”:”generatedToken”,
    “expireAt”:”2018-08-14T19:16:32.750Z[UTC]”
}  

Ping API

get service application API response

MethodPOST
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/ping
HeaderAuthorizationBearer [generatedToken]
Body  
Status200
Response
{
    “result”:”Pong”
}

Auxiliary API

get list of available agents

MethodGET
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/auxiliarys/agents/available?start=0&count=10
HeaderAuthorization Bearer [generatedToken]
Body
Status200
Response
{
    “status”:”success”,
    “data”: [
    {
      “id”:”9a9871d8-46e6-4361-b50c-760e92f62226″,
      “agentId”:”043150571a91d0c167a5db293681a5e5″,
      “agentName”:”christa”,
      “agentRole”:”Operator”,
      “aux”: false,
      “dailyAuxDuration”: 0,
      “duration”:0,
      “lastChange”:1534207889733,
      “master”:true,
      “reason”:”Available”
      }
   ]
}

get list of unavailable agents

MethodGET
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/auxiliarys/agents/un available?start=0&count=10
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”:”success”,
    “data”: [
    {
      “id”:”fc721c3a268926639a6fd07e7479b52b”,
      “agentId”:”56fddd039a90bf5d0318c2092b725af1″,
      “agentName”:”Agent01 “,
      “agentRole”:”Operator”,
      “aux”: true,
      “dailyAuxDuration”: 0,
      “duration”: 0,
      “lastChange”: 1533137323187,
      “master”: true,
      “reason”:”Inactive”
     },
     {
     “id”: “87953a9a-7adc-4085-8bb1-15d61e3df9ce”,
     “agentId”:”e90123ebf1d4e628cf094b1ecb8b1c77″,
     “agentName”:”Virginia Potts”,
     “agentRole”:”Operator”,
     “aux”: true,
     “dailyAuxDuration”: 0,
     “duration”: 0,
     “lastChange”:1524290143325,
     “master”: true,
     “reason”:”Inactive”
    }
  ]
}

Change User Auxiliary Available

MethodPUT
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/auxiliarys/agents/
HeaderAuthorizationBearer [generatedToken]
Body{
   status”:”Availables”
}
Status200  
Response
{
   “status”: “success”,
   “data”: {
       “id”: “a15e835f3605d26ccd831c20e324fc87”,
       “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
       “createdDate”: 1551293817658,
       “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
       “modifiedDate”: 1565719568043,
       “modifiedBy”: “148dcc9d4365d5ad1b4a29cbc2dca56e”,
       “agentId”: “148dcc9d4365d5ad1b4a29cbc2dca56e”,
       “agentName”: “Tiffany Alvord”,
       “agentRole”: “Operator”,
       “aux”: true,
       “dailyAuxDuration”: 0,
       “duration”: 0,
       “lastChange”: 1565719568043,
       “master”: true,
       “reason”: “Not Available”
    },
    “hasMore”: false
}

Contact API

get customer contact by contact id

MethodGET
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/contacts?contactId=[contactId]
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”: “success”,
    “data”:
    {
      “id”: “7b7e9cf30a9684ecdbc5e208f8c8e608”,
      “spell”: [
      “Hirdian”,
      “h.surakusumah@gmail.com”,
      “082240791607”,
      “Hirdian”
      ],
      “ageMax”: 0,
      “ageMin”: 0,
      “contactEmail”: [
      “h.surakusumah@gmail.com”
      ],
      “contactEmailString”:”h.surakusumah@gmail.com”,
      “contactFirstName”: “Hirdian”,
      “maxFollower”: 0,
      “phoneTypes”: [
      “Mobile”
      ],
      “phones”: [
      “082240791607”
      ],
      “phonesString”: “082240791607”,
      “socialIdWebchat”: [
      “h.surakusumah@gmail.com-Hirdian”
      ],
      “socialNameWebchat”: [
      “Hirdian”
      ],
      “socialScreenNameWebchat”: [
      “h.surakusumah@gmail.com”
      ],
      “socialsString”: “h.surakusumah@gmail.com,h.surakusumah@gmail.com”,
      “contactOwner”: “21232f297a57a5a743894a0e4a801fc3”,
      “createdDate”: 1529924161560
   }
}

update customer contact by contact id

MethodPUT
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/contacts/update /{contactId}
HeaderAuthorizationBearer [generatedToken]
Body{
    “id”: “89406d076fab91249b8d1e73114a6f37”,
    “spell”: [
    “Reja”
    ],
    “ageMax”: 0,
    “ageMin”: 0,
    “contactFirstName”: “Reja Luo”,
    “maxFollower”: 0,
    “socialIdLine”: [
    “Ud8ed6038db4225a6028650833c06c7d1”
    ],
    “socialProfilePictureLine”: [
    “http://dl.profile.line-cdn.net/0hv9wYP8yCKRZKIAa2_mhWQXZlJ3s9Di9eMhY1 cDogJyRjQ2lIfhZuIG4lfiUzEDsXcRNmI2Yocidl”
    ],
    “contactOwner”: “21232f297a57a5a743894a0e4a801fc3”,
    “createdDate”: 1533112836943
}
Status200
Response
{
    “status”: “success”,
    “data”:
    {
      “id”: “89406d076fab91249b8d1e73114a6f37”,
      “spell”:
       [
        “Reja”
       ],
     “ageMax”: 0,
     “ageMin”: 0,
     “contactFirstName”: “Reja Luo”,
     “maxFollower”: 0,
     “socialIdLine”:
      [
        “Ud8ed6038db4225a6028650833c06c7d1”
      ],
      “socialProfilePictureLine”:
       [
        “http://dl.profile.line-cdn.net/ 0hv9wYP8yCKRZKIAa2_mhWQXZlJ3s9Di9eMhY1cDogJyRjQ2lIfhZuIG4lfiUzEDsX cRNmI2Yocidl”
       ],
       “contactOwner”: “21232f297a57a5a743894a0e4a801fc3”,
       “createdDate”: 1533112836943
    }
}

Form API

get form by form id

MethodGET
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/forms/form?formId=[formId]
HeaderAuthorizationBearer [generatedToken]
Body  
Status200
Response
{
    “status”: “success”,
    “data”:
    {
      “id”: “z_bf5ea285662e1fb74f810982478c372e”,
      “spell”: [
      “”,
      “EKYC Form”
      ],
      “dataRepository”: “z_bf5ea285662e1fb74f810982478c372e”,
      “description”:””,
      “formOwner”: “21232f297a57a5a743894a0e4a801fc3”,
      “formSchema”: “{\”type\”:\”object\”,\”required\”:false,\”properties\”:{\”name\”:{\”required\”:false,\”type\”:\”string\”},\”birth_date\”:{\”required\”:false,\”type\”:\”string\”},\”phone\”:{\”required\”:false,\”type\”:\”string\”},\”email_address\”:{\”required\”:false,\”type\”:\”string\”},\”status\”:{\”required\”:false,\”type\”:\”string\”}},\”schemaProperties\”:{\”name\”:{\”required\”:false,\”type\”:\”string\”},\”birth_date\”:{\”required\”:false,\”type\”:\”string\”},\”phone\”:{\”required\”:false,\”type\”:\”string\”},\”email_address\”:{\”required\”:false,\”type\”:\”string\”},\”status\”:{\”required\”:false,\”type\”:\”string\”}}}”,
      “formOptions”: “{\”focus\”:false,\”type\”:\”object\”,\”helpers\”:[],\”validate\”:true,\”disabled\”:false,\”showMessages\”:true,\”collapsible\”:false,\”legendStyle\”: \”button\”,\”fields\”:{\”name\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false,\”label\”: \”Name\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”birth_date\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false,\”label\”: \”Birth Date\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false}, \”phone\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false, \”label\”:\”Phone\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”email_address\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”label\”:\”Email
Address\”, \”helpers\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”status\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false,\”label\”: \”Status\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false}},\”optionFields\”:{\”name\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false,\”label\”: \”Name\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”birth_date\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false,\”label\”: \”Birth Date\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”phone\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false, \”label\”:\”Phone\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”email_address\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”label\”:\”Email Address\”, \”helpers\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”status\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false,\”label\”: \”Status\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false}},\”mapFields\”:{\”new1531504583354\”:\”name\”,\”new1531504581989\”:\”birth_date\”,\”new1531504580550\”: \”phone\”,\”email\”:\”email_address\”,\”new1531504667054\”:\”status\”}}”,
       “formData”:”{\”email_address\”:\”admin@inmotion.co.id\”}”,
      “formDefinitionKey”:””,
      “title”: “EKYC Form”
   }
}

get Form Data by Form Id, Form Name and Field Value

Method GET
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/forms/formData?formId={formId}&fieldName={fieldName}&fieldValue={fieldValue}&start=0&count=2
Header Authorization Bearer [generatedToken]
Body  
Status 200
Response
{
    “status”:”success”,
    “data”: [
    {
      “otp”:”dd”,
      “account_no”: “dd”,
      “id”: “42fdcbd4d2b1202acac67a648fa5d31dwebchata588e6a6e7580448934c7492483e45c445010 135537367103578985373639001440241545397862226qr5ho327l@email.co.idAuto Family1545398416521”,
      “ticket_number”: “42fdcbd4d2b1202acac67a648fa5d31d”,
      “form_id”: “4631363345744d5763516158543958366f32786b77586b527853704f4d4d72654437746d4d6b 7667586e32312f66443950576d625458494d4c4778446b58434252676636743450394c616f69 334c78615168306c6e6c782f4565416469704533672f5868515375304b48413d”,
      “channel_type”: “webchat”,
      “channel_key”: “a588e6a6e7580448934c7492483e45c4”,
      “channel”: “9289d40aa1a7ff79c77ec1fc6c16c7da”,
      “account_id”: “45010135537367103578985373639001440241545397862226qr5ho327l@email.co.id”,
       “account_name”: “Auto Family”,
      “created_date”: 1545398421150,
      “_version_”: 1620467694866268160
      },
      {
      “otp”:”ddd”,
      “account_no”: “ddd”,
      “id”: “42fdcbd4d2b1202acac67a648fa5d31dwebchata588e6a6e7580448934c7492483e45c44 5010135537367103578985373639001440241545397862226qr5ho327l@email.co.idAuto Family1545398361648”,
      “ticket_number”: “42fdcbd4d2b1202acac67a648fa5d31d”,
      “form_id”: “4631363345744d5763516158543958366f32786b77586b527853704f4d4d72654437746d4d6b 7667586e32312f66443950576d625458494d4c4778446b58434259614b352b62387370477 46b4c475172334c34666b56782f4565416469704533672f5868515375304b48413d”,
      “channel_type”:”webchat”,
      “channel_key”: “a588e6a6e7580448934c7492483e45c4”,
      “channel”: “9289d40aa1a7ff79c77ec1fc6c16c7da”,
      “account_id”: “45010135537367103578985373639001440241545397862226qr5ho327l@email.co.id”,
      “account_name”: “Auto Family”,
      “created_date”: 1545398366151,
      “_version_”: 1620467637198782464
      }
   ]
}

get form by form owner

Method GET
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/forms/form?formOwner=[formOwner]
Header Authorization Bearer [generatedToken]
Body
Status 200
Response
{
    “status”:”success”,
    “data”:
     {
      “id”: “z_bf5ea285662e1fb74f810982478c372e”,
      “spell”: [
      “”,
      “EKYC Form”
      ],
      “dataRepository”: “z_bf5ea285662e1fb74f810982478c372e”,
      “description”:””,
      “formOwner”: “21232f297a57a5a743894a0e4a801fc3”,
      “formSchema”: “{\”type\”:\”object\”,\”required\”:false,\”properties\”:{\”name\”:{\”required\”:false,\”type\”:\”string\”},\”birth_date\”:{\”required\”:false,\”type\”:\”string\”},\”phone\”:{\”required\”:false,\”type\”:\”string\”},\”email_address\”:{\”required\”:false,\”type\”:\”string\”},\”status\”:{\”required\”:false,\”type\”:\”string\”}},\”schemaProperties\”:{\”name\”:{\”required\”:false,\”type\”:\”string\”},\”birth_date\”:{\”required\”:false,\”type\”:\”string\”},\”phone\”:{\”required\”:false,\”type\”:\”string\”},\”email_address\”:{\”required\”:false,\”type\”:\”string\”},\”status\”:{\”required\”:false,\”type\”:\”string\”}}}”,
      “formOptions”: “{\”focus\”:false,\”type\”:\”object\”,\”helpers\”:[],\”validate\”:true,\”disabled\”:false,\”showMessages\”:true,\”collapsible\”:false,\”legendStyle\”: \”button\”,\”fields\”:{\”name\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false,\”label\”: \”Name\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”birth_date\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false, \”label\”:\”Birth
Date\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”phone\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false, \”label\”:\”Phone\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”email_address\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”label\”:\”Email
Address\”, \”helpers\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false,\”disallowOnlyEmptySpaces\”:false},\”status\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false,\”label\”: \”Status\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false, \”disallowOnlyEmptySpaces\”:false}},\”optionFields\”:{\”name\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false,\”label\”: \”Name\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”, \”disallowEmptySpaces\”:false, \”disallowOnlyEmptySpaces\”:false},\”birth_date\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false, \”label\”:\”Birth
Date\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”,\”disallowEmptySpaces\”:false, \”disallowOnlyEmptySpaces\”:false},\”phone\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false, \”label\”:\”Phone\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”,\”disallowEmptySpaces\”:false, \”disallowOnlyEmptySpaces\”:false},\”email_address\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”label\”:\”Email Address\”,\”helpers\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”,\”disallowEmptySpaces\”:false, \”disallowOnlyEmptySpaces\”:false},\”status\”:{\”type\”:\”text\”,\”validate\”:true,\”showMessages\”:true,\”disabled\”:false,\”hidden\”:false,\”label\”: \”Status\”,\”helpers\”:[],\”hideInitValidationError\”:false,\”optionLabels\”:[],\”allowOptionalEmpty\”:true,\”autocomplete\”:\”false\”,\”disallowEmptySpaces\”:false, \”disallowOnlyEmptySpaces\”:false}},\”mapFields\”:{\”new1531504583354\”:\”name\”,\”new1531504581989\”:\”birth_date\”,\”new1531504580550\”: \”phone\”,\”email\”:\”email_address\”,\”new1531504667054\”:\”status\”}}”,
      “formData”: “{\”email_address\”:\”admin@inmotion.co.id\”}”,
      “formDefinitionKey”: “”,
      “title”:”EKYC Form”
    }
}

add form data by form id

Method POST
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/forms/add/{formId} /tickets/{ticketNumber}
Header Authorization Bearer [generatedToken]
Body {
    “email_address”:”reja.luo@inmotion.co.id”,
    “phone”:”62819877199″,
    “birth_date”:”21 Jan 1991″,
    “name”:”Reja”,
    “status”:”Belum Menikah”,
    “ticket_number”:”54f2fbd4159e291d2a7f97584cc072cf”,
    “channel_type”:”linebot”,
    “channel_key”:”1569274564″,
    “channel”:”fc03fb64e0a5dec2f087d31d261870b4″,
    “account_id”:”U289f7ce558d06eef186014dd6eb8d5d8″,
    “account_name”:”Reja”,
    “chat_link”:”http://dl.profile.line-cdn.net/0hv9wYP8yCKRZKIAa2_mhWQXZlJ3s9Di9eMhY1c DogJyRjQ2lIfhZuIG4lfiUzEDsXcRNmI2Yocidl”,
“created_date”:”2018-07-18T00:01:28.648Z”
}
Status 200
Response
{
    “status”: “success”,
    “data”: “{\n
\”email_address\”:\”reja.luo@inmotion.co.id\”,\n
\”phone\”:\”62819877199\”,\n 
\”birth_date\”:\”21 Jan 1991\”,\n
\”name\”:\”Reja\”,\n
\”status\”:\”Belum Menikah\”,\n
\”ticket_number\”:\”54f2fbd4159e291d2a7f97584cc072cf\”,\n
\”channel_type\”:\”linebot\”,\n
\”channel_key\”:\”1569274564\”,\n
\”channel\”:\”fc03fb64e0a5dec2f087d31d261870b4\”,\n
\”account_id\”:\”U289f7ce558d06eef186014dd6eb8d5d8\”,\n
\”account_name\”:\”Reja\”,\n
\”chat_link\”:\”http://dl.profile.line-cdn.net/0hv9wYP8yCKRZKIAa2_mhWQXZlJ3s9Di9eMhY1cDogJyRjQ2lIfhZu IG4lfiUzEDsXcRNmI2Yocidl\”, \”created_date\”:\”2018-07-18T00:01:28.648Z\”}”
}

add form data with transaction id by form id

Method POST
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/forms/add/{form_id} /transactionid/{transaction_id}
Header Authorization Bearer [generatedToken]
Body {
   “nama”:”mamat”,
   “email_address”:”ulilsstkm@gmail.com”,
   “handphone”:”08122045031″
}
Status 200
Response
{
    “status”:”success”,
    “data”:”{“nama”:”mamat”,”email_address”:”ulilsstkm@gmail.com”,”handphone”: “08122045031”}”
}

Ticket API

Get ticket parent by ticket number

Method GET
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/tickets/[ticketNumber]
Header Authorization Bearer [generatedToken]
Body
Status 200
Response
{
    “status”: “success”,
    “data”: [
        {
            “id”: “8e7993c32ceb5ccc2e3a895e1c96d448”,
            “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “createdDate”: 1547024001664,
            “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “modifiedDate”: 1547024001664,
            “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “accountId”: “f181392d7b4f13ec1903d6359edf0cf2”,
            “accountName”: “WebChat”,
            “answer”: true,
            “botId”: “609af465544b32cd8849eb9af138407f”,
            “channel”: “3d38a6b93db124dfbf5dff22807e3b55”,
            “channelKey”: “f181392d7b4f13ec1903d6359edf0cf2”,
            “channelType”: “webchat”,
            “createdDateText”:”2019-01-09 15:53″,
            “message”: “”,
            “messageId”: “f181392d7b4f13ec1903d6359edf0cf2; c3d073ad2f352b14f71bf3e54dbf1f31;117.102.114.91”,
            “parent”: 0,
            “pictureLink”: “{‘bucket’:’media-images-button’,
‘filename’:’29BACB0C4D93F9036FE1704E0309255D_164278103-fashion-wallpapers.jpg’,
‘contentType’:’image/jpeg’}”,
            “severity”: “Not Set”,
            “replyAgent”: “Bot”,
            “responseTime”: 1,
            “responseTimeAgent”: 1,
            “subject”: “Kirim gambar”,
            “ticketNumber”:”9f592fe8b3cdf15e09eb5703e7b15535″,
            “contact”: {
                “id”:”72a0da366e4dfac729d96acdf75b45f7″,
                “spell”: [
                    “rahmatbot”,
                    “rahmatbot”,
                    “Ramadhan”,
                    “mamatbot Ramadhan”,
                    “Ramadhan”,
                    “mamatbot Ramadhan”
                ],
                “owner”:”82ab0fd5cfd1e80d1ff97c0cfc9aa9e2″,
                “createdDate”: 1551785803089,
                “createdBy”:”82ab0fd5cfd1e80d1ff97c0cfc9aa9e2″,
                “modifiedDate”:1551785933036,
                “modifiedBy”:”82ab0fd5cfd1e80d1ff97c0cfc9aa9e2″,
                “ageMax”: 999,
                “ageMin”: 0,
                “contactFirstName”:”rahmatbot”,
                “contactLastName”:”Ramadhan”,
                “maxFollower”: 0,
               “socialIdMessenger”: [
                   “1672435742856025”
                ],
               “socialNameMessenger”: [
                    “mamatbot Ramadhan”
                ],
                “socialProfilePictureMessenger”: [
                    “https://platform-lookaside.fbsbx.com/platform/profilepic/?psid=1672435742856025&width=1024& ext=1550741866&hash=AeS5rf6GGKm63IdP”
                ],
                “socialScreenNameMessenger”: [
                    “mamatbot Ramadhan”
                ],
                “socialsString”: “mamatbot Ramadhan”,
                “module”: “”,
                “additionalField”: [
                    “flight_no:123, train_no:456”
                ]
            },
            “channelName”: “Dolphin-Chat”,
            “internalCallRecipient”: false,
            “close”: false,
            “pictureUrl”: “http://localhost:9080/dolphin/apiv1/graph/tickets/ outbound/picture/29BACB0C4D93F9036FE1704E0309255D_164278103-fashion-wallpapers.jpg”,
            “prettyDate”: “2019-01-09 15:53:21”,
            “friendlyName”:”rahmatbot Ramadhan”,
            “statusStyle”: “”,
            “overReplySla”: false,
            “attachmentExist”: false,
            “conferenceParticipantObject”: [],
            “callParticipantObject”: [],
            “callVariableObject”: [],
            “displayConferenceParticipant”: false,             “ccList”: [],
            “emailRecipient”: “”,
            “ccListFormatted”: “”
        }
    ]
}

Get list of tickets

Method GET
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/tickets?start=0&count=3
Header Authorization Bearer [generatedToken]
Body
Status 200
Response
{
    “status”: “success”,
    “data”: [
        {
            “id”: “8e7993c32ceb5ccc2e3a895e1c96d448”,
            “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “createdDate”: 1547024001664,
            “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “modifiedDate”: 1547024001664,
            “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “accountId”: “f181392d7b4f13ec1903d6359edf0cf2”,
            “accountName”: “WebChat”,
            “answer”: true,
            “botId”: “609af465544b32cd8849eb9af138407f”,
            “channel”: “3d38a6b93db124dfbf5dff22807e3b55”,
            “channelKey”: “f181392d7b4f13ec1903d6359edf0cf2”,
            “channelType”: “webchat”,
            “createdDateText”: “2019-01-09 15:53”,
            “message”: “”,
            “messageId”: “f181392d7b4f13ec1903d6359edf0cf2;c3d073ad2f352b14f71bf3e54dbf1f31;117.102.114.91”,
            “parent”: 0,
            “pictureLink”: “{‘bucket’:’media-images-button’,
‘filename’:’29BACB0C4D93F9036FE1704E0309255D_164278103-fashion-wallpapers.jpg’,
‘contentType’:’image/jpeg’}”,
            “severity”: “Not Set”,
            “replyAgent”: “Bot”,
            “responseTime”: 1,
            “responseTimeAgent”: 1,
            “subject”: “Kirim gambar”,
            “ticketNumber”: “9f592fe8b3cdf15e09eb5703e7b15535”,
            “contact”: {
                “id”:”72a0da366e4dfac729d96acdf75b45f7″,
                “spell”: [
                    “rahmatbot”,
                    “rahmatbot”,
                    “Ramadhan”,
                    “mamatbot Ramadhan”,
                    “Ramadhan”,
                    “mamatbot Ramadhan”
                ],
                “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “createdDate”: 1551785803089,
                “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “modifiedDate”: 1551785933036,
                “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “ageMax”: 999,
                “ageMin”: 0,
                “contactFirstName”: “rahmatbot”,
                “contactLastName”: “Ramadhan”,
                “maxFollower”: 0,
                “socialIdMessenger”: [
                    “1672435742856025”
                ],
                “socialNameMessenger”: [
                    “mamatbot Ramadhan”
                ],
                “socialProfilePictureMessenger”: [
                    “https://platform-lookaside.fbsbx.com/platform/profilepic/?psid=1672435742856025&width=1024&ext=1550741866&hash=AeS5rf6GGKm63IdP”
                ],
                “socialScreenNameMessenger”: [
                    “mamatbot Ramadhan”
                ],
                “socialsString”: “mamatbot Ramadhan”,
                “module”: “”,
                “additionalField”: [
                    “flight_no:123, train_no:456”
                ]
            },
            “channelName”: “Dolphin-Chat”,
            “internalCallRecipient”: false,
            “close”: false,
            “pictureUrl”: “http://localhost:9080/dolphin/apiv1/graph/tickets/outbound/picture/ 29BACB0C4D93F9036FE1704E0309255D_164278103-fashion-wallpapers.jpg”,
            “prettyDate”: “2019-01-09 15:53:21”,
            “friendlyName”: “rahmatbot Ramadhan”,
            “statusStyle”: “”,
            “overReplySla”: false,
            “attachmentExist”: false,
            “conferenceParticipantObject”: [],
            “callParticipantObject”: [],
            “callVariableObject”: [],
            “displayConferenceParticipant”: false,
            “ccList”: [],
            “emailRecipient”: “”,
            “ccListFormatted”: “”
        }
     ]
}

Reply message by ticket number and channel type

MethodPOST
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/tickets/add/ {ticketNumber}/channels/{channelType}?replyAgent=[agentId]&messageId=[messageId]&message=[message]&isGreeting=[isGreeting]
Header AuthorizationBearer [generatedToken]
Body
Status 200
Response

Get ticket conversation by ticket number

Method GET
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/tickets/conversations/[ticketNumber]?start=[start]&count=[count]
Header Authorization Bearer [generatedToken]
Body
Status 200
Response
{
  “status”: “success”,
  “data”: [
    {
            “id”: “d1d1ee293d6fa56893ae996d5b7053da”,
            “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “createdDate”: 1547024006323,
            “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “modifiedDate”: 1547024006323,
            “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “accountId”: “darius.hastomo@inmotion.co.id”,
            “accountName”: “Darius Hastomo”,
            “accountScreen”: “0817121384444”,
            “answer”: false,
            “assignedAgent”: “Bot”,
            “assignedDate”: 1547024006805,
            “botId”: “609af465544b32cd8849eb9af138407f”,
            “channel”: “3d38a6b93db124dfbf5dff22807e3b55”,
            “channelKey”: “f181392d7b4f13ec1903d6359edf0cf2”,
            “channelType”: “webchat”,
            “createdDateText”: “2019-01-09 15:53”,
            “message”: “kirim audio”,
            “messageId”: “f181392d7b4f13ec1903d6359edf0cf2;c3d073ad2f352b14f71bf3e54dbf1f31;117.102.114.91”,
            “parent”: 0,
            “severity”: “Not Set”,
            “replyAgent”: “Bot”,
            “subject”: “Kirim gambar”,
            “ticketNumber”: “9f592fe8b3cdf15e09eb5703e7b15535”,
            “contact”: {
                “id”: “72a0da366e4dfac729d96acdf75b45f7”,
                “spell”: [
                    “rahmatbot”,
                    “rahmatbot”,
                    “Ramadhan”,
                    “mamatbot Ramadhan”,
                    “Ramadhan”,
                    “mamatbot Ramadhan”
                ],
                “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “createdDate”: 1551785803089,
                “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “modifiedDate”: 1551785933036,
                “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “ageMax”: 999,
                “ageMin”: 0,
                “contactFirstName”: “rahmatbot”,
                “contactLastName”: “Ramadhan”,
                “maxFollower”: 0,
                “socialIdMessenger”: [
                    “1672435742856025”
                ],
                “socialNameMessenger”: [
                    “mamatbot Ramadhan”
                ],
                “socialProfilePictureMessenger”: [
                    “https://platform-lookaside.fbsbx.com/platform/profilepic/?psid=1672435742856025&width=1024&ext=1550741866&hash=AeS5rf6GGKm63IdP”
                ],
                “socialScreenNameMessenger”: [
                    “mamatbot Ramadhan”
                ],
                “socialsString”: “mamatbot Ramadhan”,
                “module”: “”,
                “additionalField”: [
                    “flight_no:123, train_no:456”
                ]
            },
            “channelName”: “Dolphin-Chat”,
            “internalCallRecipient”: false,
            “close”: false,
            “prettyDate”: “2019-01-09 15:53:26”,
            “friendlyName”: “rahmatbot Ramadhan”,
            “statusStyle”: “”,
            “overReplySla”: false,
            “attachmentExist”: false,
            “conferenceParticipantObject”: [],
            “callParticipantObject”: [],
            “callVariableObject”: [],
            “displayConferenceParticipant”: false,
            “friendlyId”: “0817121384444”,
            “ccList”: [],
            “emailRecipient”: “”,
            “ccListFormatted”: “”
        },
        {
            “id”: “8e7993c32ceb5ccc2e3a895e1c96d448”,
            “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “createdDate”: 1547024001664,
            “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “modifiedDate”: 1547024001664,
            “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “accountId”: “f181392d7b4f13ec1903d6359edf0cf2”,
            “accountName”: “WebChat”,
            “answer”: true,
            “botId”: “609af465544b32cd8849eb9af138407f”,
            “channel”: “3d38a6b93db124dfbf5dff22807e3b55”,
            “channelKey”: “f181392d7b4f13ec1903d6359edf0cf2”,
            “channelType”: “webchat”,
            “createdDateText”: “2019-01-09 15:53”,
            “message”: “”,
            “messageId”: “f181392d7b4f13ec1903d6359edf0cf2;c3d073ad2f352b14f71bf3e54dbf1f31;117.102.114.91”,
            “parent”: 0,
            “pictureLink”: “{‘bucket’:’media-images-button’,
‘filename’:’29BACB0C4D93F9036FE1704E0309255D_164278103-fashion-wallpapers.jpg’,
‘contentType’:’image/jpeg’}”,             “severity”: “Not Set”,
            “replyAgent”: “Bot”,
            “responseTime”: 1,
            “responseTimeAgent”: 1,
            “subject”: “Kirim gambar”,
            “ticketNumber”: “9f592fe8b3cdf15e09eb5703e7b15535”,
            “contact”: {
                “id”: “72a0da366e4dfac729d96acdf75b45f7”,
                “spell”: [
                    “rahmatbot”,
                    “rahmatbot”,
                    “Ramadhan”,
                    “mamatbot Ramadhan”,
                    “Ramadhan”,
                    “mamatbot Ramadhan”
                ],
                “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “createdDate”: 1551785803089,
                “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “modifiedDate”: 1551785933036,
                “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “ageMax”: 999,
                “ageMin”: 0,
                “contactFirstName”: “rahmatbot”,
                “contactLastName”: “Ramadhan”,
                “maxFollower”: 0,
                “socialIdMessenger”: [
                    “1672435742856025”
                ],
                “socialNameMessenger”: [
                    “mamatbot Ramadhan”
                ],
                “socialProfilePictureMessenger”: [
                    “https://platform-lookaside.fbsbx.com/platform/profilepic/?psid=1672435742856025&width=1024&ext=1550741866&hash=AeS5rf6GGKm63IdP”
                ],
                “socialScreenNameMessenger”: [
                    “mamatbot Ramadhan”
                ],
                “socialsString”: “mamatbot Ramadhan”,
                “module”: “”,
                “additionalField”: [
                    “flight_no:123, train_no:456”
                ]
            },
            “channelName”: “Dolphin-Chat”,
            “internalCallRecipient”: false,
            “close”: false,
            “pictureUrl”: “http://localhost:9080/dolphin/apiv1/graph/tickets/outbound/picture/ 29BACB0C4D93F9036FE1704E0309255D_164278103-fashion-wallpapers.jpg”,
            “prettyDate”: “2019-01-09 15:53:21”,
            “friendlyName”: “rahmatbot Ramadhan”,
            “statusStyle”: “”,
            “overReplySla”: false,
            “attachmentExist”: false,
            “conferenceParticipantObject”: [],
            “callParticipantObject”: [],
            “callVariableObject”: [],
            “displayConferenceParticipant”: false,
            “ccList”: [],
            “emailRecipient”: “”,
            “ccListFormatted”: “”
        }
  ]
}

Get Ticket Assigned List

MethodGET
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/tickets/assignment
Header Authorization Bearer [generatedToken]
Body
Status 200
Response
{
    “status”: “success”,
    “data”: [
        {
            “id”: “f04249258126ec8996ce864839f9dd9a”,
            “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “createdDate”: 1554883273567,
            “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “modifiedDate”: 1554883869067,
            “modifiedBy”: “148dcc9d4365d5ad1b4a29cbc2dca56e”,
            “accountId”: “rizali@gmail.com”,
            “accountName”: “Rizal”,
            “accountScreen”: “0819877194”,
            “answer”: false,
            “assignedAgent”: “148dcc9d4365d5ad1b4a29cbc2dca56e”,
            “assignedDate”: 1554883709731,
            “assignedDateText”: “2019-04-10 15:08”,
            “assignDuration”: 18,
            “greetingStatus”: true,
            “botId”: “609af465544b32cd8849eb9af138407f”,
            “channel”: “a333fddc9859f8109e39c2e12e2a7e39”,
            “channelKey”: “2331e9b29868871d1d5137c637524ac4”,
            “channelType”: “webchat”,
            “closeInterval”: 595,
            “closedBy”: “148dcc9d4365d5ad1b4a29cbc2dca56e”,
            “closedDate”: 1554883869017,
            “closedDateText”: “2019-04-10 15:11”,
            “contactId”: “ce7adb665f67508ae8d5d4df71f12e2e”,
            “createdDateText”: “2019-04-10 15:01”,
            “group”: “Bot”,
            “incoming”: true,
            “mention”: false,
            “message”: “hai”,
            “messageId”: “2331e9b29868871d1d5137c637524ac4;c5e5cbc1a142722017a9e26f38dea935;localhost”,
            “notified”: true,
            “openDate”: 1554883727830,
            “openDateText”: “2019-04-10 15:08”,
            “openDuration”: 12,
            “parent”: 1,
            “pendingDate”: 1554883739949,
            “pendingDateText”: “2019-04-10 15:08”,
            “pendingDuration”: 129,
            “post”: false,
            “reassigned”: true,
            “redistribute”: false,
            “remark”: “”,
            “severity”: “Not Set”,
            “responseTime”: 30,
            “ruleId”: “b1f40d1fe6753ce7b2538dd7be7a4667”,
            “status”: “Closed”,
            “subject”: “hai”,
            “supervisor”: “7a449190cc6af19521977c74c5c3f423,e6a59c632f4229742da305ed4450e59a”,
            “ticketNumber”:”18361ee91cdc48ba25b8d4673eea5164″,
            “toGroup”: “3871981d6c8d1982f23a22f44c3737f8”,
            “transfered”: false,
            “transferedDate”: 1554883709731,
            “transferedDateText”:”2019-04-10 15:08″,
            “transferedFrom”:”Bot”,
            “transferedTo”:”148dcc9d4365d5ad1b4a29cbc2dca56e”,
            “unassignedDate”: 1554883709731,
            “unassignedDateText”:”2019-04-10 15:08″,
            “unassignDuration”: 0,
            “withinSla”: true,
            “online”: true,
            “ticketTags”: [
                “NEUTRAL”,
                “default”
            ],
            “transferInterval”: 159,
            “customFields”: {
                “online_date”: 1554883273608
            },
            “contact”: {
                “id”:”ce7adb665f67508ae8d5d4df71f12e2e”,
                “spell”: [
                    “Rizal”,
                    “rizali@gmail.com”,
                    “0819877194”,
                    “Rizal”
                ],
                “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “createdDate”: 1554882518066,
                “createdBy”:”82ab0fd5cfd1e80d1ff97c0cfc9aa9e2″,
                “modifiedDate”: 1554882518066,
                “modifiedBy”:”82ab0fd5cfd1e80d1ff97c0cfc9aa9e2″,
                “ageMax”: 0,
                “ageMin”: 0,
                “contactEmail”: [
                    “rizali@gmail.com”
                ],
               “contactEmailString”: “rizali@gmail.com”,
                “contactFirstName”: “Rizal”,
                “maxFollower”: 0,
                “phoneTypes”: [
                    “Mobile”
                ],
                “phones”: [
                    “0819877194”
                ],
                “phonesString”: “0819877194”,
                “socialIdWebchat”: [
                    “0819877194-Rizal”
                ],
                “socialNameWebchat”:[
                    “Rizal”
                ],
                “socialScreenNameWebchat”: [
                    “rizali@gmail.com”
                ],
                “socialsString”: “rizali@gmail.com,rizali@gmail.com”,
                “module”:”Chit Chat”
            },
            “channelName”: “DChat”,
            “internalCallRecipient”: false,
            “close”: false,
            “prettyDate”: “2019-04-10 15:01:13”,
            “friendlyName”: “Rizal”,
            “statusStyle”: “ticket-closed”,
            “overReplySla”: false,
            “attachmentExist”: false,
            “conferenceParticipantObject”: [],
            “callParticipantObject”: [],
            “callVariableObject”: [],
            “displayConferenceParticipant”: false,
            “friendlyId”: “0819877194”,
            “ccList”: [],
            “emailRecipient”: “”,
            “ccListFormatted”: “”
        }
    ],
    “hasMore”: false
}

Get Priority Ticket By User Id

Method GET
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/tickets/priority
Header Authorization Bearer [generatedToken]
Body
Status 200
Response
{
    “status”: “success”,
    “data”: [
        {
            “id”: “be75bb7b1f21728d42eac9ca1a3fcf8c”,
            “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “createdDate”: 1556042405774,
            “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “modifiedDate”: 1556042422315,
            “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
            “accountId”: “shin_hye@rocketmail.com”,
            “accountName”: “Reja”,
            “accountScreen”: “0819877194”,
            “answer”: false,
            “assignedAgent”: “148dcc9d4365d5ad1b4a29cbc2dca56e”,
            “assignedDate”: 1556042422315,
            “assignedDateText”: “2019-04-24 01:00”,
            “botId”: “609af465544b32cd8849eb9af138407f”,
            “channel”: “a333fddc9859f8109e39c2e12e2a7e39”,
            “channelKey”: “2331e9b29868871d1d5137c637524ac4”,
            “channelType”: “webchat”,
            “contactId”: “aff86832e33eb6076ee057aca1fbd843”,
            “createdDateText”:”2019-04-24 01:00″,
            “group”: “Bot”,
            “incoming”: false,
            “mention”: false,
            “message”: “hai”,
            “messageId”: “2331e9b29868871d1d5137c637524ac4;7fc4333af06a947f302a618acd3de2f3;localhost”,
            “notified”: false,
            “parent”: 1,
            “post”: false,
            “priority”: true,
            “reassigned”: true,
            “reassignedText”: “true”,
            “redistribute”: false,
            “severity”: “Not Set”,
            “ruleId”: “b257b8439cc18288359f02c8506c2c24”,
            “status”: “Assigned”,
            “subject”: “hai”,
            “supervisor”: “e6a59c632f4229742da305ed4450e59a,7a449190cc6af19521977c74c5c3f423”,
            “ticketNumber”:”d4e5e3aec89e493edcecaeab6e9544dd”,
            “toGroup”: “3871981d6c8d1982f23a22f44c3737f8”,
            “transfered”: false,
            “transferedDate”: 1556042422315,
            “transferedDateText”: “2019-04-24 01:00”,
            “transferedFrom”: “Bot”,
            “transferedText”: “false”,
            “transferedTo”: “148dcc9d4365d5ad1b4a29cbc2dca56e”,
            “unassignedDate”: 1556042422315,
            “unassignedDateText”: “2019-04-24 01:00”,
            “unassignDuration”: 0,
            “online”: true,
            “contact”: {
                “id”: “aff86832e33eb6076ee057aca1fbd843”,
                “spell”: [
                    “shin_hye@rocketmail.com”,
                    “Reja”,
                    “0819877194”,
                    “Reja”
                ],
                “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “createdDate”: 1547114759706,
                “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “modifiedDate”: 1558734369756,
                “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
                “address”: “-6.166805699999999;106.8182156;Jl. Kh. Hasyim Ashari Dlm No.28, Rt.2/rw.8, Petojo Utara, Kec. Gambir, Kota Jakarta Pusat, Daerah Khusus Ibukota Jakarta 10130, Indonesia@250519”,
                “ageMax”: 0,
                “ageMin”: 0,
                “contactEmail”: [
                    “shin_hye@rocketmail.com”
                ],
               “contactEmailString”: “shin_hye@rocketmail.com”,
                “contactFirstName”:”Reja”,
                “contactId”:”123456″,
                “maxFollower”: 0,
                “phoneTypes”: [
                    “Mobile”
                ],
                “phones”: [
                    “0819877194”
                ],
                “phonesString”: “0819877194”,
                “socialIdWebchat”: [
                    “shin_hye@rocketmail.com”
                ],
                “socialNameWebchat”: [
                    “Reja”
                ],
                “socialScreenNameWebchat”: [
                   “shin_hye@rocketmail.com”
                ],
                “socialsString”:”shin_hye@rocketmail.com,shin_hye@rocketmail.com”,
                “module”:”Chit Chat”
            },
            “channelName”: “DChat”,
            “internalCallRecipient”: false,
            “close”: false,
            “prettyDate”: “2019-04-24 1:00:05”,
            “friendlyName”: “Reja”,
            “statusStyle”: “ticket-assigned”,
            “overReplySla”: false,
            “attachmentExist”: false,
            “conferenceParticipantObject”: [],
            “callParticipantObject”: [],
            “callVariableObject”: [],
            “displayConferenceParticipant”: false,
            “friendlyId”: “0819877194”,
            “ccList”: [],             “emailRecipient”: “”,
            “ccListFormatted”: “”
        }
    ],
    “hasMore”: false
}

Send Messages

Method POST
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/tickets/sendMessage  
Header Authorization Bearer [generatedToken]
Body {
            “ticketNumber”:”[TicketNumber]”,
            “channelType”:”[ChannelType]”,
            “contactId”:”<Optional>”,
            “replyAgent”:”[AgentIId]”,
            “message”:”ini pesan dari saya lagi”,
            “isGreeting”:”false”
}
Status 200
Response
{
    “status”: “success”,
    “data”: {
        “id”: “9b768c210328a324514cc2dadb6be6c2”,
        “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
        “createdDate”: 1565584983343,
        “createdBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
        “modifiedDate”: 1565585137736,
        “modifiedBy”: “148dcc9d4365d5ad1b4a29cbc2dca56e”,
        “accountId”: “mark31@gmail.com”,
        “accountName”: “mark”,
        “accountScreen”: “078212121122”,
        “answer”: false,
        “assignedAgent”: “148dcc9d4365d5ad1b4a29cbc2dca56e”,
        “assignedDate”: 1565584985827,
        “assignedDateText”: “2019-08-12 11:43”,
        “assignDuration”: 98,
        “greetingStatus”: true,
        “channel”: “a333fddc9859f8109e39c2e12e2a7e39”,
        “channelKey”: “2331e9b29868871d1d5137c637524ac4”,
        “channelType”: “webchat”,
        “contactId”: “ed2b2e94ac09fc505617afe46dc864ed”,
        “createdDateText”: “2019-08-12 11:43”,
        “group”: “3871981d6c8d1982f23a22f44c3737f8”,
        “incoming”: false,
        “message”: “hei”,
        “messageId”: “2331e9b29868871d1d5137c637524ac4;2250cd2afe53111720d8f4f7da29e0b4;localhost”,
        “notified”: true,
        “openDate”: 1565585084805,
        “openDateText”: “2019-08-12 11:44”,
        “openDuration”: 4,
        “parent”: 1,
        “pendingDate”: 1565585089335,
        “pendingDateText”: “2019-08-12 11:44”,
        “pendingDuration”: 48,
        “redistribute”: false,
        “responseTime”: 102,
        “ruleId”: “b257b8439cc18288359f02c8506c2c24”,
        “status”: “Pending”,
        “subject”: “hei”,
        “supervisor”: “7a449190cc6af19521977c74c5c3f423,e6a59c632f4229742da305ed4450e59a”,
        “ticketNumber”: “1908120000003”,
        “toGroup”: “3871981d6c8d1982f23a22f44c3737f8”,
        “unassignedDate”: 1565584985827,
        “unassignedDateText”: “2019-08-12 11:43”,
        “unassignDuration”: 0,
        “withinSla”: true,
        “online”: true,
        “ticketTags”: [
            “default”
        ],
        “transactionId”: “1565584971250”,
        “markRead”: true,
        “customFields”: {
            “online_date”: 1565584985841
        }
    },
    “hasMore”: false
}

Upload File

Method POST
Media Type multipart/form-data
URL http://[server]/dolphin/apiv1/graph/file/upload/[ticketNumber]
Header Authorization Bearer [generatedToken]
Body form-data Key : file
Value: [file_name.extension]
Status 200
Response
{
    “status”: “success”,
    “data”: [
        {
            “isGreeting”: false <Optional>,
            “attachment”: “1908120000003_3A1B7E79A4602627D6E4A51BE1F70E70*~*inmotion-keyboard.mp4”,
            “attachmentType”: “video/mp4”,
            “ticketNumber”: “1908120000003”
        }
    ],
    “hasMore”: false
}

Send Media Messages

Method POST
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/tickets/sendMessage  
Header Authorization Bearer [generatedToken]
Body {
       “ticketNumber”:”[TicketNumber]”,
        “channelType”:”[ChannelType]”,
        “replyAgent”:”[AgentId]”,
        “attachment”:”[Attachment]”,
        “attachmentType”:”[AttachmentType]”
}
Status 200
Response
{
    “status”: “success”,
    “data”: [
        {
            “isGreeting”: false,
            “attachment”: “1908120000003_3A1B7E79A4602627D6E4A51BE1F70E70*~*inmotion-keyboard.mp4”,
            “attachmentType”:”video/mp4″,
            “ticketNumber”: “1908120000003”
        }
    ],
    “hasMore”: false
}

Reassign ticket

MethodPUT
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/tickets/update/ {ticketNumber}/reassign&supervisorUserId=[supervisorUserId]
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”: “success”,
    “data”:
    {
      “id”:”c839dec32b01ed18ccccfc47227a3e52″,
      “spell”: [
      “Reja”,
      “Halo”,
      “Halo”,
      “f9d8072e25fe04c559c1f4c9c8ca1536”
      ],
      “accountId”:”U289f7ce558d06eef186014dd6eb8d5d8″,
      “accountName”:”Reja”,
      “accountScreen”:”Reja”,
      “answer”: false,
      “assignedAgent”:”string”,
      “assignedDate”:1534258838310,
      “assignedDateText”: “2018-08-14 15:00”,
      “greetingStatus”: true,
      “channel”:”fc03fb64e0a5dec2f087d31d261870b4″,
      “channelKey”:”1569274564″,
      “channelType”:”linebot”,
      “contactId”:”6338f2f7db2b4d2d94faa3e2ddddc6c9″,
      “createdDate”: 1533137313855,
      “createdDateText”:”2018-08-01 15:28″,
      “group”: “string”,
      “incoming”: true,
      “message”: “Halo”,
      “messageId”:”U289f7ce558d06eef186014dd6eb8d5d8;1569274564″,
      “notified”: false,
      “openDateText”:”2018-08-14 14:45″,
      “parent”: 1,
      “pendingDateText”:”2018-08-14 14:45″,
      “profileLink”:”http://dl.profile.line-cdn.net/0hv9wYP8yCKRZKIAa2_mhWQXZlJ3s9Di9eMhY1cDogJyRjQ2lIfhZuIG4lfiUzEDs XcRNmI2Yocidl”,
      “redistribute”: false,
      “responseTime”:100,
      “status”: “Assigned”,
      “subject”: “Halo”,
      “supervisor”:”09348c20a019be0318387c08df7a783d”,
      “ticketNumber”:”f9d8072e25fe04c559c1f4c9c8ca1536″,
      “unassignedDate”:1534258838310,
      “unassignedDateText”:”2018-08-14 15:00″,
      “unassignDuration”: 0,
      “withinSla”: true,
      “ticketOwner”:”21232f297a57a5a743894a0e4a801fc3″
    }
}

Transfer ticket

MethodPUT
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/tickets/update/ {ticketNumber}/transfer?groupId=[groupId]&userId=[userId]
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”: “success”,
    “data”:
    {
      “id”:”41aed87f770bf558db8906d1208c84a6″,
      “spell”: [
      “margareta amelia”,
      “Produk dong”,
      “Produk dong”,
      “7aae6bfb63a7cdaeb69033af36f29166”
      ],
      “accountId”:”Uc033be6db9eb15e8ea93daa60ed93e37″,
      “accountName”:”margareta amelia”,
      “accountScreen”:”margareta amelia”,
      “answer”: false,
      “assignedAgent”:”043150571a91d0c167a5db293681a5e5″,
      “assignedDate”: 1534259283292,
      “assignedDateText”:”2018-08-14 15:08″,
      “assignDuration”:141,
      “greetingStatus”: true,
      “channel”:”fc03fb64e0a5dec2f087d31d261870b4″,
      “channelKey”:”1569274564″,
      “channelType”:”linebot”,
      “contactId”:”c7404b59de18223183b12ed749a9c7ef”,
      “createdDate”: 1533195602404,
      “createdDateText”: “2018-08-02 07:40”,
      “group”:”50517caf-09ca-4820-bc00-2dba6af32d3d”,
      “incoming”: true,
      “message”: “Produk dong”,
      “messageId”: “Uc033be6db9eb15e8ea93daa60ed93e37;1569274564”,
      “notified”: false,
      “openDateText”:”2018-08-14 15:10″,
      “openDuration”: 0,
      “parent”: 1,
      “pendingDateText”: “2018-08-14 15:07”,
      “profileLink”:”http://dl.profile.line-cdn.net/0h6bjjAuenaU1XE0aAt54WGmtWZyAgPW8FL3x0eCFBYnl6dCxPO3QlL3UUMH19 dywdY30lfyVAZ3oq”,
      “redistribute”:false,
      “responseTime”: 4,
      “status”:”Unassigned”,
      “subject”:”Produk dong”,
      “ticketNumber”:”7aae6bfb63a7cdaeb69033af36f29166″,
      “transferedDateText”: “2018-08-14 15:05”,
      “unassignedDate”: 1534259283292,
      “unassignedDateText”:”2018-08-14 15:08″,
      “unassignDuration”: 0,
      “withinSla”: true,
      “ticketOwner”:”21232f297a57a5a743894a0e4a801fc3″
    }
}

Escalate ticket

MethodPUT
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/tickets/update/ {ticketNumber}/escalate?agentId=[agentId]&supervisorId=[supervisorId]
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”: “success”,
    “data”:
    {
      “id”:”64e53b13518355ef1a7024f666f4b744″,
      “spell”: [
      “Reja”,
      “Halo”,
      “Halo”,
      “f9d8072e25fe04c559c1f4c9c8ca1536”
      ],
      “accountId”:”U289f7ce558d06eef186014dd6eb8d5d8″,
      “accountName”:”Reja”,
      “accountScreen”:”Reja”,
      “answer”: false,
      “assignedAgent”:”09348c20a019be0318387c08df7a783d”,
      “assignedDate”: 1534258247125,
      “assignedDateText”:”2018-08-14 14:50″,
      “greetingStatus”: true,
      “channel”:”fc03fb64e0a5dec2f087d31d261870b4″,
      “channelKey”:”1569274564″,
      “channelType”:”linebot”,
      “contactId”:”6338f2f7db2b4d2d94faa3e2ddddc6c9″,
      “createdDate”: 1533137313855,
      “createdDateText”: “2018-08-01 15:28”,
      “escalated”: true,
      “escalatedDate”: 1534258247125,
      “escalatedFrom”:”043150571a91d0c167a5db293681a5e5″,
      “escalatedTo”:”09348c20a019be0318387c08df7a783d”,
      “group”:”99671c29-3b70-4a7b-bfae-ac16aaf44587″,
      “incoming”: true,
      “message”: “Halo”,
      “messageId”:”U289f7ce558d06eef186014dd6eb8d5d8;1569274564″,
      “notified”: false,
      “openDateText”:”2018-08-14 14:45″,
      “parent”: 1,
      “pendingDateText”: “2018-08-14 14:5”,
      “profileLink”:”http://dl.profile.line-cdn.net/0hv9wYP8yCKRZKIAa2_mhWQXZlJ3s9Di9eMhY1cDogJyRjQ2lIfhZuIG4lfiUzEDsXc RNmI2Yocidl”,
      “redistribute”:false,
      “responseTime”:100,
      “status”:”Assigned”,
      “subject”:”Halo”,
      “supervisor”:”09348c20a019be0318387c08df7a783d”,
      “ticketNumber”:”f9d8072e25fe04c559c1f4c9c8ca1536″,
      “unassignedDate”: 1534258247125,
      “unassignedDateText”:”2018-08-14 14:50″,
      “unassignDuration”: 0,
      “withinSla”: true,
      “ticketOwner”:”21232f297a57a5a743894a0e4a801fc3″
    }
}

Transfer ticket from bot to agent

MethodPUT
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/tickets/update/ {ticketNumber}/transferToAgent
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”: “success”,
    “data”:
    {
      “id”:”113f61a1c8adb22a01187cf5dc978fc8″,
      “spell”: [
      “margareta amelia”,
      “Produk dong”,
      “Produk dong”,
      “7aae6bfb63a7cdaeb69033af36f29166”
      ],
      “accountId”:”Uc033be6db9eb15e8ea93daa60ed93e37″,
      “accountName”:
      “margareta amelia”,
      “accountScreen”:”margareta amelia”,
      “answer”: false,
      “assignedDate”: 1533195602428,
      “assignedDateText”:”2018-08-02 07:40″,
      “greetingStatus”: false,
      “channel”:”fc03fb64e0a5dec2f087d31d261870b4″,
      “channelKey”:”1569274564″,
      “channelType”:”linebot”,
      “contactId”: “c7404b59de18223183b12ed749a9c7ef”,
      “createdDate”: 1533195602404,
      “createdDateText”: “2018-08-02 07:40”,
      “group”: “Bot”,
      “incoming”: true,
      “message”: “Produk dong”,
      “messageId”:”Uc033be6db9eb15e8ea93daa60ed93e37;1569274564″,
      “notified”: false,
      “parent”: 1,
      “profileLink”:”http://dl.profile.line-cdn.net/0h6bjjAuenaU1XE0aAt54WGmtWZyAgPW8FL3x0eCFBYnl6dCxPO3QlL3UUMH19 dywdY30lfyVAZ3oq”,
      “reassigned”: true,
      “reassignedText”:”true”,
      “redistribute”:false,
      “status”:”Unassigned”,
      “subject”:”Produk dong”,
      “ticketNumber”:”7aae6bfb63a7cdaeb69033af36f29166″,
      “transfered”: false,
      “transferedDate”:1534259116279,
      “transferedDateText”:”2018-08-14 15:05″,
      “transferedFrom”:”Bot”,
      “transferedText”:”false”,
      “unassignedDate”:1534259116279,
      “unassignedDateText”:”2018-08-14 15:05″,
      “ticketOwner”:”21232f297a57a5a743894a0e4a801fc3″
    }
}

Users API

Get list of user by id

MethodGET
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/users?userId=[userId]
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”: “success”,
    “data”:
    {
      “id”:”21232f297a57a5a743894a0e4a801fc3″,
      “spell”: [
      “”,
      “12345”,
      “”,
      “admin”
      ],
      “active”: false,
      “blocked”: “0”,
      “changePassword”: false,
      “deleted”: false,
      “group”:”99671c29-3b70-4a7b-bfae-ac16aaf44587″,
      “email”:”admin@inmotion.co.id”,
      “firstName”: “”,
      “identityNumber”: “12345”,
      “ip”: “”,
      “language”:”Indonesia”,
      “lastName”: “”,
      “loginTime”: 1534216451791,
      “mobileToken”:”dccq0JRCHQQ:APA91bEiXDUHDK5WPMEbSSuSrhNWa0OXo-tvlnKClC5tCnFWa1iWR2n-RWL2ip5loPlsbDw2pSfeIGwWgY-cbI3pFB18UoBzWfH8aq7rMO5plJ8ZX_1qgPWyc0zEDeRXNOMCYsnWjq3Q”,
      “mobileType”:”Android”,
      “name”: “admin”,
      “nickName”:”admin”,
      “password”:”443a2214df1166cf3bab99b74c7ccf08″,
      “privilegeId”:”94e9317b-967b-46c4-8471-5314dddef110″,
      “profileImage”:”http://www.inmotion.co.id/assets/images/team/member-1.png”,
      “role”:”Administrator”,
      “stopAutoAssign”: false,
      “updatePasswordTime”:1505375504505,
      “validatedId”:”7131304e4a7454796c552b6e6e5a6b54547a632f5677694655754b72766e4 749703654784b707a78786f3956456f736c56784934766f58537948666f57503857″,
      “loginAttempt”: 0,
      “userOwner”:”21232f297a57a5a743894a0e4a801fc3″,
      “checker”: false,
      “menu”:”horizontal”,
      “profile”:”overlay”,
      “available”: false,
      “activeFiltered”: false
    }
}

Get user by user role  (admin=0, Trainer=1, Operator=2, Supervisor=3, QA=4)

MethodGET
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/users?role=1&start=0&count=10
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”: “success”,
    “data”: [
    {
      “id”:”21232f297a57a5a743894a0e4a801fc3″,
      “spell”: [
      “”,
      “12345”,
      “”,
      “admin”
      ],
      “active”: false,
      “blocked”: “0”,
      “changePassword”: false,
      “deleted”: false,
      “group”:”99671c29-3b70-4a7b-bfae-ac16aaf44587″,
      “email”: “admin@inmotion.co.id”,
      “firstName”: “”,
      “identityNumber”:”12345″,
      “ip”: “”,
      “language”:”Indonesia”,
      “lastName”:””,
      “loginTime”:1534216451791,
      “mobileToken”:”dccq0JRCHQQ:APA91bEiXDUHDK5WPMEbSSuSrhNWa0OXo-tvlnKClC5tCnFWa1iWR2n-RWL2ip5loPlsbDw2pSfeIGwWgY-cbI3pFB18UoBzWfH8aq7rMO5plJ8ZX_1qgPWyc0zEDeRXNOMCYsnWjq3Q”,
      “mobileType”:”Android”,
      “name”:”admin”,
      “nickName”:”admin”,
      “password”:”443a2214df1166cf3bab99b74c7ccf08″,
      “privilegeId”:”94e9317b-967b-46c4-8471-5314dddef110″,
      “profileImage”:”http://www.inmotion.co.id/assets/images/team/member-1.png”,
      “role”:”Administrator”,
      “stopAutoAssign”: false,
      “updatePasswordTime”:1505375504505,
      “validatedId”:”7131304e4a7454796c552b6e6e5a6b54547a632f5677694655754b72766e47 49703654784b707a78786f3956456f736c56784934766f58537948666f57503857″,
      “loginAttempt”: 0,
      “userOwner”:”21232f297a57a5a743894a0e4a801fc3″,
      “checker”: false,
      “menu”: “horizontal”
      “profile”:”overlay”,
      “available”: false,
      “activeFiltered”: false
    },
    {
      “id”:”834a6d9e03af7b3fda8dd8b0bbb9a95d”,
      “spell”: [
      “Sri”,
      “Sri”,
      “Wunon”,
      “sri”,
      “Wunon”,
      “sri”
      ],
      “active”: false,
      “blocked”:”1″,
      “changePassword”: true,
      “deleted”: false,
      “group”:”99671c29-3b70-4a7b-bfae-ac16aaf44587″,
      “email”:”sri@inmotion.co.id”,
      “firstName”:”Sri”,
      “language”:”Indonesia”,
      “lastName”:”Wunon”,
      “loginTime”:1519102294008,
      “nickName”:”sri”,
      “password”:”834a6d9e03af7b3fda8dd8b0bbb9a95d”,
      “privilegeId”:”94e9317b-967b-46c4-8471-5314dddef110″,
      “profileImage”:”http://www.inmotion.co.id/assets/images/team/member-1.png”,
      “role”:”Administrator”,
      “stopAutoAssign”: false,
      “updatePasswordTime”:1519102294009,
      “userName”:”sri”,
      “loginAttempt”: 0,
      “checker”: false,
      “activeFiltered”: false
    },
    {
      “id”:”6268a63851f76e261cce34a5279182b0″,
      “spell”: [
      “Admin”,
      “014124098124098”,
      “Checker”,
      “admin checker”
      ],
      “active”: false,
      “blocked”:”0″,
      “changePassword”: false,
      “deleted”: false,
      “group”:”99671c29-3b70-4a7b-bfae-ac16aaf44587″,
      “email”: “admin.checker@inmotion.co.id”,
      “firstName”:”Admin”,
      “identityNumber”: “014124098124098”,
      “ip”: “”,
      “language”:”Indonesia”,
      “lastName”:”Checker”,
      “loginTime”:1533637451558,
      “nickName”: “admin checker”,
      “password”:”443a2214df1166cf3bab99b74c7ccf08″,
      “privilegeId”: “94e9317b-967b-46c4-8471-5314dddef110”,
      “profileImage”:””,
      “role”:”Administrator”,
      “stopAutoAssign”: false,
      “updatePasswordTime”:1528453905061,
      “userName”: “admin checker”,
      “validatedId”: “6b6237354c6870736d37454c4c554f756953474432616b4d763731314d42474e774f4d7656 396475796b7456456f736c56784934766f58537948666f57503857”,
      “loginAttempt”: 0,
      “userOwner”: “21232f297a57a5a743894a0e4a801fc3”,
      “checker”: true,
      “activeFiltered”: false
    }
  ]
}

Get User Credential (Login)

MethodPOST
Media Typeapplication/json
URLhttp://[Server]dolphin/apiv1/graph/users/userCredential
HeaderAuthorizationBearer [generatedToken]
Body{
    “email”:”ulialbab@inmotion.co.id”,
    “password”:”Dolphin@123″,
    “ip”:”192.168.0.1″,
    “sessionId”: “223”,
    “event”:”login”
}
Status200
Response
{
    “status”: “success”,
    “data”:
    {
      “id”:”ae9c4e78ee4f556733df6a468d161bc5″,
      “spell”:[“Ulialbab”, “Ulialbab”, “210789”, “Nudiashalih”, “ulil”, “210789”, “Nudiashalih”, “ulil”…],
      “owner”:”82ab0fd5cfd1e80d1ff97c0cfc9aa9e2″,
      “createdDate”:1552379054965,
      “createdBy”:”82ab0fd5cfd1e80d1ff97c0cfc9aa9e2″,
      “modifiedDate”:1552894669516,
      “modifiedBy”:”82ab0fd5cfd1e80d1ff97c0cfc9aa9e2″,
      “active”: false,
      “blocked”: “0”,
      “changePassword”: false,
      “deleted”: false,
      “group”: “99671c29-3b70-4a7b-bfae-ac16aaf44587”,
      “email”: “ulialbab@inmotion.co.id”,
      “firstName”: “Ulialbab”,
      “identityNumber”: “210789”,
      “ip”: “192.168.0.1”,
      “language”: “Indonesia”,
      “lastName”:”Nudiashalih”,
      “loginTime”: 1552894554492,
      “nickName”:”ulil”,
      “password”:”01a7193656bea0454d4952e9ca9183ea”,
      “privilegeId”: “94e9317b-967b-46c4-8471-5314dddef110”,
      “profileImage”: “”,
      “role”: “Administrator”,
      “stopAutoAssign”: false,
      “updatePasswordTime”:1552379104101,
      “userName”:”ulil”,
      “loginAttempt”: 0,
      “checker”: false,
      “available”: false,
      “telephonyEnabled”: false,
      “activeFiltered”: false
    }
}

Get User Credential (Logout)

MethodPOST
Media Typeapplication/json
URLhttp://[Server]dolphin/apiv1/graph/users/userCredential
HeaderAuthorizationBearer [generatedToken]
Body{
    “email”:”ulialbab@inmotion.co.id”,
    “password”:”Dolphin@123″,
    “ip”: “192.168.0.1”,
    “sessionId”: “223”,
    “event”:”logout”
}
Status200
Response
{
    “status”:”success”,
    “data”:
    {
     “userId”:”ae9c4e78ee4f556733df6a468d161bc5″,
     “userName”:null,
     “userGroup”:”99671c29-3b70-4a7b-bfae-ac16aaf44587″,
     “userRole”:”Administrator”
    }
}

Get list of available agent for video call

MethodGET
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/users/agents?start=0&count=10
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”: “success”,
    “data”: [
    {
      “id”:”043150571a91d0c167a5db293681a5e5″,
      “spell”: [
      “Christa”,
      “123”,
      “Vidya”,
      “christa”
      ],
      “active”: true,
      “blocked”: “0”,
      “changePassword”: false,
      “deleted”: false,
      “group”:”99671c29-3b70-4a7b-bfae-ac16aaf44587″,
      “email”: “christa@inmotion.co.id”,
      “firstName”:”Christa”,
      “identityNumber”: “123”,
      “ip”:”0:0:0:0:0:0:0:1″,
      “language”:”Indonesia”,
      “lastName”:”Vidya”,
      “loginTime”:1534259414574,
      “maxQueue”: 5,
      “name”: “christa”,
      “newsKeyword”: “”,
      “nickName”:”Christa”,
      “password”:”443a2214df1166cf3bab99b74c7ccf08″,
      “privilegeId”:”94e9317b-967b-46c4-8471-5314dddef112″
      “profileImage”:”http://www.inmotion.co.id/assets/images/team/member-4.png”,
      “role”: “Operator”,
      “stopAutoAssign”: false,
      “updatePasswordTime”:1511368404598,
      “validatedId”:”4267355772675347314742636d6a69476c6f456d6779456e7a5550715561336d795 147626b39623970734256456f736c56784934766f58537948666f57503857″,
      “loginAttempt”: 0,
      “userOwner”:”21232f297a57a5a743894a0e4a801fc3″,
      “checker”:false,
      “layout”:”night”,
      “menu”:”overlay”,
      “profile”:”overlay”,
      “available”: true,
      “activeFiltered”: false
    }
  ]
}

Update agent availability status for video call

MethodPUT
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/users/agents/update/ {agentId}/available/{available}
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”:”success”,
    “data”:
     {
      “id”:”043150571a91d0c167a5db293681a5e5″,
      “spell”: [
      “Christa”,
      “123”,
      “Vidya”,
      “christa”
      ],
      “active”: true,
      “blocked”:”0″,
      “changePassword”: false,
      “deleted”: false,
      “group”:”99671c29-3b70-4a7b-bfae-ac16aaf44587″,
      “email”:”christa@inmotion.co.id”,
      “firstName”:”Christa”,
      “identityNumber”: “123”,
      “ip”: “0:0:0:0:0:0:0:1”,
      “language”:”Indonesia”,
      “lastName”:”Vidya”,
      “loginTime”:1534259414574,
      “maxQueue”: 5,
      “name”:”christa”,
      “newsKeyword”: “”,
      “nickName”:”Christa”,
      “password”:”443a2214df1166cf3bab99b74c7ccf08″,
      “privilegeId”:”94e9317b-967b-46c4-8471-5314dddef112″,
      “profileImage”:”http://www.inmotion.co.id/assets/images/team/member-4.png”,
      “role”:”Operator”,
      “stopAutoAssign”: false,
      “updatePasswordTime”:1511368404598,
      “validatedId”:”4267355772675347314742636d6a69476c6f456d6779456e7a5550715561336d795 147626b39623970734256456f736c56784934766f58537948666f57503857″,
      “loginAttempt”: 0,
      “userOwner”:”21232f297a57a5a743894a0e4a801fc3″,
      “checker”: false,
      “layout”:”night”,
      “menu”:”overlay”,
      “profile”:”overlay”,
      “available”: true,
      “activeFiltered”:false
    }
}

Create agent video call dialog

MethodPUT
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/users/agents/dialog
HeaderAuthorizationBearer [generatedToken]
Body
Status200
Response
{
    “status”:”success”,
    “data”:”https://contactcenter.3dolphinjitsi.com/0b5ca13718046844f7b12faa8907e521″
}

Create User Mobile Login / Logout Session

MethodPOST
Media Typeapplication/json
URLhttp://[server]/dolphin/apiv1/graph/users/mobile/session
HeaderAuthorizationBearer[generatedToken]
Body {
     “email”: “admin@inmotion.co.id”,
    “password”: “admin@Dolphin123”,
    “mobileToken”:”mobile-token”,
    “mobileType”:”Iphone”,
    “mobileModel”:”model-type”,
    “action”:”[login]/[logout]”
}
Status200
Response
{
    “status”: “success”,
    “data”: {
        “id”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
        “owner”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
        “createdDate”: 1549254327053,
        “createdBy”: “4bee4e80a4b681fe9c74844b4086ca82”,
        “modifiedDate”: 1560336383506,
        “modifiedBy”: “82ab0fd5cfd1e80d1ff97c0cfc9aa9e2”,
        “active”: false,
        “blocked”: “0”,
        “changePassword”: false,
        “deleted”: false,
        “extension”: “”,
        “group”: “99671c29-3b70-4a7b-bfae-ac16aaf44587”,
        “email”: “admin@inmotion.co.id”,
        “firstName”: “admin”,
        “identityNumber”: “0”,
        “ip”: “0:0:0:0:0:0:0:1”,
        “language”: “Indonesia”,
        “lastName”: “”,
        “loginTime”: 1560315162301,
        “mobileSession”: true,
        “nickName”: “admin”,
        “notificationEnabled”: true,
        “password”: “443a2214df1166cf3bab99b74c7ccf08”,
        “privilegeId”: “94e9317b-967b-46c4-8471-5314dddef110”,
        “profileImage”: “https://media.vanityfair.com/photos/558abba4320a56cf42417570/master/w_768,c_limit/robert-downey-jr-the-avengers.jpg”,
        “role”: “Administrator”,
        “stopAutoAssign”: false,
        “updatePasswordTime”: 1549254327053,
        “userName”: “admin”,
        “validatedId”: “6963394751696c5530755639492b51644f546b49344431506b643549336d652b 774a4e595948505578475a56456f736c56784934766f58537948666f57503857”,
        “loginAttempt”: 0,
        “checker”: false,
        “menu”: “horizontal”,
        “profile”: “overlay”,
        “available”: false,
        “telephonyEnabled”: false,
        “activeFiltered”: false     },
    “hasMore”: false
}

Dashboard Average Heandling

Method POST
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/support/chart/avgHandlingTime
Header Authorization Bearer [generatedToken]
Body
Status 200
Response
{
    “status”: “success”,
    “data”: “01:20:00”,
    “hasMore”: false
}

Dashboard Average Wait Time

Method POST
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/support/chart/avgWaitTime
Header Authorization Bearer [generatedToken]
Body
Status 200
Response
{
    “status”: “success”,
    “data”: “00:30:00”,
    “hasMore”: false
}

Update User Data

Method PUT
Media Type application/json
URL http://[server]/dolphin/apiv1/graph/users/update/{userId}  
Header Authorization Bearer [generatedToken]
Body {
“id”:”21232f297a57a5a743894a0e4a801fc3″,
   “active”:false,
   “loginTime”:1534216451791,
   “mobileToken”:”dccq0JRCHQQ:AP”,
   “mobileType”:”Android”
}
Status 200
Response
{
   “id”:”21232f297a57a5a743894a0e4a801fc3″,
   “spell”:[
      “”,
      “12345”,
      “”,
      “admin”    ],
   “active”:false,
   “blocked”:”0″,
   “changePassword”:false,
   “deleted”:false,
   “group”:”99671c29-3b70-4a7b-bfae-ac16aaf44587″,
   “email”:”admin@inmotion.co.id”,
   “firstName”:””,
   “identityNumber”:”12345″,
   “ip”:””,
   “language”:”Indonesia”,
   “lastName”:””,
   “loginTime”:1534216451791,
   “mobileToken”:”dccq0JRCHQQ:APA91bEiXDUHDK5WPMEbSSuSrhNWa0OXo- tvlnKClC5tCnFWa1iWR2n-RWL2ip5loPlsbDw2pSfeIGwWgY- cbI3pFB18UoBzWfH8aq7rMO5plJ8ZX_1qgPWyc0zEDeRXNOMCYsnWjq3Q”,
   3   Dolphin SRM – API Dokumentasi Page | 36  INTERNAL DOKUMEN   “mobileType”:”Android”,
   “name”:”admin”,
   “nickName”:”admin”,
   “password”:”443a2214df1166cf3bab99b74c7ccf08″,
   “privilegeId”:”94e9317b-967b-46c4-8471-5314dddef110″,
   “profileImage”:”http://www.inmotion.co.id/assets/images/team/member-1.png”,
   “role”:”Administrator”,
   “stopAutoAssign”:false,
   “updatePasswordTime”:1505375504505,
   “validatedId”:”7131304e4a7454796c552b6e6e5a6b54547a632f5677694655754b72766e474970 3654784b707a78786f3956456f736c56784934766f58537948666f57503857″,
   “loginAttempt”:0,
   “userOwner”:”21232f297a57a5a743894a0e4a801fc3″,
   “checker”:false,
   “menu”:”horizontal”,
   “profile”:”overlay”,
   “available”:false,
   “activeFiltered”:false
}
Was this article helpful?
Dislike 0