Chat Thread - Get Chat Image
Get an image by view type.
GET {endpoint}/chat/threads/{chatThreadId}/images/{imageId}/view/{imageViewType}?api-version=2024-03-15-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
chat
|
path | True |
string |
The thread id to which the message was sent. |
endpoint
|
path | True |
string |
The endpoint of the Azure Communication resource. |
image
|
path | True |
string |
The image id. |
image
|
path | True |
The view type of image. |
|
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 |
string |
Image binary data Media Types: "application/json", "image/gif", "image/jpeg", "image/png", "image/bmp", "image/tiff" |
Other Status Codes |
Error response describing why the operation failed. Media Types: "application/json", "image/gif", "image/jpeg", "image/png", "image/bmp", "image/tiff" |
Security
Authorization
An ACS (Azure Communication Services) user access token.
Type:
apiKey
In:
header
Examples
Delete message
Sample Request
GET https://contoso.westus.communications.azure.com/chat/threads/19:34adfa4f-cedf-4dc0-ba29-b6d1a69ab345@thread.v2/images/0-eus-d2-fb42e272282ebb6ef76a3aedd1974433/view/original?api-version=2024-03-15-preview
Sample Response
Content-Type: image/png
"{binary}"
Definitions
Name | Description |
---|---|
Error |
Error response information. |
Error |
Error detail information. |
Error |
Wrapper for error response to follow ARM guidelines. |
Image |
The view type of image. |
Error
Error response information.
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
details |
An array of error detail objects. |
|
message |
string |
Error message. |
ErrorDetail
Error detail information.
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
message |
string |
Error message. |
ErrorResponse
Wrapper for error response to follow ARM guidelines.
Name | Type | Description |
---|---|---|
error |
The error response. |
ImageViewType
The view type of image.
Name | Type | Description |
---|---|---|
original |
string |
|
small |
string |