Snippets

John Kida aLnBkK: Untitled snippet

Created by John Kida last modified
//example Thread object
{
    "id": "cvsp****",
    "object": "thread",
    "corpAcctNumber": "12345",
    "subject": "Welcome",
    "snippet": "Hi James, james****@yahoo.com. Welcome.",
    "hasAttachments": false,
    "participants": [
        {
            "name": "Nextiva Support",
            "email": "no-reply@nextiva.com",
            "phone": "",
            "reference": {
                "type": "team",
                "id": "7a8252****"
            }
        },
        {
            "name": "James",
            "phone": "480-304-5395",
            "email": "james****@yahoo.com",
            "reference": {
                "type": "contact",
                "id":"7a89213****"
            }
        }
    ],
    "accountId": "123123***",
    "caseId": "12312acbc***",
    "leadId": null,
    "opportunityId": null,
    "unread": true,
    "firstMessageTimestamp": 1557950729,
    "lastMessageTimestamp": 1557950729,
    "lastMessageReceivedTimestamp": null,
    "lastMessageSentTimestamp": 1557950729
}

// example Message object
{
    "id": "7a8939****",
    "object": "message",
    "corpAcctNumber": "12345",
    "threadId": "cvsp****",
    "replyToMessageId": null,
    "date": 1557950729,
    "channel": {
        "type": "email",
        "emailId": "1bj1hj2****", 
        "detail": {
            "from": [{"name": "Nextiva Support", "email": "no-reply@nextiva.com"}],
            "to": [{"name": "James", "email": "james****@yahoo.com"}],
            "cc": [],
            "bcc": [],
        },
        "sourceAccounts": [
            "support@nextiva.com"
        ]
    },
    "subject": "Welcome",
    "snippet": "Hi James, james****@yahoo.com. Welcome.",
    "body": "<html>\n<head>\n <meta charset=\"UTF-8\">\n <style type=\"text/css\">\n html {\n -webkit-text-size-adjust:none;\n }\n body {\n width:100%;\n margin:0 auto;\n padding:0;\n}\n  p {\n width:280px;\n line-height: 16px;\n letter-spacing: 0.5px;\n }\n </style>\n <title>Welcome  ...  </html>",
    "sender": {
            "email": "no-reply@nextiva.com",
            "name": "Nextiva Support",
            "phone": null,
            "reference": {
                "type": "team",
                "id": "7a8252****"
            }
        },
    "recipients": [
        {
            "name": "James",
            "email": "james****@yahoo.com",
            "phone": null,
            "reference": {
                "type": "contact",
                "id":"7a89213****"
            }
        }
    ],
    "fileIds": [],
    "unread": true
}


Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.