Cotton code
55 lines · 1.4 KB · JSONRaw
{  "workspaceId": "00000000-0000-4000-8000-000000000001",  "channel": "whatsapp",  "thread": {    "kind": "group",    "title": "Hill walk",    "externalKey": "wa:group:120363000000000001@g.us",    "participants": [      {        "label": "Asha Example",        "phone": "919800000001"      },      {        "label": "Ravi Example",        "phone": "919800000002"      }    ]  },  "messages": [    {      "senderLabel": "Asha Example",      "direction": "in",      "body": "Leaving at six?",      "sentAt": "2026-10-20T00:30:00Z",      "externalId": "3EB0A1B2C3D4E5F60001",      "reactions": [        {          "emoji": "👍",          "actor": "919800000002",          "at": "2026-10-20T00:31:00Z"        }      ]    },    {      "direction": "out",      "body": "Yes, the trailhead.",      "media": [        {          "key": "00000000-0000-4000-8000-000000000001/messages/6f1c3c52-5b0e-5d47-9a43-2a1f0f6d2b11/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08.jpg",          "contentType": "image/jpeg",          "name": "trailhead.jpg",          "sizeBytes": 48213.0,          "width": 1600.0,          "height": 1200.0        }      ],      "sentAt": "2026-10-20T00:32:00Z",      "externalId": "3EB0A1B2C3D4E5F60002",      "replyToExternalId": "3EB0A1B2C3D4E5F60001",      "meta": {        "attachment": true      }    }  ]}