Chilkat Online Tools

PowerBuilder / Support API / List Suspended Tickets

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_QueryParams
oleobject loo_Resp
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_V_Email
string ls_Id
string ls_Name
string ls_Brand_id
string ls_Cause
string ls_Cause_id
string ls_Content
string ls_Created_at
string ls_Id
string ls_Message_id
string ls_Recipient
string ls_Subject
string ls_Ticket_id
string ls_Updated_at
string ls_Url
string ls_Channel
string ls_Address
string ls_FromId
string ls_FromName
string ls_Title
string ls_Rel
string ls_ToAddress
string ls_ToName
integer j
integer li_Count_j
string ls_Content_type
string ls_Content_url
string ls_Deleted
string ls_File_name
string ls_Height
string ls_Inline
string ls_Malware_access_override
string ls_Malware_scan_result
string ls_Mapped_content_url
string ls_Size
string ls_Width
integer k
integer li_Count_k
integer i
integer li_Count_i

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

loo_Http.BasicAuth = 1
loo_Http.Login = "login"
loo_Http.Password = "password"

loo_QueryParams = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_QueryParams.ConnectToNewObject("Chilkat.JsonObject")

loo_QueryParams.UpdateString("sort_by","<string>")
loo_QueryParams.UpdateString("sort_order","<string>")

loo_Http.SetRequestHeader("Accept","application/json")

loo_Resp = loo_Http.QuickRequestParams("GET","https://example.zendesk.com/api/v2/suspended_tickets",loo_QueryParams)
if loo_Http.LastMethodSuccess = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_QueryParams
    return
end if

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

loo_Resp.GetBodySb(loo_SbResponseBody)

loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Resp.StatusCode
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Resp.Header
    Write-Debug "Failed."
    destroy loo_Resp
    destroy loo_Http
    destroy loo_QueryParams
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

