Skip to main contentIBM Video Streaming Developers

Q&A Initialization

Initialization

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

Success response

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

KEYTYPEDESCRIPTION
stream_dataobjectData for connect
stream_data.api_base_urlstringService base url
stream_data.api_keystringApi key for the service
stream_data.channel_idstringChannel id for the connection
stream_data.channel_typestringChannel type
stream_data.teamstringTeam identifier
userobjectUser related data
user.default_namestring¦nullDefault name based on the token
user.idstringUser identifier
user.has_verified_userbooleanIs the user known based on the access token or generated randomly
user.tokenstringToken for the service

Example of a success response:

{
"qna": {
"stream_data": {
"api_base_url": "https://chat-proxy-us-east.stream-io-api.com",
"api_key": "abc123",
"channel_id": "qna_12345678",
"channel_type": "qna",
"team": "team_12345678"
},

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 streamqna benefit
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request