Chat Thread - List Chat Read Receipts

Gets chat message read receipts for a thread.

GET {endpoint}/chat/threads/{chatThreadId}/readReceipts?api-version=2024-03-07
GET {endpoint}/chat/threads/{chatThreadId}/readReceipts?maxPageSize={maxPageSize}&skip={skip}&api-version=2024-03-07

URI Parameters

Name In Required Type Description
chatThreadId
path True

string

Thread id to get the chat message read receipts for.

endpoint
path True

string

The endpoint of the Azure Communication resource.

api-version
query True

string

Version of API to invoke.

maxPageSize
query

integer

int32

The maximum number of chat message read receipts to be returned per page.

skip
query

integer

int32

Skips chat message read receipts up to a specified position in response.

Request Header

Name Required Type Description
Authorization True

string

An ACS (Azure Communication Services) user access token.

Responses

Name Type Description
200 OK

ChatMessageReadReceiptsCollection

Request successful. The action returns the requested ChatMessageReadReceipt resources.

401 Unauthorized

CommunicationErrorResponse

Unauthorized.

403 Forbidden

CommunicationErrorResponse

Forbidden.

429 Too Many Requests

CommunicationErrorResponse

Too many requests.

Other Status Codes

CommunicationErrorResponse

Service unavailable.

Security

Authorization

An ACS (Azure Communication Services) user access token.

Type: apiKey
In: header

Examples

Get thread read receipts with pagination (max page size)

Sample Request

GET https://contoso.westus.communications.azure.com/chat/threads/19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2/readReceipts?maxPageSize=2&api-version=2024-03-07

Sample Response

{
  "value": [
    {
      "senderCommunicationIdentifier": {
        "rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b",
        "communicationUser": {
          "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b"
        }
      },
      "chatMessageId": "1591137790240",
      "readOn": "2020-06-06T05:55:41.6460000Z"
    },
    {
      "senderCommunicationIdentifier": {
        "rawId": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_c94ff260-162d-46d6-94fd-e79f4d213715",
        "communicationUser": {
          "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_c94ff260-162d-46d6-94fd-e79f4d213715"
        }
      },
      "chatMessageId": "1591768249318",
      "readOn": "2020-06-06T05:55:41.6460000Z"
    }
  ],
  "nextLink": "https://contoso.westus.communications.azure.com/chat/threads/19:453dafb77b26481ea2e73bcada0324af@thread.v2/readReceipts?skip=2&maxPageSize=2&api-version=2024-03-07"
}
{
  "error": {
    "code": "Unauthorized",
    "message": "Request is not authorized."
  }
}
{
  "error": {
    "code": "Forbidden",
    "message": "User is not allowed to perform specified action."
  }
}
{
  "error": {
    "code": "TooManyRequests",
    "message": "Rate limit exceeded."
  }
}
{
  "error": {
    "code": "ServiceUnavailable",
    "message": "The server is currently unable to handle the request."
  }
}

Definitions

Name Description
ChatMessageReadReceipt

A chat message read receipt indicates the time a chat message was read by a recipient.

ChatMessageReadReceiptsCollection

A paged collection of chat message read receipts.

ChatMessageReadReceipt

A chat message read receipt indicates the time a chat message was read by a recipient.

Name Type Description
chatMessageId

string

Id of the chat message that has been read. This id is generated by the server.

readOn

string

The time at which the message was read. The timestamp is in RFC3339 format: yyyy-MM-ddTHH:mm:ssZ.

senderCommunicationIdentifier

CommunicationIdentifierModel

ChatMessageReadReceiptsCollection

A paged collection of chat message read receipts.

Name Type Description
nextLink

string

If there are more chat message read receipts that can be retrieved, the next link will be populated.

value

ChatMessageReadReceipt[]

Collection of chat message read receipts.