Chilkat Online Tools

delphiDll / Support API / Show Suspended Ticket

Back to Collection Items

var
http: HCkHttp;
success: Boolean;
sbResponseBody: HCkStringBuilder;
jResp: HCkJsonObject;
respStatusCode: Integer;
v_Email: PWideChar;
Id: PWideChar;
Name: PWideChar;
brand_id: PWideChar;
cause: PWideChar;
cause_id: PWideChar;
content: PWideChar;
created_at: PWideChar;
id: PWideChar;
message_id: PWideChar;
recipient: PWideChar;
subject: PWideChar;
ticket_id: PWideChar;
updated_at: PWideChar;
url: PWideChar;
Channel: PWideChar;
Address: PWideChar;
FromId: PWideChar;
FromName: PWideChar;
Title: PWideChar;
Rel: PWideChar;
ToAddress: PWideChar;
ToName: PWideChar;
j: Integer;
count_j: Integer;
content_type: PWideChar;
content_url: PWideChar;
deleted: PWideChar;
file_name: PWideChar;
height: PWideChar;
inline: PWideChar;
malware_access_override: PWideChar;
malware_scan_result: PWideChar;
mapped_content_url: PWideChar;
size: PWideChar;
width: PWideChar;
k: Integer;
count_k: Integer;
i: Integer;
count_i: Integer;

begin
// 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) then
  begin
    Memo1.Lines.Add(CkHttp__lastErrorText(http));
    Exit;
  end;

jResp := CkJsonObject_Create();
CkJsonObject_LoadSb(jResp,sbResponseBody);
CkJsonObject_putEmitCompact(jResp,False);

Memo1.Lines.Add('Response Body:');
Memo1.Lines.Add(CkJsonObject__emit(jResp));

respStatusCode := CkHttp_getLastStatus(http);
Memo1.Lines.Add('Response Status Code = ' + IntToStr(respStatusCode));
if (respStatusCode >= 400) then
  begin
    Memo1.Lines.Add('Response Header:');
    Memo1.Lines.Add(CkHttp__lastHeader(http));
    Memo1.Lines.Add('Failed.');
    Exit;
  end;

// 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;
count_i := CkJsonObject_SizeOfArray(jResp,'suspended_tickets');
while i < count_i do
  begin
    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 do
      begin
        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 do
          begin
            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;
          end;

        j := j + 1;
      end;

    i := i + 1;
  end;

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