Chilkat Online Tools

PureBasic / Support API / List Comments

Back to Collection Items

IncludeFile "CkJsonObject.pb"
IncludeFile "CkStringBuilder.pb"
IncludeFile "CkHttp.pb"
IncludeFile "CkHttpResponse.pb"

Procedure ChilkatExample()

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

    http.i = CkHttp::ckCreate()
    If http.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    success.i

    CkHttp::setCkBasicAuth(http, 1)
    CkHttp::setCkLogin(http, "login")
    CkHttp::setCkPassword(http, "password")

    queryParams.i = CkJsonObject::ckCreate()
    If queryParams.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkJsonObject::ckUpdateString(queryParams,"include_inline_images","<boolean>")
    CkJsonObject::ckUpdateString(queryParams,"include","<string>")

    CkHttp::ckSetRequestHeader(http,"Accept","application/json")

    resp.i = CkHttp::ckQuickRequestParams(http,"GET","https://example.zendesk.com/api/v2/tickets/:ticket_id/comments",queryParams)
    If CkHttp::ckLastMethodSuccess(http) = 0
        Debug CkHttp::ckLastErrorText(http)
        CkHttp::ckDispose(http)
        CkJsonObject::ckDispose(queryParams)
        ProcedureReturn
    EndIf

    sbResponseBody.i = CkStringBuilder::ckCreate()
    If sbResponseBody.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkHttpResponse::ckGetBodySb(resp,sbResponseBody)

    jResp.i = CkJsonObject::ckCreate()
    If jResp.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    CkJsonObject::ckLoadSb(jResp,sbResponseBody)
    CkJsonObject::setCkEmitCompact(jResp, 0)

    Debug "Response Body:"
    Debug CkJsonObject::ckEmit(jResp)

    respStatusCode.i = CkHttpResponse::ckStatusCode(resp)
    Debug "Response Status Code = " + Str(respStatusCode)
    If respStatusCode >= 400
        Debug "Response Header:"
        Debug CkHttpResponse::ckHeader(resp)
        Debug "Failed."
        CkHttpResponse::ckDispose(resp)

        CkHttp::ckDispose(http)
        CkJsonObject::ckDispose(queryParams)
        CkStringBuilder::ckDispose(sbResponseBody)
        CkJsonObject::ckDispose(jResp)
        ProcedureReturn
    EndIf

    CkHttpResponse::ckDispose(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

    audit_id.s
    author_id.s
    body.s
    created_at.s
    html_body.s
    id.s
    Cillum_7ae.s
    Sunt2.s
    Laboris__.i
    plain_body.s
    v_public.s
    v_type.s
    Channel.s
    Incididunt03e.i
    Eiusmod_4.i
    Esse7.i
    Nisi04.i
    Amet__.i
    j.i
    count_j.i
    content_type.s
    content_url.s
    deleted.s
    file_name.s
    height.s
    inline.s
    malware_access_override.s
    malware_scan_result.s
    mapped_content_url.s
    size.s
    url.s
    width.s
    k.i
    count_k.i
    strVal.s

    i.i = 0
    count_i.i = CkJsonObject::ckSizeOfArray(jResp,"comments")
    While i < count_i
        CkJsonObject::setCkI(jResp, i)
        audit_id = CkJsonObject::ckStringOf(jResp,"comments[i].audit_id")
        author_id = CkJsonObject::ckStringOf(jResp,"comments[i].author_id")
        body = CkJsonObject::ckStringOf(jResp,"comments[i].body")
        created_at = CkJsonObject::ckStringOf(jResp,"comments[i].created_at")
        html_body = CkJsonObject::ckStringOf(jResp,"comments[i].html_body")
        id = CkJsonObject::ckStringOf(jResp,"comments[i].id")
        Cillum_7ae = CkJsonObject::ckStringOf(jResp,"comments[i].metadata.cillum_7ae")
        Sunt2 = CkJsonObject::ckStringOf(jResp,"comments[i].metadata.sunt2")
        Laboris__ = CkJsonObject::ckBoolOf(jResp,"comments[i].metadata.laboris__")
        plain_body = CkJsonObject::ckStringOf(jResp,"comments[i].plain_body")
        v_public = CkJsonObject::ckStringOf(jResp,"comments[i].public")
        v_type = CkJsonObject::ckStringOf(jResp,"comments[i].type")
        Channel = CkJsonObject::ckStringOf(jResp,"comments[i].via.channel")
        Incididunt03e = CkJsonObject::ckBoolOf(jResp,"comments[i].via.source.incididunt03e")
        Eiusmod_4 = CkJsonObject::ckIntOf(jResp,"comments[i].via.source.eiusmod_4")
        Esse7 = CkJsonObject::ckIntOf(jResp,"comments[i].via.source.esse7")
        Nisi04 = CkJsonObject::ckBoolOf(jResp,"comments[i].metadata.nisi04")
        Amet__ = CkJsonObject::ckIntOf(jResp,"comments[i].via.source.amet__")
        j = 0
        count_j = CkJsonObject::ckSizeOfArray(jResp,"comments[i].attachments")
        While j < count_j
            CkJsonObject::setCkJ(jResp, j)
            content_type = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].content_type")
            content_url = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].content_url")
            deleted = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].deleted")
            file_name = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].file_name")
            height = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].height")
            id = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].id")
            inline = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].inline")
            malware_access_override = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].malware_access_override")
            malware_scan_result = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].malware_scan_result")
            mapped_content_url = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].mapped_content_url")
            size = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].size")
            url = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].url")
            width = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].width")
            k = 0
            count_k = CkJsonObject::ckSizeOfArray(jResp,"comments[i].attachments[j].thumbnails")
            While k < count_k
                CkJsonObject::setCkK(jResp, k)
                content_type = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].content_type")
                content_url = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].content_url")
                deleted = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].deleted")
                file_name = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].file_name")
                height = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].height")
                id = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].id")
                inline = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].inline")
                malware_access_override = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].malware_access_override")
                malware_scan_result = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].malware_scan_result")
                mapped_content_url = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].mapped_content_url")
                size = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].size")
                url = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].url")
                width = CkJsonObject::ckStringOf(jResp,"comments[i].attachments[j].thumbnails[k].width")
                k = k + 1
            Wend
            j = j + 1
        Wend
        j = 0
        count_j = CkJsonObject::ckSizeOfArray(jResp,"comments[i].uploads")
        While j < count_j
            CkJsonObject::setCkJ(jResp, j)
            strVal = CkJsonObject::ckStringOf(jResp,"comments[i].uploads[j]")
            j = j + 1
        Wend
        i = i + 1
    Wend


    CkHttp::ckDispose(http)
    CkJsonObject::ckDispose(queryParams)
    CkStringBuilder::ckDispose(sbResponseBody)
    CkJsonObject::ckDispose(jResp)


    ProcedureReturn
EndProcedure

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