headless lms

Open message flags in a community you moderate

GET /api/member/communities/{communityId}/message-queue. Open message flags in a community you moderate. Headless LMS Chats API reference.

GET
/api/member/communities/{communityId}/message-queue

Requires communities:moderate. Needed on the community, as a member of it. The messages in its chats with open flags, with the flags and the chat each is in. Holds at most the 100 oldest open flags; working the queue brings in the next ones.

Path Parameters

communityId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/member/communities/string/message-queue"
{  "entries": [    {      "message": {        "orgId": "string",        "id": "string",        "communityId": "string",        "chatId": "string",        "orgUserId": "string",        "body": "string",        "replyToId": "string",        "clientId": "5e505642-9024-474d-9434-e5a44f505cc5",        "editedAt": "2019-08-24T14:15:22Z",        "deletedAt": "2019-08-24T14:15:22Z",        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z",        "sender": {          "id": "string",          "firstName": "string",          "lastName": "string",          "displayName": "string",          "headline": "string",          "image": "string",          "imageAssetId": "string",          "imageUrl": "string",          "team": true,          "roleName": "string"        },        "attachments": [          {            "assetId": "string",            "url": "string"          }        ],        "reactions": {          "property1": 0,          "property2": 0        },        "viewerReaction": "string",        "mentions": [          {            "orgUserId": "string",            "name": "string"          }        ]      },      "flags": [        {          "orgId": "string",          "id": "string",          "communityId": "string",          "messageId": "string",          "orgUserId": "string",          "reason": "string",          "resolvedAt": "2019-08-24T14:15:22Z",          "resolution": "dismissed",          "resolvedBy": "string",          "createdAt": "2019-08-24T14:15:22Z",          "updatedAt": "2019-08-24T14:15:22Z"        }      ],      "chat": {        "orgId": "string",        "id": "string",        "communityId": "string",        "kind": "direct",        "status": "pending",        "createdBy": "string",        "lockedAt": "2019-08-24T14:15:22Z",        "lockedBy": "string",        "createdAt": "2019-08-24T14:15:22Z",        "updatedAt": "2019-08-24T14:15:22Z"      },      "participantIds": [        "string"      ]    }  ]}
{  "error": "string",  "message": "string",  "requestId": "string",  "issues": [    {      "path": "string",      "message": "string"    }  ]}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}