Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »


Pull API - Using Phonon UUID

Use the Pull API to get the details for one or more Phonon UUIDs after the call is over.

Before sending the request, make sure to whitelist your IP through which you are sending API request in the whitelist section.

Request Parameters:

Method

POST

Body

JSON

Headers

Content-Type: application/json

Auth

None

URL

Please contact your Customer Success Manager for the URL

Request Payload:

{
  "security-id": "<64 character alphanumeric Security ID>",
  "flow-id": "<8 character alphanumeric Flow ID>",
  "phonon-uuids": [
    {"<36 character alphanumeric Phonon UUID>"},
    {"<36 character alphanumeric Phonon UUID>"},
    ...
  ],
  "fetch-attempt": "ALL" // ALL = Fetch all attempts; LAST = Fetch only last attempt
}

The Request Payload has been updated on Tuesday 9th May, 2023 with two new additional parameters namely Security ID and Flow ID.

Sample Request:

{
	"security-id": "a1a465d2df243a7559bfdffb65ec7b7c8e60d1b230d482debb01917fb502a999",
    "flow-id": "QG8k000A",
	"phonon-uuids": [
		"b2f9909e-9ac4-4e5c-9ac8-183f24ea9436"
	],
	"fetch-attempt": "ALL"
}

Notes:

  1. Ensure valid JSON format

  2. Ensure IP is Whitelisted in your account

  3. Ensure your account validity is not expired

  4. Ensure number of Phonon UUIDs is less than Max data size (100 UUIDs is current max limit) - Response will contain api-response-message as ‘Max Data List Size Exceeded’ and no result will be fetched.


Response Parameters:

If there’s no data available:

{
  "api-response-code": 213,
  "api-response-message": "No Data Available",
  "data": []
}

Data Response Schema:

{
  "api-response-code": 200,
  "api-response-message": "Success",
  "data": [
    {
      "request-id": "<36 character alphanumeric Request ID>",
      "phonon-uuid": "<36 character alphanumeric Phonon UUID>",
      "status": "<Status of the call>",
      "attempt-details": [
        {
          "attempt-id": "<39 character alphanumeric Attempt UUID>",
          "callDetails": [
            {
              "startTime": "<Start time of the call in ISO-8601 Date Time, Eg. 2021-09-01T12:47:06.059+05:30>",
              "connectTime": "<Connect time of the call in ISO-8601 Date Time>",
              "hangupTime": "<Hangup time of the call in ISO-8601 Date Time>,
              "calleeNumber": "<Number of the callee>",
              "calleeType": "<Type of the callee; Eg: VISITOR>",
              "originateType": "<Product used, Eg. OUTBOUND_CALL>",
              "didNumber": "DID Number, Eg. 912268701914",
              "hangupCause": <ISDN Cause Code, Eg. 16>,
              "hangupCauseMessage": "<Hangup Cause Code Message, Eg. Connected>",
              "durationInSeconds": 57.717,
              "dtmfPressesd": [],
              "incoming": false
            }
          ],
           "smsDetails": [
            {
              "id": "<36 characters alphanumeric SMS ID>",
              "text": "<SMS Text>",
              "to": "<Customer Number, 918000374228>",
              "from": "<Sender ID, MIALOCC>",
              "sendTime": "<Sent Time, Eg. 2021-06-06T16:22:25.767+05:30>",
              "deliveryStatus": "<Current SMS Status, Eg. DELIVERED>"
            }
          ],
          "emailDetails": [
            {
              "id": "<36 characters alphanumeric Email ID>",
              "subject": "<Email Alert; Eg. MMR Alert>",
              "content": "<Email Body Content>",
              "from": "<Email ID>",
              "size": <Email Size, 1.54>,
              "addresses": [
                {
                  "id": "<Email ID>",
                  "type": "TO",
                  "deliveryStatus": "DELIVERED",
                  "deliveryTime": "2021-06-06T16:23:23.676+05:30"
                }
              ],
              "sendTime": "<Email Sent time, Eg: 2021-06-06T16:23:16.444+05:30>"
            }
          ],
          "keys": [
            {
              "name": "$flow.key.variable1",
              "value": "<Flow Variable Value>"
            },
            {
              "name": "$flow.key.Language",
              "value": "English"
            }
          ]
        }
      ]
    }
  ]
}

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.