Chat Thread - Get Chat Thread Properties
Gets a chat thread's properties.
GET {endpoint}/chat/threads/{chatThreadId}?api-version=2024-03-07
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
chat
|
path | True |
string |
Id of the thread. |
endpoint
|
path | True |
string |
The endpoint of the Azure Communication resource. |
api-version
|
query | True |
string |
Version of API to invoke. |
Request Header
Name | Required | Type | Description |
---|---|---|---|
Authorization | True |
string |
An ACS (Azure Communication Services) user access token. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Request successful. The action returns a chat thread. |
|
401 Unauthorized |
Communication |
Unauthorized. |
403 Forbidden |
Communication |
Forbidden. |
429 Too Many Requests |
Communication |
Too many requests. |
Other Status Codes |
Communication |
Service unavailable. |
Security
Authorization
An ACS (Azure Communication Services) user access token.
Type:
apiKey
In:
header
Examples
Get chat thread
Sample request
GET https://contoso.westus.communications.azure.com/chat/threads/19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2?api-version=2024-03-07
Sample response
{
"id": "19:uni01_zbnh3nt2dfuffezc3sox7dog7wfhk6y5qe2rwlnfhlhdzirihdpq@thread.v2",
"topic": "Lunch",
"createdOn": "2020-06-06T05:55:41.6460000Z",
"createdByCommunicationIdentifier": {
"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"
}
}
}
{
"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
ChatThreadProperties
Chat thread.
Name | Type | Description |
---|---|---|
createdByCommunicationIdentifier |
Communication |
|
createdOn |
string |
The timestamp when the chat thread was created. The timestamp is in RFC3339 format: |
deletedOn |
string |
The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: |
id |
string |
Chat thread id. |
topic |
string |
Chat thread topic. |