This API retrieves chat messages. To view the usage flow in B2B PRISM Live Studio, see Chat process.
Note
- Send, query, and delete chats during live streams.
- Chat retrieval occurs approximately every 5 seconds until the live stream ends.
- If the Send/Get/Delete chat APIs are not provided, the chat feature cannot be used.
- It is possible to provide only the Send chat API. However, in this case, chats cannot be viewed.
Request
The method and URI are as follows:
POST /prism/v1/service/live/{liveId}/chat
Request headers
The following describes the headers.
| Name | Type | Description | Required |
|---|---|---|---|
| x-prism-access-token | String | Access token issued via OAuth 2.0 authorization | Y |
Request path parameters
The following describes the parameters.
| Name | Type | Description | Required |
|---|---|---|---|
| liveId | String | Live ID | Y |
Request body
The following describes the body.
| Name | Type | Description | Required |
|---|---|---|---|
| maxResults | Number | Y | |
| pageToken | String | N |
Response
This section describes the response format.
Note
For the default response format, see API response default format.
| Name | Type | Description | Required |
|---|---|---|---|
| liveId | String | Live ID | Y |
| nextPageToken | String | Y | |
| messages | Object | Y |
message dto
The following describes the message dto.
| Name | Type | Description | Required |
|---|---|---|---|
| messageId | String | N | |
| messageAt | Date | N | |
| authorId | String | Y | |
| authorName | String | Y | |
| authorProfileThumbnail | String | N | |
| isLiveOwner | Boolean | N | |
| isLiveManager | Boolean | N |
How to provide page token
The following describes how to provide a page token.

Examples
Here are some example syntaxes.
Request example
The following is a sample syntax.
curl -X POST /prism/v1/service/live/{liveId}/chat
-H "x-prism-access-token: {access-token}"
Response example
The following is a sample syntax.
{
"success": true,
"errorCode": 0,
"errorName": null,
"message": null,
"data": {
"liveId": 6,
"nextPageToken": 8239,
"messages": [
{
"messageId": 12,
"message": "Chat writing test 2023-09-05 11:10:27",
"messageAt": "2023-09-05T11:10:27+09:00",
"authorId": "admin",
"authorName": "Administrator",
"authorProfileThumbnail": null,
"isLiveOwner": true,
"isLiveManager": false
},
{
"messageId": 13,
"message": "Chat writing test 2023-09-05 11:25:11",
"messageAt": "2023-09-05T11:25:11+09:00",
"authorId": "admin",
"authorName": "Administrator",
"authorProfileThumbnail": null,
"isLiveOwner": true,
"isLiveManager": false
}
]
}
}