Chilkat Online Tools

unicodeCpp / Support API / List Comments

Back to Collection Items

#include <CkHttpW.h>
#include <CkJsonObjectW.h>
#include <CkHttpResponseW.h>
#include <CkStringBuilderW.h>

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

    CkHttpW http;
    bool success;

    http.put_BasicAuth(true);
    http.put_Login(L"login");
    http.put_Password(L"password");

    CkJsonObjectW queryParams;
    queryParams.UpdateString(L"include_inline_images",L"<boolean>");
    queryParams.UpdateString(L"include",L"<string>");

    http.SetRequestHeader(L"Accept",L"application/json");

    CkHttpResponseW *resp = http.QuickRequestParams(L"GET",L"https://example.zendesk.com/api/v2/tickets/:ticket_id/comments",queryParams);
    if (http.get_LastMethodSuccess() == false) {
        wprintf(L"%s\n",http.lastErrorText());
        return;
    }

    CkStringBuilderW sbResponseBody;
    resp->GetBodySb(sbResponseBody);

    CkJsonObjectW jResp;
    jResp.LoadSb(sbResponseBody);
    jResp.put_EmitCompact(false);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",jResp.emit());

    int respStatusCode = resp->get_StatusCode();
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",resp->header());
        wprintf(L"Failed.\n");
        delete resp;
        return;
    }

    delete resp;

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

    // {
    //   "comments": [
    //     {
    //       "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>"
    //             }
    //           ]
    //         }
    //       ],
    //       "audit_id": "<integer>",
    //       "author_id": "<integer>",
    //       "body": "<string>",
    //       "created_at": "<dateTime>",
    //       "html_body": "<string>",
    //       "id": "<integer>",
    //       "metadata": {
    //         "cillum_7ae": "laboris nulla fugiat",
    //         "sunt2": 25522168.26328881,
    //         "laboris__": true
    //       },
    //       "plain_body": "<string>",
    //       "public": "<boolean>",
    //       "type": "<string>",
    //       "uploads": [
    //         "<string>",
    //         "<string>"
    //       ],
    //       "via": {
    //         "channel": "<string>",
    //         "source": {
    //           "incididunt03e": false,
    //           "eiusmod_4": -36679297,
    //           "esse7": 87176441
    //         }
    //       }
    //     },
    //     {
    //       "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>"
    //             }
    //           ]
    //         }
    //       ],
    //       "audit_id": "<integer>",
    //       "author_id": "<integer>",
    //       "body": "<string>",
    //       "created_at": "<dateTime>",
    //       "html_body": "<string>",
    //       "id": "<integer>",
    //       "metadata": {
    //         "nisi04": false
    //       },
    //       "plain_body": "<string>",
    //       "public": "<boolean>",
    //       "type": "<string>",
    //       "uploads": [
    //         "<string>",
    //         "<string>"
    //       ],
    //       "via": {
    //         "channel": "<string>",
    //         "source": {
    //           "amet__": 87553399
    //         }
    //       }
    //     }
    //   ]
    // }

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

    const wchar_t *audit_id = 0;
    const wchar_t *author_id = 0;
    const wchar_t *body = 0;
    const wchar_t *created_at = 0;
    const wchar_t *html_body = 0;
    const wchar_t *id = 0;
    const wchar_t *Cillum_7ae = 0;
    const wchar_t *Sunt2 = 0;
    bool Laboris__;
    const wchar_t *plain_body = 0;
    const wchar_t *v_public = 0;
    const wchar_t *v_type = 0;
    const wchar_t *Channel = 0;
    bool Incididunt03e;
    int Eiusmod_4;
    int Esse7;
    bool Nisi04;
    int Amet__;
    int j;
    int count_j;
    const wchar_t *content_type = 0;
    const wchar_t *content_url = 0;
    const wchar_t *deleted = 0;
    const wchar_t *file_name = 0;
    const wchar_t *height = 0;
    const wchar_t *inline = 0;
    const wchar_t *malware_access_override = 0;
    const wchar_t *malware_scan_result = 0;
    const wchar_t *mapped_content_url = 0;
    const wchar_t *size = 0;
    const wchar_t *url = 0;
    const wchar_t *width = 0;
    int k;
    int count_k;
    const wchar_t *strVal = 0;

    int i = 0;
    int count_i = jResp.SizeOfArray(L"comments");
    while (i < count_i) {
        jResp.put_I(i);
        audit_id = jResp.stringOf(L"comments[i].audit_id");
        author_id = jResp.stringOf(L"comments[i].author_id");
        body = jResp.stringOf(L"comments[i].body");
        created_at = jResp.stringOf(L"comments[i].created_at");
        html_body = jResp.stringOf(L"comments[i].html_body");
        id = jResp.stringOf(L"comments[i].id");
        Cillum_7ae = jResp.stringOf(L"comments[i].metadata.cillum_7ae");
        Sunt2 = jResp.stringOf(L"comments[i].metadata.sunt2");
        Laboris__ = jResp.BoolOf(L"comments[i].metadata.laboris__");
        plain_body = jResp.stringOf(L"comments[i].plain_body");
        v_public = jResp.stringOf(L"comments[i].public");
        v_type = jResp.stringOf(L"comments[i].type");
        Channel = jResp.stringOf(L"comments[i].via.channel");
        Incididunt03e = jResp.BoolOf(L"comments[i].via.source.incididunt03e");
        Eiusmod_4 = jResp.IntOf(L"comments[i].via.source.eiusmod_4");
        Esse7 = jResp.IntOf(L"comments[i].via.source.esse7");
        Nisi04 = jResp.BoolOf(L"comments[i].metadata.nisi04");
        Amet__ = jResp.IntOf(L"comments[i].via.source.amet__");
        j = 0;
        count_j = jResp.SizeOfArray(L"comments[i].attachments");
        while (j < count_j) {
            jResp.put_J(j);
            content_type = jResp.stringOf(L"comments[i].attachments[j].content_type");
            content_url = jResp.stringOf(L"comments[i].attachments[j].content_url");
            deleted = jResp.stringOf(L"comments[i].attachments[j].deleted");
            file_name = jResp.stringOf(L"comments[i].attachments[j].file_name");
            height = jResp.stringOf(L"comments[i].attachments[j].height");
            id = jResp.stringOf(L"comments[i].attachments[j].id");
            inline = jResp.stringOf(L"comments[i].attachments[j].inline");
            malware_access_override = jResp.stringOf(L"comments[i].attachments[j].malware_access_override");
            malware_scan_result = jResp.stringOf(L"comments[i].attachments[j].malware_scan_result");
            mapped_content_url = jResp.stringOf(L"comments[i].attachments[j].mapped_content_url");
            size = jResp.stringOf(L"comments[i].attachments[j].size");
            url = jResp.stringOf(L"comments[i].attachments[j].url");
            width = jResp.stringOf(L"comments[i].attachments[j].width");
            k = 0;
            count_k = jResp.SizeOfArray(L"comments[i].attachments[j].thumbnails");
            while (k < count_k) {
                jResp.put_K(k);
                content_type = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].content_type");
                content_url = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].content_url");
                deleted = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].deleted");
                file_name = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].file_name");
                height = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].height");
                id = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].id");
                inline = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].inline");
                malware_access_override = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].malware_access_override");
                malware_scan_result = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].malware_scan_result");
                mapped_content_url = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].mapped_content_url");
                size = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].size");
                url = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].url");
                width = jResp.stringOf(L"comments[i].attachments[j].thumbnails[k].width");
                k = k + 1;
            }

            j = j + 1;
        }

        j = 0;
        count_j = jResp.SizeOfArray(L"comments[i].uploads");
        while (j < count_j) {
            jResp.put_J(j);
            strVal = jResp.stringOf(L"comments[i].uploads[j]");
            j = j + 1;
        }

        i = i + 1;
    }
    }

