Twitter DM

Navigate to Integrations -> Outbound Webhooks

Twitter DM Delivery Receipts

  • Select the service you are sending the Twitter Direct Message from
  • Select the channel as Twitter
{
    "deliveryInfoNotification": {
        "deliveryInfo": {
            "deliveryChannel": "twitter",
            "Description": "Delivered",
            "destinationType": "twitterid",
            "timeStamp": "2016-07-26T04:49:15.908",
            "code": "7500",
            "deliveryStatus": "Delivered",
            "destination": "755652926081761280"
        },
        "correlationid": "893a089e1b39-c7cc61d7-b0b6-4a16-abc4",
        "callbackData": "return callbackdata",
        "transid": "c7cc61d7-b0b6-4a16-abc4-893a089e1b39"
    }
}
{
    "deliveryInfoNotification": {
        "deliveryInfo": {
            "timeStamp": "2020-04-24T16:37:52.646Z",
            "Description": "Service provider exception.",
            "code": "7010",
            "deliveryChannel": "twitter",
            "additionalInfo": "Cannot find specified user.",
            "destination": "XXXXXXXXXXX",
            "destinationType": "twitterid",
            "deliveryStatus": "Failed"
        },
        "subtid": "",
        "transid": "a81b707d-7660-40a7-aaab-467e56ccda73",
        "callbackData": "",
        "correlationid": "1ea5cd99-6cac-4c6e-a351-ffa42244842f"
    }
}

Twitter Incoming Direct Messages & Events

  • Select the app that you expect to receive messages or events from as the Entity
{
  "userId": "8953",
  "channel": "Twitter",
  "appId": "a_636035705699961900",
  "event": "MO",
  "twitterHandle": "wsophyd3",
  "twitterId": "3223165326",
  "ts": "2015-04-12T13:00:19.456Z",
  "timeStamp" : "2015-04-12T13:00:19.456Z",
  "tid": "274decc5-aebe-4d6f-89c2-a4842f2333d0",
  "message": "Simple Text",
  "attachments": ""
}
{
  "userId": "8953",
  "channel": "Twitter",
  "appId": "a_636035705699961900",
  "event": "MO",
  "twitterHandle": "wsophyd3",
  "twitterId": "3223165326",
  "ts": "2015-04-12T13:00:19.456Z",
  "timeStamp" : "2015-04-12T13:00:19.456Z",
  "tid": "5b2a7dbe-a995-4b0b-a471-eb8c9b025249",
  "message": "",
  "attachments": "{\"data\":[{\"id\":758666866629804032,\"image_data\":{\"preview_url\":\"https:\/\/ton.twitter.com\/1.1\/ton\/data\/dm\/758666866600521737\/758666866629804032\/xjTAv-J9.jpg\",\"url\":\"https:\/\/twitter.com\/messages\/media\/758666866600521737\"},\"mime_type\":\"image\",\"attachment_type\":\"image\"}]}"
}
{
  "userId": "8953",
  "channel": "Twitter",
  "appId": "a_636035705699961900",
  "event": "MO",
  "twitterHandle": "wsophyd3",
  "twitterId": "3223165326",
  "ts": "2015-04-12T13:00:19.456Z",
  "timeStamp" : "2015-04-12T13:00:19.456Z",
  "tid": "6b6e5bb2-4888-4fdc-b6a7-ee6f413391c8",
  "message": "",
  "attachments": "{\"data\":[{\"id\":758674629770653696,\"mime_type\":\"video\",\"attachment_type\":\"video\",\"video_data\":{\"preview_url\":\"https:\/\/pbs.twimg.com\/dm_video_preview\/758674629770653696\/img\/_doxz8BnTv6N4KuebTmIiHM4ell5VAlmnMFJupe5mTU.jpg\",\"url\":\"https:\/\/twitter.com\/messages\/media\/758675059481247747\"}}]}"
}
{
  "userId": "8953",
  "channel": "Twitter",
  "appId": "a_636035705699961900",
  "event": "MO",
  "twitterHandle": "wsophyd3",
  "twitterId": "3223165326",
  "ts": "2015-04-12T13:00:19.456Z",
  "timeStamp" : "2015-04-12T13:00:19.456Z",
  "tid": "a7629520-c83c-46bc-8c02-17dd7fbd0835",
  "message": "GIF check",
  "attachments": "{\"data\":[{\"id\":758666898212921345,\"image_data\":{\"preview_url\":\"https:\/\/pbs.twimg.com\/dm_gif_preview\/758666898212921345\/jGzcyYmArXyAubF42H-sGi-9Zvxl8e8ggyZM5JJyvZfp4Z5wEl.jpg\",\"url\":\"https:\/\/twitter.com\/messages\/media\/758667227776192515\"},\"mime_type\":\"gif\",\"attachment_type\":\"gif\"}]}"
}