Chilkat Online Tools

C / Support API / Show Suspended Ticket

Back to Collection Items

#include <C_CkHttp.h>
#include <C_CkStringBuilder.h>
#include <C_CkJsonObject.h>

void ChilkatSample(void)
    {
    HCkHttp http;
    BOOL success;
    HCkStringBuilder sbResponseBody;
    HCkJsonObject jResp;
    int respStatusCode;
    const char *v_Email;
    const char *Id;
    const char *Name;
    const char *brand_id;
    const char *cause;
    const char *cause_id;
    const char *content;
    const char *created_at;
    const char *id;
    const char *message_id;
    const char *recipient;
    const char *subject;
    const char *ticket_id;
    const char *updated_at;
    const char *url;
    const char *Channel;
    const char *Address;
    const char *FromId;
    const char *FromName;
    const char *Title;
    const char *Rel;
    const char *ToAddress;
    const char *ToName;
    int j;
    int count_j;
    const char *content_type;
    const char *content_url;
    const char *deleted;
    const char *file_name;
    const char *height;
    const char *inline;
    const char *malware_access_override;
    const char *malware_scan_result;
    const char *mapped_content_url;
    const char *size;
    const char *width;
    int k;
    int count_k;
    int i;
    int count_i;

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

    http = CkHttp_Create();

    CkHttp_putBasicAuth(http,TRUE);
    CkHttp_putLogin(http,"login");
    CkHttp_putPassword(http,"password");

    CkHttp_SetRequestHeader(http,"Accept","application/json");

    sbResponseBody = CkStringBuilder_Create();
    success = CkHttp_QuickGetSb(http,"https://example.zendesk.com/api/v2/suspended_tickets/:id",sbResponseBody);
    if (success == FALSE) {
        printf("%s\n",CkHttp_lastErrorText(http));
        CkHttp_Dispose(http);
        CkStringBuilder_Dispose(sbResponseBody);
        return;
    }

    jResp = CkJsonObject_Create();
    CkJsonObject_LoadSb(jResp,sbResponseBody);
    CkJsonObject_putEmitCompact(jResp,FALSE);

    printf("Response Body:\n");
    printf("%s\n",CkJsonObject_emit(jResp));

    respStatusCode = CkHttp_getLastStatus(http);
    printf("Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        printf("Response Header:\n");
        printf("%s\n",CkHttp_lastHeader(http));
        printf("Failed.\n");
        CkHttp_Dispose(http);
        CkStringBuilder_Dispose(sbResponseBody);
        CkJsonObject_Dispose(jResp);
        return;
    }

    // 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

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"suspended_tickets");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        v_Email = CkJsonObject_stringOf(jResp,"suspended_tickets[i].author.email");
        Id = CkJsonObject_stringOf(jResp,"suspended_tickets[i].author.id");
        Name = CkJsonObject_stringOf(jResp,"suspended_tickets[i].author.name");
        brand_id = CkJsonObject_stringOf(jResp,"suspended_tickets[i].brand_id");
        cause = CkJsonObject_stringOf(jResp,"suspended_tickets[i].cause");
        cause_id = CkJsonObject_stringOf(jResp,"suspended_tickets[i].cause_id");
        content = CkJsonObject_stringOf(jResp,"suspended_tickets[i].content");
        created_at = CkJsonObject_stringOf(jResp,"suspended_tickets[i].created_at");
        id = CkJsonObject_stringOf(jResp,"suspended_tickets[i].id");
        message_id = CkJsonObject_stringOf(jResp,"suspended_tickets[i].message_id");
        recipient = CkJsonObject_stringOf(jResp,"suspended_tickets[i].recipient");
        subject = CkJsonObject_stringOf(jResp,"suspended_tickets[i].subject");
        ticket_id = CkJsonObject_stringOf(jResp,"suspended_tickets[i].ticket_id");
        updated_at = CkJsonObject_stringOf(jResp,"suspended_tickets[i].updated_at");
        url = CkJsonObject_stringOf(jResp,"suspended_tickets[i].url");
        Channel = CkJsonObject_stringOf(jResp,"suspended_tickets[i].via.channel");
        Address = CkJsonObject_stringOf(jResp,"suspended_tickets[i].via.source.from.address");
        FromId = CkJsonObject_stringOf(jResp,"suspended_tickets[i].via.source.from.id");
        FromName = CkJsonObject_stringOf(jResp,"suspended_tickets[i].via.source.from.name");
        Title = CkJsonObject_stringOf(jResp,"suspended_tickets[i].via.source.from.title");
        Rel = CkJsonObject_stringOf(jResp,"suspended_tickets[i].via.source.rel");
        ToAddress = CkJsonObject_stringOf(jResp,"suspended_tickets[i].via.source.to.address");
        ToName = CkJsonObject_stringOf(jResp,"suspended_tickets[i].via.source.to.name");
        j = 0;
        count_j = CkJsonObject_SizeOfArray(jResp,"suspended_tickets[i].attachments");
        while (j < count_j) {
            CkJsonObject_putJ(jResp,j);
            content_type = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].content_type");
            content_url = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].content_url");
            deleted = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].deleted");
            file_name = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].file_name");
            height = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].height");
            id = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].id");
            inline = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].inline");
            malware_access_override = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].malware_access_override");
            malware_scan_result = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].malware_scan_result");
            mapped_content_url = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].mapped_content_url");
            size = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].size");
            url = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].url");
            width = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].width");
            k = 0;
            count_k = CkJsonObject_SizeOfArray(jResp,"suspended_tickets[i].attachments[j].thumbnails");
            while (k < count_k) {
                CkJsonObject_putK(jResp,k);
                content_type = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].content_type");
                content_url = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].content_url");
                deleted = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].deleted");
                file_name = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].file_name");
                height = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].height");
                id = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].id");
                inline = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].inline");
                malware_access_override = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].malware_access_override");
                malware_scan_result = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].malware_scan_result");
                mapped_content_url = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].mapped_content_url");
                size = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].size");
                url = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].url");
                width = CkJsonObject_stringOf(jResp,"suspended_tickets[i].attachments[j].thumbnails[k].width");
                k = k + 1;
            }

            j = j + 1;
        }

        i = i + 1;
    }



    CkHttp_Dispose(http);
    CkStringBuilder_Dispose(sbResponseBody);
    CkJsonObject_Dispose(jResp);

    }

Curl Command

curl  -u login:password -X GET
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/suspended_tickets/:id

Postman Collection Item JSON

{
  "name": "Show Suspended Ticket",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/suspended_tickets/:id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "suspended_tickets",
        ":id"
      ],
      "variable": [
        {
          "key": "id",
          "value": "<number>"
        }
      ]
    },
    "description": "#### Allowed For\n\n* Unrestricted agents\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/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "suspended_tickets",
            ":id"
          ],
          "variable": [
            {
              "key": "id"
            }
          ]
        }
      },
      "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}"
    }
  ]
}