The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
This API retrieves chat messages. To view the usage flow in B2B PRISM Live Studio, see Chat process.
- 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.
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 | |
| message | String | Chat message | Y |
| messageAt | Date | N | |
| authorId | String | Y | |
| authorName | String | Y | |
| authorProfileThumbnail | String | N | |
| isLiveOwner | Boolean | N | |
| isLiveManager | Boolean | N |
How to provide page token
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
}
]
}
}