Get a stream by ID
GET https://chat.zmt-datalab.de/api/v1/streams/{stream_id}
Fetch details for the stream with the ID stream_id
.
Changes: New in Zulip 6.0 (feature level 132).
Usage examples
curl -sSX GET -G https://chat.zmt-datalab.de/api/v1/streams/1 \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY
Parameters
stream_id integer required in path
Example: 1
The ID of the stream to access.
Response
Return values
Example response(s)
A typical successful JSON response may look like:
{
"msg": "",
"result": "success",
"stream": {
"can_remove_subscribers_group_id": 2,
"description": "A Scandinavian country",
"first_message_id": 1,
"history_public_to_subscribers": true,
"invite_only": false,
"is_announcement_only": false,
"is_web_public": false,
"message_retention_days": null,
"name": "Denmark",
"rendered_description": "<p>A Scandinavian country</p>",
"stream_id": 7,
"stream_post_policy": 1
}
}
An example JSON response for when the stream ID is not valid.
{
"code": "BAD_REQUEST",
"msg": "Invalid stream ID",
"result": "error"
}