destroy loo_Resp

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "suspended_tickets": [
//     {
//       "attachments": [
//         {
//           "content_type": "<string>",
//           "content_url": "<string>",
//           "deleted": "<boolean>",
//           "file_name": "<string>",
//           "height": "<string>",
//           "id": "<integer>",
//           "inline": "<boolean>",
//           "malware_access_override": "<boolean>",
//           "malware_scan_result": "<string>",
//           "mapped_content_url": "<string>",
//           "size": "<integer>",
//           "url": "<string>",
//           "width": "<string>",
//           "thumbnails": [
//             {
//               "content_type": "<string>",
//               "content_url": "<string>",
//               "deleted": "<boolean>",
//               "file_name": "<string>",
//               "height": "<string>",
//               "id": "<integer>",
//               "inline": "<boolean>",
//               "malware_access_override": "<boolean>",
//               "malware_scan_result": "<string>",
//               "mapped_content_url": "<string>",
//               "size": "<integer>",
//               "url": "<string>",
//               "width": "<string>"
//             },
//             {
//               "content_type": "<string>",
//               "content_url": "<string>",
//               "deleted": "<boolean>",
//               "file_name": "<string>",
//               "height": "<string>",
//               "id": "<integer>",
//               "inline": "<boolean>",
//               "malware_access_override": "<boolean>",
//               "malware_scan_result": "<string>",
//               "mapped_content_url": "<string>",
//               "size": "<integer>",
//               "url": "<string>",
//               "width": "<string>"
//             }
//           ]
//         },
//         {
//           "content_type": "<string>",
//           "content_url": "<string>",
//           "deleted": "<boolean>",
//           "file_name": "<string>",
//           "height": "<string>",
//           "id": "<integer>",
//           "inline": "<boolean>",
//           "malware_access_override": "<boolean>",
//           "malware_scan_result": "<string>",
//           "mapped_content_url": "<string>",
//           "size": "<integer>",
//           "url": "<string>",
//           "width": "<string>",
//           "thumbnails": [
//             {
//               "content_type": "<string>",
//               "content_url": "<string>",
//               "deleted": "<boolean>",
//               "file_name": "<string>",
//               "height": "<string>",
//               "id": "<integer>",
//               "inline": "<boolean>",
//               "malware_access_override": "<boolean>",
//               "malware_scan_result": "<string>",
//               "mapped_content_url": "<string>",
//               "size": "<integer>",
//               "url": "<string>",
//               "width": "<string>"
//             },
//             {
//               "content_type": "<string>",
//               "content_url": "<string>",
//               "deleted": "<boolean>",
//               "file_name": "<string>",
//               "height": "<string>",
//               "id": "<integer>",
//               "inline": "<boolean>",
//               "malware_access_override": "<boolean>",
//               "malware_scan_result": "<string>",
//               "mapped_content_url": "<string>",
//               "size": "<integer>",
//               "url": "<string>",
//               "width": "<string>"
//             }
//           ]
//         }
//       ],
//       "author": {
//         "email": "<string>",
//         "id": "<integer>",
//         "name": "<string>"
//       },
//       "brand_id": "<integer>",
//       "cause": "<string>",
//       "cause_id": "<integer>",
//       "content": "<string>",
//       "created_at": "<dateTime>",
//       "id": "<integer>",
//       "message_id": "<string>",
//       "recipient": "<string>",
//       "subject": "<string>",
//       "ticket_id": "<integer>",
//       "updated_at": "<dateTime>",
//       "url": "<string>",
//       "via": {
//         "channel": "<string>",
//         "source": {
//           "from": {
//             "address": "<string>",
//             "id": "<integer>",
//             "name": "<string>",
//             "title": "<string>"
//           },
//           "rel": "<string>",
//           "to": {
//             "address": "<string>",
//             "name": "<string>"
//           }
//         }
//       }
//     },
//     {
//       "attachments": [
//         {
//           "content_type": "<string>",
//           "content_url": "<string>",
//           "deleted": "<boolean>",
//           "file_name": "<string>",
//           "height": "<string>",
//           "id": "<integer>",
//           "inline": "<boolean>",
//           "malware_access_override": "<boolean>",
//           "malware_scan_result": "<string>",
//           "mapped_content_url": "<string>",
//           "size": "<integer>",
//           "url": "<string>",
//           "width": "<string>",
//           "thumbnails": [
//             {
//               "content_type": "<string>",
//               "content_url": "<string>",
//               "deleted": "<boolean>",
//               "file_name": "<string>",
//               "height": "<string>",
//               "id": "<integer>",
//               "inline": "<boolean>",
//               "malware_access_override": "<boolean>",
//               "malware_scan_result": "<string>",
//               "mapped_content_url": "<string>",
//               "size": "<integer>",
//               "url": "<string>",
//               "width": "<string>"
//             },
//             {
//               "content_type": "<string>",
//               "content_url": "<string>",
//               "deleted": "<boolean>",
//               "file_name": "<string>",
//               "height": "<string>",
//               "id": "<integer>",
//               "inline": "<boolean>",
//               "malware_access_override": "<boolean>",
//               "malware_scan_result": "<string>",
//               "mapped_content_url": "<string>",
//               "size": "<integer>",
//               "url": "<string>",
//               "width": "<string>"
//             }
//           ]
//         },
//         {
//           "content_type": "<string>",
//           "content_url": "<string>",
//           "deleted": "<boolean>",
//           "file_name": "<string>",
//           "height": "<string>",
//           "id": "<integer>",
//           "inline": "<boolean>",
//           "malware_access_override": "<boolean>",
//           "malware_scan_result": "<string>",
//           "mapped_content_url": "<string>",
//           "size": "<integer>",
//           "url": "<string>",
//           "width": "<string>",
//           "thumbnails": [
//             {
//               "content_type": "<string>",
//               "content_url": "<string>",
//               "deleted": "<boolean>",
//               "file_name": "<string>",
//               "height": "<string>",
//               "id": "<integer>",
//               "inline": "<boolean>",
//               "malware_access_override": "<boolean>",
//               "malware_scan_result": "<string>",
//               "mapped_content_url": "<string>",
//               "size": "<integer>",
//               "url": "<string>",
//               "width": "<string>"
//             },
//             {
//               "content_type": "<string>",
//               "content_url": "<string>",
//               "deleted": "<boolean>",
//               "file_name": "<string>",
//               "height": "<string>",
//               "id": "<integer>",
//               "inline": "<boolean>",
//               "malware_access_override": "<boolean>",
//               "malware_scan_result": "<string>",
//               "mapped_content_url": "<string>",
//               "size": "<integer>",
//               "url": "<string>",
//               "width": "<string>"
//             }
//           ]
//         }
//       ],
//       "author": {
//         "email": "<string>",
//         "id": "<integer>",
//         "name": "<string>"
//       },
//       "brand_id": "<integer>",
//       "cause": "<string>",
//       "cause_id": "<integer>",
//       "content": "<string>",
//       "created_at": "<dateTime>",
//       "id": "<integer>",
//       "message_id": "<string>",
//       "recipient": "<string>",
//       "subject": "<string>",
//       "ticket_id": "<integer>",
//       "updated_at": "<dateTime>",
//       "url": "<string>",
//       "via": {
//         "channel": "<string>",
//         "source": {
//           "from": {
//             "address": "<string>",
//             "id": "<integer>",
//             "name": "<string>",
//             "title": "<string>"
//           },
//           "rel": "<string>",
//           "to": {
//             "address": "<string>",
//             "name": "<string>"
//           }
//         }
//       }
//     }
//   ]
// }

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

i = 0
li_Count_i = loo_JResp.SizeOfArray("suspended_tickets")
do while i < li_Count_i
    loo_JResp.I = i
    ls_V_Email = loo_JResp.StringOf("suspended_tickets[i].author.email")
    ls_Id = loo_JResp.StringOf("suspended_tickets[i].author.id")
    ls_Name = loo_JResp.StringOf("suspended_tickets[i].author.name")
    ls_Brand_id = loo_JResp.StringOf("suspended_tickets[i].brand_id")
    ls_Cause = loo_JResp.StringOf("suspended_tickets[i].cause")
    ls_Cause_id = loo_JResp.StringOf("suspended_tickets[i].cause_id")
    ls_Content = loo_JResp.StringOf("suspended_tickets[i].content")
    ls_Created_at = loo_JResp.StringOf("suspended_tickets[i].created_at")
    ls_Id = loo_JResp.StringOf("suspended_tickets[i].id")
    ls_Message_id = loo_JResp.StringOf("suspended_tickets[i].message_id")
    ls_Recipient = loo_JResp.StringOf("suspended_tickets[i].recipient")
    ls_Subject = loo_JResp.StringOf("suspended_tickets[i].subject")
    ls_Ticket_id = loo_JResp.StringOf("suspended_tickets[i].ticket_id")
    ls_Updated_at = loo_JResp.StringOf("suspended_tickets[i].updated_at")
    ls_Url = loo_JResp.StringOf("suspended_tickets[i].url")
    ls_Channel = loo_JResp.StringOf("suspended_tickets[i].via.channel")
    ls_Address = loo_JResp.StringOf("suspended_tickets[i].via.source.from.address")
    ls_FromId = loo_JResp.StringOf("suspended_tickets[i].via.source.from.id")
    ls_FromName = loo_JResp.StringOf("suspended_tickets[i].via.source.from.name")
    ls_Title = loo_JResp.StringOf("suspended_tickets[i].via.source.from.title")
    ls_Rel = loo_JResp.StringOf("suspended_tickets[i].via.source.rel")
    ls_ToAddress = loo_JResp.StringOf("suspended_tickets[i].via.source.to.address")
    ls_ToName = loo_JResp.StringOf("suspended_tickets[i].via.source.to.name")
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("suspended_tickets[i].attachments")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_Content_type = loo_JResp.StringOf("suspended_tickets[i].attachments[j].content_type")
        ls_Content_url = loo_JResp.StringOf("suspended_tickets[i].attachments[j].content_url")
        ls_Deleted = loo_JResp.StringOf("suspended_tickets[i].attachments[j].deleted")
        ls_File_name = loo_JResp.StringOf("suspended_tickets[i].attachments[j].file_name")
        ls_Height = loo_JResp.StringOf("suspended_tickets[i].attachments[j].height")
        ls_Id = loo_JResp.StringOf("suspended_tickets[i].attachments[j].id")
        ls_Inline = loo_JResp.StringOf("suspended_tickets[i].attachments[j].inline")
        ls_Malware_access_override = loo_JResp.StringOf("suspended_tickets[i].attachments[j].malware_access_override")
        ls_Malware_scan_result = loo_JResp.StringOf("suspended_tickets[i].attachments[j].malware_scan_result")
        ls_Mapped_content_url = loo_JResp.StringOf("suspended_tickets[i].attachments[j].mapped_content_url")
        ls_Size = loo_JResp.StringOf("suspended_tickets[i].attachments[j].size")
        ls_Url = loo_JResp.StringOf("suspended_tickets[i].attachments[j].url")
        ls_Width = loo_JResp.StringOf("suspended_tickets[i].attachments[j].width")
        k = 0
        li_Count_k = loo_JResp.SizeOfArray("suspended_tickets[i].attachments[j].thumbnails")
        do while k < li_Count_k
            loo_JResp.K = k
            ls_Content_type = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].content_type")
            ls_Content_url = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].content_url")
            ls_Deleted = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].deleted")
            ls_File_name = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].file_name")
            ls_Height = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].height")
            ls_Id = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].id")
            ls_Inline = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].inline")
            ls_Malware_access_override = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].malware_access_override")
            ls_Malware_scan_result = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].malware_scan_result")
            ls_Mapped_content_url = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].mapped_content_url")
            ls_Size = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].size")
            ls_Url = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].url")
            ls_Width = loo_JResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].width")
            k = k + 1
        loop
        j = j + 1
    loop
    i = i + 1
