Chilkat Online Tools

Foxpro / Support API / List Suspended Tickets

Back to Collection Items

LOCAL loHttp
LOCAL lnSuccess
LOCAL loQueryParams
LOCAL loResp
LOCAL loSbResponseBody
LOCAL loJResp
LOCAL lnRespStatusCode
LOCAL lcV_Email
LOCAL lcId
LOCAL lcName
LOCAL lcBrand_id
LOCAL lcCause
LOCAL lcCause_id
LOCAL lcContent
LOCAL lcCreated_at
LOCAL lcId
LOCAL lcMessage_id
LOCAL lcRecipient
LOCAL lcSubject
LOCAL lcTicket_id
LOCAL lcUpdated_at
LOCAL lcUrl
LOCAL lcChannel
LOCAL lcAddress
LOCAL lcFromId
LOCAL lcFromName
LOCAL lcTitle
LOCAL lcRel
LOCAL lcToAddress
LOCAL lcToName
LOCAL j
LOCAL lnCount_j
LOCAL lcContent_type
LOCAL lcContent_url
LOCAL lcDeleted
LOCAL lcFile_name
LOCAL lcHeight
LOCAL lcInline
LOCAL lcMalware_access_override
LOCAL lcMalware_scan_result
LOCAL lcMapped_content_url
LOCAL lcSize
LOCAL lcWidth
LOCAL k
LOCAL lnCount_k
LOCAL i
LOCAL lnCount_i

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

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Http')
loHttp = CreateObject('Chilkat.Http')

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

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loQueryParams = CreateObject('Chilkat.JsonObject')
loQueryParams.UpdateString("sort_by","<string>")
loQueryParams.UpdateString("sort_order","<string>")

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

loResp = loHttp.QuickRequestParams("GET","https://example.zendesk.com/api/v2/suspended_tickets",loQueryParams)
IF (loHttp.LastMethodSuccess = 0) THEN
    ? loHttp.LastErrorText
    RELEASE loHttp
    RELEASE loQueryParams
    CANCEL
ENDIF

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringBuilder')
loSbResponseBody = CreateObject('Chilkat.StringBuilder')
loResp.GetBodySb(loSbResponseBody)

* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.JsonObject')
loJResp = CreateObject('Chilkat.JsonObject')
loJResp.LoadSb(loSbResponseBody)
loJResp.EmitCompact = 0

? "Response Body:"
? loJResp.Emit()

lnRespStatusCode = loResp.StatusCode
? "Response Status Code = " + STR(lnRespStatusCode)
IF (lnRespStatusCode >= 400) THEN
    ? "Response Header:"
    ? loResp.Header
    ? "Failed."
    RELEASE loResp
    RELEASE loHttp
    RELEASE loQueryParams
    RELEASE loSbResponseBody
    RELEASE loJResp
    CANCEL
ENDIF

RELEASE loResp

* 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
lnCount_i = loJResp.SizeOfArray("suspended_tickets")
DO WHILE i < lnCount_i
    loJResp.I = i
    lcV_Email = loJResp.StringOf("suspended_tickets[i].author.email")
    lcId = loJResp.StringOf("suspended_tickets[i].author.id")
    lcName = loJResp.StringOf("suspended_tickets[i].author.name")
    lcBrand_id = loJResp.StringOf("suspended_tickets[i].brand_id")
    lcCause = loJResp.StringOf("suspended_tickets[i].cause")
    lcCause_id = loJResp.StringOf("suspended_tickets[i].cause_id")
    lcContent = loJResp.StringOf("suspended_tickets[i].content")
    lcCreated_at = loJResp.StringOf("suspended_tickets[i].created_at")
    lcId = loJResp.StringOf("suspended_tickets[i].id")
    lcMessage_id = loJResp.StringOf("suspended_tickets[i].message_id")
    lcRecipient = loJResp.StringOf("suspended_tickets[i].recipient")
    lcSubject = loJResp.StringOf("suspended_tickets[i].subject")
    lcTicket_id = loJResp.StringOf("suspended_tickets[i].ticket_id")
    lcUpdated_at = loJResp.StringOf("suspended_tickets[i].updated_at")
    lcUrl = loJResp.StringOf("suspended_tickets[i].url")
    lcChannel = loJResp.StringOf("suspended_tickets[i].via.channel")
    lcAddress = loJResp.StringOf("suspended_tickets[i].via.source.from.address")
    lcFromId = loJResp.StringOf("suspended_tickets[i].via.source.from.id")
    lcFromName = loJResp.StringOf("suspended_tickets[i].via.source.from.name")
    lcTitle = loJResp.StringOf("suspended_tickets[i].via.source.from.title")
    lcRel = loJResp.StringOf("suspended_tickets[i].via.source.rel")
    lcToAddress = loJResp.StringOf("suspended_tickets[i].via.source.to.address")
    lcToName = loJResp.StringOf("suspended_tickets[i].via.source.to.name")
    j = 0
    lnCount_j = loJResp.SizeOfArray("suspended_tickets[i].attachments")
    DO WHILE j < lnCount_j
        loJResp.J = j
        lcContent_type = loJResp.StringOf("suspended_tickets[i].attachments[j].content_type")
        lcContent_url = loJResp.StringOf("suspended_tickets[i].attachments[j].content_url")
        lcDeleted = loJResp.StringOf("suspended_tickets[i].attachments[j].deleted")
        lcFile_name = loJResp.StringOf("suspended_tickets[i].attachments[j].file_name")
        lcHeight = loJResp.StringOf("suspended_tickets[i].attachments[j].height")
        lcId = loJResp.StringOf("suspended_tickets[i].attachments[j].id")
        lcInline = loJResp.StringOf("suspended_tickets[i].attachments[j].inline")
        lcMalware_access_override = loJResp.StringOf("suspended_tickets[i].attachments[j].malware_access_override")
        lcMalware_scan_result = loJResp.StringOf("suspended_tickets[i].attachments[j].malware_scan_result")
        lcMapped_content_url = loJResp.StringOf("suspended_tickets[i].attachments[j].mapped_content_url")
        lcSize = loJResp.StringOf("suspended_tickets[i].attachments[j].size")
        lcUrl = loJResp.StringOf("suspended_tickets[i].attachments[j].url")
        lcWidth = loJResp.StringOf("suspended_tickets[i].attachments[j].width")
        k = 0
        lnCount_k = loJResp.SizeOfArray("suspended_tickets[i].attachments[j].thumbnails")
        DO WHILE k < lnCount_k
            loJResp.K = k
            lcContent_type = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].content_type")
            lcContent_url = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].content_url")
            lcDeleted = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].deleted")
            lcFile_name = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].file_name")
            lcHeight = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].height")
            lcId = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].id")
            lcInline = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].inline")
            lcMalware_access_override = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].malware_access_override")
            lcMalware_scan_result = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].malware_scan_result")
            lcMapped_content_url = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].mapped_content_url")
            lcSize = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].size")
            lcUrl = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].url")
            lcWidth = loJResp.StringOf("suspended_tickets[i].attachments[j].thumbnails[k].width")
            k = k + 1
        ENDDO
        j = j + 1
    ENDDO
    i = i + 1
ENDDO

RELEASE loHttp
RELEASE loQueryParams
RELEASE loSbResponseBody
RELEASE loJResp

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}"
    }
  ]
}