Curl Command

curl  -u login:password -G -d "include_inline_images=%3Cboolean%3E"
	-d "include=%3Cstring%3E"
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/tickets/:ticket_id/comments

Postman Collection Item JSON

{
  "name": "List Comments",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/tickets/:ticket_id/comments?include_inline_images=<boolean>&include=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "tickets",
        ":ticket_id",
        "comments"
      ],
      "query": [
        {
          "key": "include_inline_images",
          "value": "<boolean>",
          "description": "Default is false. When true, inline images are also listed as attachments in the response"
        },
        {
          "key": "include",
          "value": "<string>",
          "description": "Accepts \"users\". Use this parameter to list email CCs by side-loading users. Example: `?include=users`. **Note**: If the comment source is email, a deleted user will be represented as the CCd email address. If the comment source is anything else, a deleted user will be represented as the user name."
        }
      ],
      "variable": [
        {
          "key": "ticket_id",
          "value": "<integer>"
        }
      ]
    },
    "description": "Returns the comments added to the ticket.\n\nEach comment may include a `content_url` for an attachment or a `recording_url` for a voice comment that points to a file that may be hosted externally. For security reasons, take care not to inadvertently send Zendesk authentication credentials to third parties when attempting to access these files. See [Working with url properties](/documentation/ticketing/managing-tickets/working-with-url-properties).\n\n#### Pagination\n\n- Cursor pagination (recommended)\n- Offset pagination\n\nSee [Pagination](/api-reference/introduction/pagination/).\n\nReturns a maximum of 100 records per page.\n\n#### Sorting\n\nBy default, comments are sorted by creation date in ascending order.\n\nWhen using cursor pagination, use the following parameter to change the sort order:\n\n| Name   | Type   | Required | Comments\n| ------ | ------ | -------- | --------\n| `sort` | string | no       | Possible values are \"created_at\" (ascending order) or \"-created_at\" (descending order)\n\nWhen using offset pagination, use the following parameters to change the sort order:\n\n| Name         | Type   | Required | Comments\n| ------------ | ------ | -------- | --------\n| `sort_order` | string | no       | One of `asc`, `desc`. Defaults to `asc`\n\n#### Allowed For\n\n* 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/tickets/:ticket_id/comments?include_inline_images=<boolean>&include=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "tickets",
            ":ticket_id",
            "comments"
          ],
          "query": [
            {
              "key": "include_inline_images",
              "value": "<boolean>",
              "description": "Default is false. When true, inline images are also listed as attachments in the response"
            },
            {
              "key": "include",
              "value": "<string>",
              "description": "Accepts \"users\". Use this parameter to list email CCs by side-loading users. Example: `?include=users`. **Note**: If the comment source is email, a deleted user will be represented as the CCd email address. If the comment source is anything else, a deleted user will be represented as the user name."
            }
          ],
          "variable": [
            {
              "key": "ticket_id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"comments\": [\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      \"audit_id\": \"<integer>\",\n      \"author_id\": \"<integer>\",\n      \"body\": \"<string>\",\n      \"created_at\": \"<dateTime>\",\n      \"html_body\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"metadata\": {\n        \"cillum_7ae\": \"laboris nulla fugiat\",\n        \"sunt2\": 25522168.26328881,\n        \"laboris__\": true\n      },\n      \"plain_body\": \"<string>\",\n      \"public\": \"<boolean>\",\n      \"type\": \"<string>\",\n      \"uploads\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"via\": {\n        \"channel\": \"<string>\",\n        \"source\": {\n          \"incididunt03e\": false,\n          \"eiusmod_4\": -36679297,\n          \"esse7\": 87176441\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      \"audit_id\": \"<integer>\",\n      \"author_id\": \"<integer>\",\n      \"body\": \"<string>\",\n      \"created_at\": \"<dateTime>\",\n      \"html_body\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"metadata\": {\n        \"nisi04\": false\n      },\n      \"plain_body\": \"<string>\",\n      \"public\": \"<boolean>\",\n      \"type\": \"<string>\",\n      \"uploads\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"via\": {\n        \"channel\": \"<string>\",\n        \"source\": {\n          \"amet__\": 87553399\n        }\n      }\n    }\n  ]\n}"
    }
  ]
}