loop


destroy loo_Http
destroy loo_QueryParams
destroy loo_SbResponseBody
destroy loo_JResp

Curl Command

curl  -u login:password -G -d "sort_by=%3Cstring%3E"
	-d "sort_order=%3Cstring%3E"
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/suspended_tickets

Postman Collection Item JSON

{
  "name": "List Suspended Tickets",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/suspended_tickets?sort_by=<string>&sort_order=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "suspended_tickets"
      ],
      "query": [
        {
          "key": "sort_by",
          "value": "<string>",
          "description": "The field to sort the ticket by, being one of `author_email`, `cause`, `created_at`, or `subject`."
        },
        {
          "key": "sort_order",
          "value": "<string>",
          "description": "The order in which to sort the suspended tickets.  This can take value `asc` or `desc`."
        }
      ]
    },
    "description": "#### Allowed For\n\n* Unrestricted agents\n\n#### Sorting\n\nYou can sort the tickets with the `sort_by` and `sort_order` query string parameters.\n"
  },
  "response": [
    {
      "name": "Success response",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/suspended_tickets?sort_by=<string>&sort_order=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "suspended_tickets"
          ],
          "query": [
            {
              "key": "sort_by",
              "value": "<string>",
              "description": "The field to sort the ticket by, being one of `author_email`, `cause`, `created_at`, or `subject`."
            },
            {
              "key": "sort_order",
              "value": "<string>",
              "description": "The order in which to sort the suspended tickets.  This can take value `asc` or `desc`."
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"suspended_tickets\": [\n    {\n      \"attachments\": [\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        },\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        }\n      ],\n      \"author\": {\n        \"email\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\"\n      },\n      \"brand_id\": \"<integer>\",\n      \"cause\": \"<string>\",\n      \"cause_id\": \"<integer>\",\n      \"content\": \"<string>\",\n      \"created_at\": \"<dateTime>\",\n      \"id\": \"<integer>\",\n      \"message_id\": \"<string>\",\n      \"recipient\": \"<string>\",\n      \"subject\": \"<string>\",\n      \"ticket_id\": \"<integer>\",\n      \"updated_at\": \"<dateTime>\",\n      \"url\": \"<string>\",\n      \"via\": {\n        \"channel\": \"<string>\",\n        \"source\": {\n          \"from\": {\n            \"address\": \"<string>\",\n            \"id\": \"<integer>\",\n            \"name\": \"<string>\",\n            \"title\": \"<string>\"\n          },\n          \"rel\": \"<string>\",\n          \"to\": {\n            \"address\": \"<string>\",\n            \"name\": \"<string>\"\n          }\n        }\n      }\n    },\n    {\n      \"attachments\": [\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        },\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        }\n      ],\n      \"author\": {\n        \"email\": \"<string>\",\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\"\n      },\n      \"brand_id\": \"<integer>\",\n      \"cause\": \"<string>\",\n      \"cause_id\": \"<integer>\",\n      \"content\": \"<string>\",\n      \"created_at\": \"<dateTime>\",\n      \"id\": \"<integer>\",\n      \"message_id\": \"<string>\",\n      \"recipient\": \"<string>\",\n      \"subject\": \"<string>\",\n      \"ticket_id\": \"<integer>\",\n      \"updated_at\": \"<dateTime>\",\n      \"url\": \"<string>\",\n      \"via\": {\n        \"channel\": \"<string>\",\n        \"source\": {\n          \"from\": {\n            \"address\": \"<string>\",\n            \"id\": \"<integer>\",\n            \"name\": \"<string>\",\n            \"title\": \"<string>\"\n          },\n          \"rel\": \"<string>\",\n          \"to\": {\n            \"address\": \"<string>\",\n            \"name\": \"<string>\"\n          }\n        }\n      }\n    }\n  ]\n}"
    }
  ]
}