Skip to main contentIBM Video Streaming Developers

Chat Settings

Get chat settings in batch

GET https://api.video.ibm.com/channels/{channelId}/chat/settings.json

Success response

Upon success, a response with HTTP status “200 OK” is returned with the following key-value pairs inside the settings root object.

KEYTYPEDESCRIPTION
threads.enabledbooleanThreaded messaging on/off
uploads.enabledbooleanFile uploads are allowed
reactions.enabledbooleanReactions are on/off
video.enabledbooleanVideo chat status
profanity_filter.enabledbooleanProfanity filter status
flag.enabledbooleanMessage flagging status
group.statusstringGroup/direct chat status. Values: disabled, by-viewers, by-moderators

Example of a success response:

{
"settings": {
"threads": {
"enabled": true
},
"uploads": {
"enabled": true
},
"reactions": {

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Get thread settings

GET https://api.video.ibm.com/channels/{channelId}/chat/settings/threads.json

Success response

Upon success, a response with HTTP status “200 OK” is returned with the following key-value pairs inside the threads root object.

KEYTYPEDESCRIPTION
enabledbooleanThreaded messaging on/off

Example of a success response:

{
"threads": {
"enabled": true
}
}

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Update thread settings

PUT https://api.video.ibm.com/channels/{channelId}/chat/settings/threads.json

Parameters

KEYTYPEIMPORTANCEDESCRIPTION
enablestringREQUIREDPossible values: true, false

The Content-Type of the request should be application/x-www-form-urlencoded.

Example of the request:

PUT /channels/1234/chat/settings/threads.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
enable=true

Success response

Upon success, a response with HTTP status ““204” No content” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid value was supplied
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Get file upload settings

GET https://api.video.ibm.com/channels/{channelId}/chat/settings/uploads.json

Success response

Upon success, a response with HTTP status “200 OK” is returned with the following key-value pairs inside the uploads root object.

KEYTYPEDESCRIPTION
enabledbooleanFile uploads are allowed

Example of a success response:

{
"uploads": {
"enabled": true
}
}

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Update file upload settings

PUT https://api.video.ibm.com/channels/{channelId}/chat/settings/uploads.json

Parameters

KEYTYPEIMPORTANCEDESCRIPTION
enablestringREQUIREDPossible values: true, false

The Content-Type of the request should be application/x-www-form-urlencoded.

Example of the request:

PUT /channels/1234/chat/settings/uploads.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
enable=true

Success response

Upon success, a response with HTTP status ““204” No content” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid value was supplied
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Get message reaction settings

GET https://api.video.ibm.com/channels/{channelId}/chat/settings/reactions.json

Success response

Upon success, a response with HTTP status “200 OK” is returned with the following key-value pairs inside the reactions root object.

KEYTYPEDESCRIPTION
enabledbooleanReactions are on/off

Example of a success response:

{
"reactions": {
"enabled": true
}
}

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Update message reaction settings

PUT https://api.video.ibm.com/channels/{channelId}/chat/settings/reactions.json

Parameters

KEYTYPEIMPORTANCEDESCRIPTION
enablestringREQUIREDPossible values: true, false

The Content-Type of the request should be application/x-www-form-urlencoded.

Example of the request:

PUT /channels/1234/chat/settings/reactions.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
enable=true

Success response

Upon success, a response with HTTP status ““204” No content” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid value was supplied
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Get video chat settings

GET https://api.video.ibm.com/channels/{channelId}/chat/settings/video.json

Success response

Upon success, a response with HTTP status “200 OK” is returned with the following key-value pairs inside the video root object.

KEYTYPEDESCRIPTION
enabledbooleanVideo chat status

Example of a success response:

{
"video": {
"enabled": true
}
}

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Update video chat settings

PUT https://api.video.ibm.com/channels/{channelId}/chat/settings/video.json

Parameters

KEYTYPEIMPORTANCEDESCRIPTION
enablestringREQUIREDPossible values: true, false

The Content-Type of the request should be application/x-www-form-urlencoded.

Example of the request:

PUT /channels/1234/chat/settings/video.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
enable=true

Success response

Upon success, a response with HTTP status ““204” No content” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid value was supplied
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Get profanity filter settings

GET https://api.video.ibm.com/channels/{channelId}/chat/settings/profanity-filter.json

Success response

Upon success, a response with HTTP status “200 OK” is returned with the following key-value pairs inside the profanity_filter root object.

KEYTYPEDESCRIPTION
enabledbooleanProfanity filter status

Example of a success response:

{
"profanity_filter": {
"enabled": true
}
}

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Update profanity filter settings

PUT https://api.video.ibm.com/channels/{channelId}/chat/settings/profanity-filter.json

Parameters

KEYTYPEIMPORTANCEDESCRIPTION
enablestringREQUIREDPossible values: true, false

The Content-Type of the request should be application/x-www-form-urlencoded.

Example of the request:

PUT /channels/1234/chat/settings/profanity-filter.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
enable=true

Success response

Upon success, a response with HTTP status ““204” No content” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid value was supplied
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Get message flagging settings

GET https://api.video.ibm.com/channels/{channelId}/chat/settings/flag.json

Success response

Upon success, a response with HTTP status “200 OK” is returned with the following key-value pairs inside the flag root object.

KEYTYPEDESCRIPTION
enabledbooleanMessage flagging status

Example of a success response:

{
"flag": {
"enabled": true
}
}

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Update message flagging settings

PUT https://api.video.ibm.com/channels/{channelId}/chat/settings/flag.json

Parameters

KEYTYPEIMPORTANCEDESCRIPTION
enablestringREQUIREDPossible values: true, false

The Content-Type of the request should be application/x-www-form-urlencoded.

Example of the request:

PUT /channels/1234/chat/settings/flag.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
enable=true

Success response

Upon success, a response with HTTP status ““204” No content” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid value was supplied
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Get group/direct messaging settings

GET https://api.video.ibm.com/channels/{channelId}/chat/settings/group.json

Success response

Upon success, a response with HTTP status “200 OK” is returned with the following key-value pairs inside the group root object.

KEYTYPEDESCRIPTION
enabledstringGroup/direct chat status. Values: disabled, by-viewers, by-moderators

Example of a success response:

{
"group": {
"status": "by-moderators"
}
}

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Update group/direct messaging settings

PUT https://api.video.ibm.com/channels/{channelId}/chat/settings/group.json

Parameters

KEYTYPEIMPORTANCEDESCRIPTION
statusstringREQUIREDControls who can start group/direct chats. Possible values: disabled, by-viewers, by-moderators

The Content-Type of the request should be application/x-www-form-urlencoded.

Example of the request:

PUT /channels/1234/chat/settings/group.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
status=by-moderators

Success response

Upon success, a response with HTTP status ““204” No content” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid value was supplied
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
402 Payment Requiredinvalid_requestThe user does not have the streamchat benefit
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request