unofficial-streamio-mcp-server
v0.6.0Unofficial MCP server for Stream.io Chat, Video, Users, Moderation and App APIs
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
chat_create_token Create user token
Mint a Stream user JWT. Clients present this to connect to chat and to join calls. The user must already exist (see chat_upsert_users). Treat the token as a credential — it grants that user's access until it expires.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID the token is for |
validity_in_seconds | integer | Token lifetime in seconds (default: 3600, i.e. 1 hour) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
auth_create_call_token Create call-scoped token
Mint a Stream JWT scoped to specific calls. The token grants access only to the listed calls, optionally with an elevated call role such as 'host'. For an unscoped token covering all of chat and video, use chat_create_token instead.
| Parameter | Type | Description |
|---|---|---|
call_cids * | array | Call CIDs the token grants access to, e.g. ['default:standup-2026-09-01'] |
user_id * | string | User ID the token is for |
role | string | Call role granted by the token, e.g. 'host', 'speaker', 'admin' |
validity_in_seconds | integer | Token lifetime in seconds (default: 3600, i.e. 1 hour) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_upsert_users Create or update users
Create or update users. This is a full upsert — fields you omit are cleared. For targeted edits use users_update_partial. Users must exist before they can be added to channels or calls.
| Parameter | Type | Description |
|---|---|---|
users * | array | Users to create or update (max 100) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_query_users Query users
Search and filter users. Common filters: {id: {$in: ['alice','bob']}}, {role: {$eq: 'admin'}}, {name: {$autocomplete: 'ali'}}, {banned: true}, {last_active: {$gt: '2026-08-01T00:00:00Z'}}. Stream rejects any operator on `deactivated_at`, so pass `deactivated_only: true` to enumerate deactivated users.
| Parameter | Type | Description |
|---|---|---|
after_id | string | Resume a `deactivated_only` scan from this user id (the previous `scan.next_id`) |
deactivated_only | boolean | Return only deactivated users. Stream cannot filter on `deactivated_at`, so this SCANS: it pages the app by ascending user id (up to 25 pages of 100) and keeps the deactivated rows. The `scan` block i… |
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
include_deactivated_users | boolean | Include deactivated users alongside active ones. It cannot isolate them — use `deactivated_only` for that. |
limit | integer | Max results to return (default: 10, max: 100) |
offset | integer | Number of results to skip (max: 1000) |
presence | boolean | Include online/presence state |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_update_partial Partially update users
Change specific fields on users without clearing the rest. `set` overwrites fields, `unset` removes them.
| Parameter | Type | Description |
|---|---|---|
users * | array | Partial updates, one per user |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_deactivate Deactivate user
Deactivate a user. They can no longer connect, but their data is retained and they can be reactivated.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID to deactivate |
created_by_id | string | Acting user ID |
mark_messages_deleted | boolean | Also mark their messages deleted |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_reactivate Reactivate user
Reactivate a previously deactivated user, optionally restoring their messages.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID to reactivate |
created_by_id | string | Acting user ID |
name | string | Set a new display name on reactivation |
restore_messages | boolean | Restore messages deleted at deactivation |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_delete Delete users
Delete users asynchronously. Returns a task id — poll it with app_get_task. Choose 'soft' (recoverable), 'pruning' (removes content, keeps the id) or 'hard' (irreversible) per data category.
| Parameter | Type | Description |
|---|---|---|
user_ids * | array | User IDs to delete |
calls | string | How to delete their calls |
conversations | string | How to delete their channels |
messages | string | How to delete their messages |
new_channel_owner_id | string | Reassign their channels to this user instead of deleting |
user | string | How to delete the user record. Default: soft. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_restore Restore deleted users
Restore soft-deleted users. Hard-deleted or pruned users cannot be restored.
| Parameter | Type | Description |
|---|---|---|
user_ids * | array | User IDs to restore |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_create_guest Create guest user
Create a guest user and return a token for them. Guests get the 'guest' role and limited permissions. Guest creation must be enabled on the app.
| Parameter | Type | Description |
|---|---|---|
id * | string | Guest user ID |
custom | object | Custom key/value data stored on the object |
image | string | Avatar URL |
name | string | Display name |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_block Block user (user-to-user)
One user blocks another, hiding the blocked user's messages from them. This is a personal block, not a moderation ban — use moderation_ban_user for that.
| Parameter | Type | Description |
|---|---|---|
blocked_user_id * | string | User being blocked |
user_id * | string | User doing the blocking |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_unblock Unblock user (user-to-user)
Remove a user-to-user block, so the blocked user's messages become visible to the blocker again.
| Parameter | Type | Description |
|---|---|---|
blocked_user_id * | string | User being unblocked |
user_id * | string | User who did the blocking |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_get_blocked List blocked users
List the users a given user has blocked.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User whose block list to read |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_export Export user data
Export one user's data — their profile, channels and messages.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID to export |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_list_devices List user devices
List all push notification devices registered for a user, including device tokens and push providers.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID whose registered devices to list |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_create_device Register user device
Register a push notification device token for a user with an APN, Firebase, Huawei, or Xiaomi push provider.
| Parameter | Type | Description |
|---|---|---|
id * | string | Device push token or unique device identifier |
push_provider * | string | Push notification provider type |
user_id * | string | User ID to register the device for |
push_provider_name | string | Named push provider configuration on the app |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
voip_token | boolean | Whether the token is for Apple VoIP push notifications |
users_delete_device Delete user device
Remove a registered push notification device token from a user so it no longer receives pushes.
| Parameter | Type | Description |
|---|---|---|
id * | string | Device push token or device ID to remove |
user_id * | string | User ID who owns the device |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_list_groups List user groups
List user groups in the application with cursor pagination and optional team scoping.
| Parameter | Type | Description |
|---|---|---|
id_gt | string | Cursor: return groups with ID greater than this value |
limit | integer | Max results to return (default: 25, max: 100) |
team_id | string | Team ID to scope the user groups query |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_get_group Get user group
Retrieve a user group by ID, including its name, description, and current members.
| Parameter | Type | Description |
|---|---|---|
id * | string | User group ID |
team_id | string | Team ID when the group is scoped to a team |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_create_group Create user group
Create a new user group with an optional custom ID, description, team scope, and initial member IDs.
| Parameter | Type | Description |
|---|---|---|
name * | string | Human-readable name of the user group |
description | string | Description of the user group |
id | string | Custom group ID (a UUID is generated if omitted) |
member_ids | array | Initial user IDs to add as group members |
team_id | string | Team ID to scope the group to a team |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_update_group Update user group
Update a user group's name or description. At least one of name or description must be provided.
| Parameter | Type | Description |
|---|---|---|
id * | string | User group ID to update |
description | string | New description for the user group |
name | string | New name for the user group |
team_id | string | Team ID when the group is scoped to a team |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_delete_group Delete user group
Permanently delete a user group by ID, optionally scoped to a specific team.
| Parameter | Type | Description |
|---|---|---|
id * | string | User group ID to delete |
team_id | string | Team ID when the group is scoped to a team |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_add_group_members Add user group members
Add one or more users to a user group, optionally granting them group admin privileges.
| Parameter | Type | Description |
|---|---|---|
id * | string | User group ID |
member_ids * | array | User IDs to add to the group |
as_admin | boolean | Whether to add the members as group admins |
team_id | string | Team ID when the group is scoped to a team |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_remove_group_members Remove user group members
Remove one or more users from a user group by their user IDs.
| Parameter | Type | Description |
|---|---|---|
id * | string | User group ID |
member_ids * | array | User IDs to remove from the group |
team_id | string | Team ID when the group is scoped to a team |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_deactivate_batch Deactivate users in batch
Deactivate multiple users asynchronously in a single batch operation, optionally marking their messages or channels deleted. Returns a task_id to poll with app_get_task.
| Parameter | Type | Description |
|---|---|---|
user_ids * | array | User IDs to deactivate (max 100) |
created_by_id | string | ID of the user performing the deactivation |
mark_channels_deleted | boolean | Mark channels created by these users as deleted |
mark_messages_deleted | boolean | Mark messages sent by these users as deleted |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
users_reactivate_batch Reactivate users in batch
Reactivate multiple previously deactivated users asynchronously in a single batch operation, optionally restoring their messages or channels. Returns a task_id to poll with app_get_task.
| Parameter | Type | Description |
|---|---|---|
user_ids * | array | User IDs to reactivate (max 100) |
created_by_id | string | ID of the user performing the reactivation |
restore_channels | boolean | Restore channels that were marked deleted on deactivation |
restore_messages | boolean | Restore messages that were marked deleted on deactivation |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_create_channel Create or get chat channel
Create a chat channel, or return it if it already exists. Provide `id` for a named channel. Omit `id` to create a distinct channel keyed by its member list (requires at least 2 members). Built-in types: messaging, team, livestream, commerce, gaming.
| Parameter | Type | Description |
|---|---|---|
created_by_id * | string | User ID of the channel creator |
type * | string | Channel type (e.g. 'messaging', 'team') |
custom | object | Custom key/value data stored on the object |
id | string | Channel ID. Omit to create a distinct channel keyed by members. |
members | array | Members to add. Accepts user IDs or {user_id, role} objects. Max 100. |
name | string | Channel display name. Stored as custom data (`custom.name`). |
team | string | Team the channel belongs to (multi-tenant apps) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_query_channels Query channels
Search and filter chat channels. Common filters: {type: {$eq: 'messaging'}}, {members: {$in: ['user-id']}}, {last_message_at: {$gt: '2026-01-01T00:00:00Z'}}. Returns channel metadata only by default — raise `message_limit` to include messages, or use chat_get_channel for one channel's history.
| Parameter | Type | Description |
|---|---|---|
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 10, max: 30) |
member_limit | integer | Max results to return (default: 10, max: 100) |
message_limit | integer | Max results to return (default: 0, max: 300) |
offset | integer | Number of results to skip (max: 1000) |
sort | array | Sort parameters, applied in order |
user_id | string | Query as this user — applies their permissions and populates read/unread state |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_update_channel Update channel members and roles
Add or remove channel members, promote or demote moderators, assign channel roles, and send invites. For changing channel data such as the name, use chat_update_channel_data.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
add_members | array | Members to add — user IDs or {user_id, role} objects |
add_moderators | array | User IDs to promote to moderator |
assign_roles | array | Set a channel role on existing members: [{user_id, role}] |
cooldown | integer | Slow mode: seconds a user must wait between messages (0 disables) |
demote_moderators | array | User IDs to demote from moderator |
hide_history | boolean | Hide existing history from newly added members |
invites | array | User IDs to invite (they must accept before joining) |
remove_members | array | User IDs to remove |
user_id | string | Acting user — attributed as the author of the resulting system message |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_add_members Add channel members
Add members to a channel. The users must already exist (see chat_upsert_users). Convenience wrapper over chat_update_channel.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
member_ids * | array | User IDs to add as members |
hide_history | boolean | Hide existing history from the new members |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_remove_members Remove channel members
Remove members from a channel. Convenience wrapper over chat_update_channel.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
member_ids * | array | User IDs to remove |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_update_channel_data Update channel data
Partially update a channel's data. `set` adds or overwrites fields (e.g. {name: 'New Name', image: 'https://…'}), `unset` removes them. Only the listed fields change.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
set | object | Fields to set, e.g. {name: 'Support', frozen: true} |
unset | array | Field names to remove |
user_id | string | Acting user ID |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_channel Get channel state and messages
Fetch a channel's state: its data, members, and most recent messages. This is the primary way to READ chat history. Page backwards through history with `before_message_id` (pass the oldest message id you already have). Strictly a read: an unknown channel id returns a 404 rather than creating the channel — use chat_create_channel for that.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
around_message_id | string | Return messages centred on this message ID |
before_message_id | string | Return messages older than this message ID (pagination) |
member_limit | integer | Max results to return (default: 30, max: 100) |
message_limit | integer | Max results to return (default: 25, max: 300) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_channel Delete channel
Delete a channel. Soft delete by default (recoverable, id stays taken). `hard_delete: true` permanently removes the channel and all its messages and frees the id.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
hard_delete | boolean | Permanently delete the channel and all messages. Irreversible. Default: false. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_truncate_channel Truncate channel
Remove all messages from a channel while keeping the channel and its members. Optionally post a system message explaining the truncation — that message needs an author, so `user_id` is required with it. `truncated_at` must be later than any previous truncation of the same channel.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
hard_delete | boolean | Permanently remove messages rather than soft-deleting |
system_message | string | System message to post after truncating. Requires `user_id` — it is its author. |
truncated_at | string | ISO-8601 timestamp — only truncate messages older than this |
user_id | string | Acting user ID |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_query_members Query channel members
Search and filter the members of a channel. Common filters: {name: {$autocomplete: 'ali'}}, {channel_role: {$eq: 'channel_moderator'}}, {banned: true}.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
offset | integer | Number of results to skip (max: 1000) |
sort | array | Sort parameters, applied in order |
user_id | string | Query as this user |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_update_member Update channel member
Partially update one member's custom data on a channel. `set` adds or overwrites fields, `unset` removes them.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
user_id * | string | The member to update |
set | object | Member fields to set |
unset | array | Member field names to remove |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_mute_channel Mute channels for a user
Mute one or more channels for a user, suppressing their push notifications.
| Parameter | Type | Description |
|---|---|---|
channel_cids * | array | Channel CIDs, e.g. ['messaging:general'] |
user_id * | string | User to mute the channels for |
expiration | integer | Mute duration in milliseconds. Omit for indefinite. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_unmute_channel Unmute channels for a user
Remove a user's mute on one or more channels.
| Parameter | Type | Description |
|---|---|---|
channel_cids * | array | Channel CIDs to unmute |
user_id * | string | User whose mute should be removed |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_hide_channel Hide channel for a user
Hide a channel from one user's channel list. It reappears when a new message arrives unless the channel type is configured otherwise.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
user_id * | string | User to hide the channel for |
clear_history | boolean | Also clear this user's message history for the channel |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_show_channel Show hidden channel
Un-hide a previously hidden channel for a user.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
user_id * | string | User to show the channel for |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_send_event Send custom channel event
Broadcast a custom real-time event to everyone watching a channel. Not persisted as a message — use for typing indicators, presence signals, or app-specific pings.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
event_type * | string | Custom event type, e.g. 'order_shipped'. Letters, numbers, _ and - only. |
user_id * | string | User the event is attributed to |
custom | object | Custom key/value data stored on the object |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_send_message Send message
Send a message to a channel on behalf of a user. Set `parent_id` to reply in a thread. Supports attachments, mentions and markdown text.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
text * | string | Message text. Supports markdown and URL enrichment. |
user_id * | string | User ID the message is sent as |
attachments | array | Attachments (max 30) |
custom | object | Custom key/value data stored on the object |
mentioned_users | array | User IDs mentioned in the text (max 25) |
parent_id | string | Parent message ID — makes this a thread reply |
pinned | boolean | Pin the message to the channel |
poll_id | string | ID of a poll created with chat_create_poll to attach to this message |
quoted_message_id | string | Message ID this message quotes |
show_in_channel | boolean | For thread replies, also show the reply in the main channel |
silent | boolean | Send without bumping unread counts or notifications |
skip_push | boolean | Do not send a push notification |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_message Delete message
Delete a message. Soft delete by default — the message is marked deleted but retained. `hard: true` removes it permanently and cannot be undone.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID to delete |
deleted_by | string | User ID credited with the deletion |
hard | boolean | Permanently remove. Irreversible. Default: false. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_message Get message
Fetch a single message by ID, including its attachments, reactions and thread metadata.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID |
show_deleted_message | boolean | Include the message even if soft-deleted |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_many_messages Get several messages
Fetch several messages from one channel by ID in a single call.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
message_ids * | array | Message IDs to fetch |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_search_messages Search messages
Full-text search across messages. `filter_conditions` scopes which channels to search (required — e.g. {members: {$in: ['user-id']}} or {type: 'messaging'}). Provide `query` for full-text search, or `message_filter_conditions` for structured matching such as {text: {$autocomplete: 'refund'}}.
| Parameter | Type | Description |
|---|---|---|
filter_conditions * | object | Channel filter that scopes the search, e.g. {members: {$in: ['alice']}} |
limit | integer | Max results to return (default: 20, max: 100) |
message_filter_conditions | object | Structured message filter, e.g. {text: {$autocomplete: 'refund'}} |
next | string | Cursor from a previous response's `next` field |
offset | integer | Number of results to skip (max: 1000) |
query | string | Full-text search term |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_update_message Update message
Replace a message's contents. This is a full update — fields you omit are cleared. For targeted edits use chat_update_message_partial.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID to update |
text * | string | New message text |
user_id * | string | User the message belongs to |
attachments | array | Replacement attachments |
custom | object | Custom key/value data stored on the object |
mentioned_users | array | Replacement mentioned user IDs (max 25) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_update_message_partial Partially update message
Change specific fields on a message without touching the rest. `set` overwrites fields (e.g. {text: '…', pinned: true}), `unset` removes them.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID to update |
set | object | Fields to set, e.g. {text: 'edited'} |
unset | array | Field names to remove |
user_id | string | Acting user ID |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_undelete_message Undelete message
Restore a soft-deleted message. Hard-deleted messages cannot be restored.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID to restore |
undeleted_by * | string | User ID performing the restore |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_replies Get thread replies
Fetch the replies in a message thread. Page backwards with `before_message_id` (the oldest reply id you already have).
| Parameter | Type | Description |
|---|---|---|
parent_message_id * | string | The thread's parent message ID |
before_message_id | string | Return replies older than this message ID |
limit | integer | Max results to return (default: 25, max: 300) |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_pinned_messages Get pinned messages
List the pinned messages in a channel. Returns 404 if the channel does not exist; never creates one.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
limit | integer | Max results to return (default: 25, max: 100) |
user_id | string | Query as this user |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_translate_message Translate message
Translate a message into another language. The translation is stored on the message under `i18n`.
| Parameter | Type | Description |
|---|---|---|
language * | string | Target language code, e.g. 'es', 'fr', 'hi', 'zh', 'pt'. |
message_id * | string | Message ID to translate |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_send_reaction Add reaction
Add a reaction to a message on behalf of a user.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID to react to |
type * | string | Reaction type, e.g. 'like', 'love', 'haha' |
user_id * | string | User adding the reaction |
enforce_unique | boolean | Replace this user's existing reaction on the message |
score | integer | Reaction weight, for cumulative reactions |
skip_push | boolean | Do not send a push notification |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_reaction Remove reaction
Remove a user's reaction from a message.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID |
type * | string | Reaction type to remove |
user_id * | string | User whose reaction is removed |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_reactions Get message reactions
List the reactions on a message.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID |
limit | integer | Max results to return (default: 50, max: 300) |
offset | integer | Number of results to skip (max: 1000) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_mark_read Mark channel read
Mark a channel as read for a user, up to a specific message if `message_id` is given.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
user_id * | string | User to mark the channel read for |
message_id | string | Mark read up to this message |
thread_id | string | Mark a specific thread read |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_mark_unread Mark channel unread
Mark a channel unread for a user from a given message onwards.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
message_id * | string | Mark unread from this message onwards |
user_id * | string | User to mark the channel unread for |
thread_id | string | Mark a specific thread unread |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_unread_counts Get unread counts
Get a user's unread message and channel counts across the app.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User to get unread counts for |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_query_threads Query threads
List message threads a user participates in, most recently active first.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User whose threads to list |
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 10, max: 25) |
next | string | Cursor from a previous response's `next` field |
reply_limit | integer | Max results to return (default: 2, max: 10) |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_thread Get thread
Fetch one thread by its parent message ID, with its replies and participants.
| Parameter | Type | Description |
|---|---|---|
parent_message_id * | string | The thread's parent message ID |
participant_limit | integer | Max results to return (default: 10, max: 100) |
reply_limit | integer | Max results to return (default: 10, max: 25) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_create_poll Create poll
Create a poll that can be attached to a chat message, with voting options, visibility rules, and vote limits.
| Parameter | Type | Description |
|---|---|---|
name * | string | Poll question or title |
user_id * | string | User ID creating the poll |
allow_answers | boolean | Whether users can submit free-text answers |
allow_user_suggested_options | boolean | Whether users can suggest new options on the poll |
custom | object | Custom key/value data stored on the object |
description | string | Additional description or instructions for the poll |
enforce_unique_vote | boolean | Whether each user is restricted to a single vote |
id | string | Poll ID to use instead of a generated UUID, e.g. to make creation retry-safe |
is_closed | boolean | Whether the poll is closed to new votes |
max_votes_allowed | integer | Maximum number of votes a single user can cast |
options | array | Initial voting options for the poll |
team | string | Team the poll belongs to (multi-tenant apps) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
voting_visibility | string | Whether votes are anonymous or publicly attributed |
chat_get_poll Get poll
Retrieve a poll by ID, including its voting options, vote counts, and configuration settings.
| Parameter | Type | Description |
|---|---|---|
poll_id * | string | Poll ID to retrieve |
user_id | string | User ID to scope the poll view |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_update_poll_partial Partially update poll
Partially update a poll's fields using set and unset operations without replacing the entire poll.
| Parameter | Type | Description |
|---|---|---|
poll_id * | string | Poll ID to update |
user_id * | string | User ID performing the update |
set | object | Fields to set on the poll, e.g. {is_closed: true} |
unset | array | Field names to remove from the poll |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_poll Delete poll
Delete a poll by ID, removing the poll and its associated options and votes.
| Parameter | Type | Description |
|---|---|---|
poll_id * | string | Poll ID to delete |
user_id * | string | User ID performing the deletion |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_query_polls Query polls
Search and filter polls across the application with sorting and cursor pagination.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID executing the query |
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_create_poll_option Create poll option
Add a new voting option to an existing poll, with optional custom metadata.
| Parameter | Type | Description |
|---|---|---|
poll_id * | string | Poll ID to add the option to |
text * | string | Option text displayed to voters |
user_id * | string | User ID creating the option |
custom | object | Custom key/value data stored on the object |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_poll_option Delete poll option
Remove a voting option from a poll by the poll ID and option ID.
| Parameter | Type | Description |
|---|---|---|
option_id * | string | Option ID to delete |
poll_id * | string | Poll ID that owns the option |
user_id * | string | User ID performing the deletion |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_cast_poll_vote Cast poll vote
Cast a vote for an option or submit an answer text on a poll attached to a chat message.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID that the poll is attached to |
poll_id * | string | Poll ID to vote on |
user_id * | string | User ID casting the vote |
answer_text | string | Free-text answer when the poll allows answers |
option_id | string | Option ID to vote for |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_poll_vote Delete poll vote
Remove a previously cast vote from a poll on a chat message by vote ID.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID that the poll is attached to |
poll_id * | string | Poll ID the vote belongs to |
user_id * | string | User ID who owns the vote |
vote_id * | string | Vote ID to remove |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_query_poll_votes Query poll votes
Search and filter votes cast on a poll with sorting and cursor pagination.
| Parameter | Type | Description |
|---|---|---|
poll_id * | string | Poll ID whose votes to query |
user_id * | string | User ID executing the query |
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_create_reminder Create message reminder
Create a reminder (or, without remind_at, a bookmark) for a user on a specific chat message. Reminders must be enabled on the channel (channel type setting, or channel config_overrides.user_message_reminders); Stream delivers timed notifications through Push v3.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID to set a reminder for |
user_id * | string | User ID who will receive the reminder |
expires_at | string | When Stream should drop the reminder or bookmark automatically (ISO 8601) |
remind_at | string | When to trigger the reminder (ISO 8601) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_update_reminder Update message reminder
Update the trigger or expiry timestamp of an existing user reminder on a chat message. Reminders must be enabled on the channel (channel type setting, or channel config_overrides.user_message_reminders); Stream delivers timed notifications through Push v3.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID of the reminder to update |
user_id * | string | User ID who owns the reminder |
expires_at | string | When Stream should drop the reminder or bookmark automatically (ISO 8601) |
remind_at | string | Updated reminder timestamp (ISO 8601) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_reminder Delete message reminder
Delete a user's reminder on a specific chat message so it will no longer fire. Reminders must be enabled on the channel (channel type setting, or channel config_overrides.user_message_reminders); Stream delivers timed notifications through Push v3.
| Parameter | Type | Description |
|---|---|---|
message_id * | string | Message ID whose reminder to delete |
user_id * | string | User ID who owns the reminder |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_query_reminders Query message reminders
Search and filter message reminders across the application with sorting and cursor pagination. Requires Push v3.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID whose reminders to query |
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_draft Get message draft
Retrieve a user's saved draft message in a channel or message thread.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
user_id * | string | User ID who owns the draft |
parent_id | string | Parent message ID when fetching a thread reply draft |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_draft Delete message draft
Delete a user's saved draft message in a channel or message thread.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | Channel ID |
channel_type * | string | Channel type (e.g. 'messaging', 'team', 'livestream') |
user_id * | string | User ID who owns the draft |
parent_id | string | Parent message ID when deleting a thread reply draft |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_query_drafts Query message drafts
List and filter a user's saved draft messages across channels and threads.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID whose drafts to query |
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_list_channel_types List channel types
List the app's channel types with their key feature flags. Returns a summary — use chat_get_channel_type for one type's full configuration and permission grants.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_channel_type Get channel type
Get one channel type's full configuration, including its permission grants.
| Parameter | Type | Description |
|---|---|---|
name * | string | Channel type name, e.g. 'messaging' |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_create_channel_type Create channel type
Create a custom channel type. `automod`, `automod_behavior` and `max_message_length` are required by Stream. Read an existing type with chat_get_channel_type first to see sensible values.
| Parameter | Type | Description |
|---|---|---|
automod * | string | Automod mode. Use 'disabled' unless you have moderation configured. |
automod_behavior * | string | What automod does on a match |
max_message_length * | integer | Maximum message length in characters (Stream's default is 5000) |
name * | string | Unique channel type name |
grants | object | Permission grants keyed by role, e.g. {channel_member: ['read-channel']} |
settings | object | Additional settings, e.g. {typing_events: true, read_events: true, replies: true, reactions: true, uploads: true, message_retention: 'infinite'} |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_update_channel_type Update channel type
Update a channel type's settings or permission grants. Applies to every channel of that type, app-wide. Stream requires `automod`, `automod_behavior` and `max_message_length` on every update — read the current values with chat_get_channel_type and pass them back unchanged if you are not changing them.
| Parameter | Type | Description |
|---|---|---|
automod * | string | Automod mode |
automod_behavior * | string | What automod does on a match |
max_message_length * | integer | Maximum message length in characters |
name * | string | Channel type name |
grants | object | Permission grants keyed by role |
settings | object | Other settings to change, e.g. {typing_events: false, replies: true} |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_channel_type Delete channel type
Delete a custom channel type. Fails if any channel of that type still exists. Built-in types cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
name * | string | Channel type name to delete |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_export_channels Export channels
Start an asynchronous export of one or more channels and their messages. Returns a task id — poll it with app_get_task to get the download URL.
| Parameter | Type | Description |
|---|---|---|
channel_cids * | array | Channel CIDs to export, e.g. ['messaging:general'] |
clear_deleted_message_text | boolean | Blank out deleted message text |
include_truncated_messages | boolean | Include messages removed by a truncate |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_list_commands List slash commands
List all built-in and custom slash commands registered in the Stream application.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_command Get slash command
Retrieve the configuration of a single custom or built-in slash command by name.
| Parameter | Type | Description |
|---|---|---|
name * | string | Slash command name, e.g. 'giphy' or 'ticket' |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_create_command Create slash command
Register a new custom slash command that can be enabled on channel types.
| Parameter | Type | Description |
|---|---|---|
description * | string | Human-readable description shown in command autocomplete |
name * | string | Unique command name without leading slash, e.g. 'ticket' |
args | string | Arguments usage hint shown in autocomplete, e.g. '[text]' |
set | string | Command group or set name used for organizing commands |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_update_command Update slash command
Replace an existing custom slash command's configuration (full update: omitting args or set resets them to empty strings).
| Parameter | Type | Description |
|---|---|---|
description * | string | Updated description shown in command autocomplete |
name * | string | Command name to update |
args | string | Updated arguments usage hint, e.g. '[text]' |
set | string | Updated command group or set name |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_command Delete slash command
Delete a custom slash command by name. Built-in commands cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
name * | string | Custom command name to delete |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_push_templates Get push notification templates
Retrieve push notification payload templates configured for a push provider type. Requires Push v3 configured on the application.
| Parameter | Type | Description |
|---|---|---|
push_provider_type * | string | Push notification provider type |
push_provider_name | string | Named push provider configuration |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_upsert_push_template Create or update push template
Create or update a push notification payload template for a specific event and push provider. Requires Push v3 configured on the application.
| Parameter | Type | Description |
|---|---|---|
event_type * | string | Chat event type that triggers the push notification |
push_provider_type * | string | Push notification provider type |
enable_push | boolean | Whether push notifications are enabled for this event type |
push_provider_name | string | Named push provider configuration |
template | string | Push payload template string (Handlebars syntax) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_channels_batch Delete channels in batch
Delete multiple chat channels asynchronously in a single batch operation by their channel CIDs. Returns a task ID to poll with app_get_task.
| Parameter | Type | Description |
|---|---|---|
cids * | array | Channel CIDs to delete, e.g. ['messaging:general'] (max 100) |
hard_delete | boolean | Permanently remove channels and all their messages |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_unread_counts_batch Get unread counts in batch
Fetch unread message and channel counts for multiple users in a single batch request.
| Parameter | Type | Description |
|---|---|---|
user_ids * | array | User IDs to fetch unread counts for (max 100) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_query_message_history Query message edit history
Query the version history of edited messages across channels using filter conditions and cursor pagination.
| Parameter | Type | Description |
|---|---|---|
filter * | object | Filter conditions for message history, e.g. {message_id: 'm1'} |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_retention_policies Get chat retention policies
List the app's chat data-retention policies (old-messages, inactive-channels) with their max_age_hours and when each was enabled. An empty list means nothing is auto-deleted.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_retention_policy_runs Get chat retention policy runs
History of retention cleanup runs: per day and policy, how many messages and channels were hard-deleted. Use it to confirm what a retention policy actually removed.
| Parameter | Type | Description |
|---|---|---|
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_set_retention_policy Set chat retention policy
Enable or update a chat retention policy. Matching data is HARD-DELETED and cannot be recovered; cleanup starts after a 24-hour grace period and runs in the background. Stream emails every admin on the team when a policy is enabled or updated. Setting an existing policy again replaces its max_age_hours.
| Parameter | Type | Description |
|---|---|---|
max_age_hours * | integer | Delete data older than this many hours. Stream accepts 24 to 87600 (10 years). |
policy * | string | old-messages deletes messages older than max_age_hours; inactive-channels deletes channels whose latest of created_at, updated_at and last_message_at is older than max_age_hours |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_delete_retention_policy Delete chat retention policy
Turn off a chat retention policy so Stream stops auto-deleting that kind of data. Data already deleted is not restored. Succeeds even when the policy is not set.
| Parameter | Type | Description |
|---|---|---|
policy * | string | old-messages deletes messages older than max_age_hours; inactive-channels deletes channels whose latest of created_at, updated_at and last_message_at is older than max_age_hours |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_create_import_url Create import upload URL
Step 1 of a chat data import: get a short-lived presigned upload_url to PUT the import JSON file to, and the path to pass to chat_create_import once it is uploaded. Creates nothing in the app by itself.
| Parameter | Type | Description |
|---|---|---|
filename | string | Name for the uploaded file, e.g. import.json |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_create_import Start chat data import
Step 2 of a chat data import: start importing an uploaded file (path from chat_create_import_url, max 300 MB). insert skips items that already exist. upsert is NOT a partial update: for existing items, fields missing from the file are reset to their defaults and custom data is replaced (blocked users are merged). Imports never delete data. Runs asynchronously — follow it with chat_get_import; Stream advises allowing up to 7 days for a full migration.
| Parameter | Type | Description |
|---|---|---|
mode * | string | insert: skip existing items. upsert: replace existing items (destructive). |
path * | string | The path returned by chat_create_import_url |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_list_imports List chat data imports
List the app's chat data imports with their state and state history.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
chat_get_import Get chat data import
Get one chat data import's state and its state-transition history — use it to follow an import started with chat_create_import.
| Parameter | Type | Description |
|---|---|---|
id * | string | Import task ID |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_ban_user Ban user
Ban a user app-wide, or from one channel when `channel_cid` is given. A shadow ban lets the user keep posting while hiding their messages from everyone else.
| Parameter | Type | Description |
|---|---|---|
banned_by_id * | string | Moderator performing the ban |
target_user_id * | string | User ID to ban |
ban_from_future_channels | boolean | Also ban the user from every channel banned_by_id creates from now on. moderation_unban_user does not lift this part; see moderation_query_future_channel_bans. |
channel_cid | string | Ban from this channel only, e.g. 'messaging:general'. Omit for an app-wide ban. |
delete_messages | string | Also delete the user's existing messages |
ip_ban | boolean | Also ban the user's IP address |
reason | string | Reason recorded with the ban |
shadow | boolean | Shadow ban — the user can still post, but only they see their messages |
timeout | integer | Ban duration in minutes. Omit for a permanent ban. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_unban_user Unban user
Lift a ban. Pass the same `channel_cid` that was used to ban, or omit it to lift an app-wide ban. `banned_by_id` selects which ban to lift when a user was banned by several moderators.
| Parameter | Type | Description |
|---|---|---|
target_user_id * | string | User ID to unban |
banned_by_id | string | Moderator who created the ban being lifted. Only needed to disambiguate between bans by different moderators. |
channel_cid | string | Channel the ban was applied to. Omit for an app-wide unban. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_flag_message Flag content for review
Flag a message (or other entity) for moderator review. The flag lands in the review queue — see moderation_query_review_queue.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | ID of the entity to flag (a message ID for messages) |
user_id * | string | User raising the flag |
custom | object | Custom key/value data stored on the object |
entity_creator_id | string | User who created the flagged entity |
entity_type | string | Type of entity being flagged |
reason | string | Reason for the flag, e.g. 'spam', 'hate' |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_query_banned_users Query banned users
List current bans. Common filters: {user_id: {$eq: 'alice'}}, {channel_cid: {$eq: 'messaging:general'}}, {banned_by_id: {$eq: 'mod'}}.
| Parameter | Type | Description |
|---|---|---|
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_query_future_channel_bans Query future channel bans
List future-channel bans: a user banned with ban_from_future_channels is blocked from every channel the banning user creates later. Pass user_id (the banning user) to see whom they banned, or target_user_id to see who banned that user — one is required. moderation_unban_user does NOT lift a future-channel ban (verified). Stream's review-queue unban action has an option for it: moderation_submit_action with payload {unban: {remove_future_channels_ban: true}}.
| Parameter | Type | Description |
|---|---|---|
exclude_expired_bans | boolean | Leave out bans that have expired |
include_total | boolean | Also return the total number of matching bans (capped at 100000) |
limit | integer | Bans to return |
offset | integer | Bans to skip |
target_user_id | string | The banned user: list who banned them |
user_id | string | The banning user: list whom they banned |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_mute_user Mute user
Mute one or more users on behalf of another user. Muted users' messages are hidden from the muting user only.
| Parameter | Type | Description |
|---|---|---|
target_ids * | array | User IDs to mute |
user_id * | string | User doing the muting |
timeout | integer | Mute duration in minutes. Omit for indefinite. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_unmute_user Unmute user
Remove a user-level mute, so the muted user's messages become visible again to the user who muted them.
| Parameter | Type | Description |
|---|---|---|
target_ids * | array | User IDs to unmute |
user_id * | string | User who created the mute |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_query_flags Query moderation flags
List moderation flags. Common filters: {entity_type: {$eq: 'stream:chat:v1:message'}}, {reporter_id: {$eq: 'alice'}}, {reviewed: false}.
| Parameter | Type | Description |
|---|---|---|
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_query_review_queue Query review queue
List items awaiting moderator review. Common filters: {entity_type: {$eq: 'stream:chat:v1:message'}}, {status: {$in: ['pending', 'flagged']}} for items still awaiting review (Stream accepts unknown filter fields silently, so a misspelt field returns an empty list rather than an error). Act on an item with moderation_submit_action.
| Parameter | Type | Description |
|---|---|---|
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
stats_only | boolean | Return only aggregate counts, not the items |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_submit_action Act on a review queue item
Resolve a review queue item: mark it reviewed, delete the content, ban or unban the user, and so on. Get `item_id` from moderation_query_review_queue. Action-specific options go in `payload`, keyed by the action type (e.g. {ban: {timeout: 60, reason: 'spam'}}).
| Parameter | Type | Description |
|---|---|---|
action_type * | string | Action to take on the item |
item_id * | string | Review queue item ID |
payload | object | Action-specific options, keyed by action type, e.g. {ban: {timeout: 60, reason: 'spam'}} or {delete_message: {hard_delete: true}} |
user_id | string | Moderator performing the action |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_check Check content against moderation policy
Run text through the app's moderation policy without posting it, returning the recommended action. Useful for pre-screening user-generated content.
| Parameter | Type | Description |
|---|---|---|
entity_creator_id * | string | User who authored the content |
entity_id * | string | An ID for the content being checked |
text * | string | The text to check |
config_key | string | Moderation config to check against |
entity_type | string | Type of entity being checked |
test_mode | boolean | Evaluate without recording a moderation result |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_query_logs Query moderation logs
List moderation actions taken on the app — who did what, to whom, and when.
| Parameter | Type | Description |
|---|---|---|
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_list_blocklists List blocklists
List the app's word blocklists, including Stream's built-in lists. Blocklists are attached to a channel type to take effect.
| Parameter | Type | Description |
|---|---|---|
team | string | Restrict to a team (multi-tenant apps) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_get_blocklist Get blocklist
Get one blocklist and its words.
| Parameter | Type | Description |
|---|---|---|
name * | string | Blocklist name |
team | string | Team the blocklist belongs to |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_create_blocklist Create blocklist
Create a word blocklist. Attach it to a channel type with chat_update_channel_type to enforce it.
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique blocklist name |
words * | array | Words or patterns to block |
is_leet_check_enabled | boolean | Also match leetspeak substitutions |
is_plural_check_enabled | boolean | Also match plural forms |
is_substring_matching_enabled | boolean | Match the words anywhere inside a longer word |
team | string | Team the blocklist belongs to |
type | string | How the entries are interpreted. Default: word. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_update_blocklist Update blocklist
Update a blocklist. `words` replaces the entire list — read the current words with moderation_get_blocklist first if you are adding to it.
| Parameter | Type | Description |
|---|---|---|
name * | string | Blocklist name |
is_leet_check_enabled | boolean | Also match leetspeak substitutions |
is_plural_check_enabled | boolean | Also match plural forms |
is_substring_matching_enabled | boolean | Match the words anywhere inside a longer word |
team | string | Team the blocklist belongs to |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
words | array | Replacement word list |
moderation_delete_blocklist Delete blocklist
Delete a custom blocklist. Stream's built-in lists cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
name * | string | Blocklist name to delete |
team | string | Team the blocklist belongs to |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_query_configs Query moderation configs
List moderation policy configurations with optional filtering, sorting and cursor pagination. Each row shows the config's key, team, timestamps and which policy sections are set; read one config's sections with moderation_get_config.
| Parameter | Type | Description |
|---|---|---|
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_get_config Get moderation config
Get a single moderation policy configuration by its key and optional team.
| Parameter | Type | Description |
|---|---|---|
key * | string | Moderation config key, e.g. 'default' or 'messaging:default' |
team | string | Team the moderation config belongs to |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_upsert_config Upsert moderation config
Create or replace a moderation policy configuration for text, image, video, audio, blocklists, LLM, circumvention, semantic filters, flood or toxicity. This is a full replace — any section you omit is cleared on an existing key, so read it with moderation_get_config first and send every section you want to keep.
moderation_delete_config Delete moderation config
Delete a moderation policy configuration by its key and optional team.
| Parameter | Type | Description |
|---|---|---|
key * | string | Moderation config key to delete |
team | string | Team the moderation config belongs to |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_query_rules Query moderation rules
List custom moderation rules with optional filtering, sorting and cursor pagination.
| Parameter | Type | Description |
|---|---|---|
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_get_rule Get moderation rule
Get a single moderation rule by its unique ID, including its conditions and actions.
| Parameter | Type | Description |
|---|---|---|
id * | string | Moderation rule ID |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_upsert_rule Upsert moderation rule
Create or replace a moderation rule with conditions, target config keys and automated actions. Upserting an existing rule overwrites it — read it with moderation_get_rule first when editing.
moderation_delete_rule Delete moderation rule
Delete a custom moderation rule by its unique ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Moderation rule ID to delete |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_get_review_queue_item Get review queue item
Get a single moderation review queue item by ID, including its flags and moderation payload.
| Parameter | Type | Description |
|---|---|---|
id * | string | Review queue item ID |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_appeal Submit moderation appeal
Submit an appeal against a moderation decision on a message, user or other entity.
| Parameter | Type | Description |
|---|---|---|
appeal_reason * | string | Explanation for why the moderation action should be overturned |
entity_id * | string | ID of the moderated entity being appealed |
entity_type * | string | Entity type, e.g. 'stream:chat:v1:message' or 'stream:user' |
user_id * | string | User ID submitting the appeal |
channel_cid | string | Channel CID associated with the appeal (only used for channel-ban appeals), e.g. 'messaging:general' |
review_queue_item_id | string | Review queue item ID associated with the moderation action |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_get_appeal Get moderation appeal
Get a single moderation appeal by its unique ID, including its status and history.
| Parameter | Type | Description |
|---|---|---|
id * | string | Appeal ID |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_query_appeals Query moderation appeals
List moderation appeals with optional filtering, sorting and cursor pagination.
| Parameter | Type | Description |
|---|---|---|
filter | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_get_flag_count Get flag count for a user
Count how many flags a user's content has received, optionally for one entity type. A quick repeat-offender check before moderation_query_flags; returns 0 for users with no flags.
| Parameter | Type | Description |
|---|---|---|
entity_creator_id * | string | User ID whose content was flagged |
entity_type | string | Entity type filter, e.g. stream:chat:v1:message or stream:user |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_list_policy_test_sets List policy test sets
List the app's moderation policy test sets (Stream "Evaluations"): fixed batches of content re-run through a policy to see how a rule change would decide them. Each set shows its latest run.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_get_policy_test_set Get policy test set
Get a policy test set with its rows, its last 10 runs (newest first) and baseline_run_id — the first completed run, which later runs are scored against.
| Parameter | Type | Description |
|---|---|---|
id * | string | Policy test set ID |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_create_policy_test_set Create policy test set
Create a policy test set to dry-run a moderation policy before changing it with moderation_upsert_config or moderation_upsert_rule. Pass either rows (your own content with expected labels/actions) or seed (sample up to 1000 recent production items) — exactly one. Set text is frozen, so later runs stay comparable. Run it with moderation_start_policy_test_run.
| Parameter | Type | Description |
|---|---|---|
name * | string | Set name, unique within the app |
config_key | string | Moderation config key every row runs against. Omit to replay each row under the policy it originally ran under (seeded sets). |
mode | string | Execution target: check (the moderation check pipeline) or labels (the Labels API). Default: labels when the org has the Labels API enabled, else check. check-mode runs need an AI provider (LLM or Bod… |
rows | array | Content to test (max 1000). Mutually exclusive with seed. |
seed | object | Sample production content instead of passing rows. Fails if nothing matches. Mutually exclusive with rows. |
team | string | Team scope for the config (multi-tenant apps) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_delete_policy_test_set Delete policy test set
Permanently delete a policy test set and all its runs and results. Stream refuses while a run is pending or running.
| Parameter | Type | Description |
|---|---|---|
id * | string | Policy test set ID |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_start_policy_test_run Start policy test run
Run a policy test set through its policy's current configuration. Each row is a real moderation call, billed at production rates. Asynchronous: returns a pending run — poll moderation_get_policy_test_run until it finishes (Terminal statuses are completed, error and cancelled). Only one run per set may be in progress, and the first completed run becomes the baseline later runs are scored against.
| Parameter | Type | Description |
|---|---|---|
id * | string | Policy test set ID |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
moderation_get_policy_test_run Get policy test run
Get a policy test run's status, progress (rows_completed / rows_total) and, once finished, per-row results: expected vs actual labels and action, passed, and failure_reason (label_mismatch, action_mismatch, provider_error, policy_not_found). Terminal statuses are completed, error and cancelled; results are absent until then. metrics totals appear on runs after the baseline.
| Parameter | Type | Description |
|---|---|---|
id * | string | Policy test run ID |
only_failed | boolean | Return only rows that failed or could not be scored (passed is not true) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_create_call Create or get call
Create a video/audio call, or return it if it already exists. Built-in types: 'default' (group call), 'livestream' (broadcast), 'audio_room', 'development'. Users still need a token to join — mint one with auth_create_call_token.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
created_by_id * | string | User ID of the call creator |
custom | object | Custom key/value data stored on the object |
members | array | Initial members — user IDs or {user_id, role} objects |
notify | boolean | Send a notification to the members without ringing |
ring | boolean | Ring the members (triggers incoming-call notifications) |
settings_override | object | Call settings to override, e.g. {recording: {mode: 'available', quality: '1080p'}, audio: {mic_default_on: true}, backstage: {enabled: true}, screensharing: {enabled: false}} |
starts_at | string | ISO-8601 scheduled start time, e.g. '2026-09-01T15:00:00Z' |
team | string | Team the call belongs to (multi-tenant apps) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_get_call Get call
Get a call's current state: settings, members, session, ingress (RTMP/SRT) addresses and egress (HLS) URLs.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
members_limit | integer | Max results to return (default: 25, max: 100) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_update_call Update call
Update a call's settings, custom data or scheduled start time. Settings are merged, so only the keys you pass change.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
custom | object | Custom key/value data stored on the object |
settings_override | object | Call settings to override, e.g. {recording: {mode: 'available', quality: '1080p'}, audio: {mic_default_on: true}, backstage: {enabled: true}, screensharing: {enabled: false}} |
starts_at | string | ISO-8601 scheduled start time, e.g. '2026-09-01T15:00:00Z' |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_end_call End call
End an active call and disconnect every participant. The call object remains and can be rejoined unless deleted.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_query_calls Query calls
Search and filter calls. Common filters: {ongoing: {$eq: true}} for live calls, {backstage: {$eq: false}}, {created_by_user_id: {$eq: 'alice'}}, {starts_at: {$gt: '2026-09-01T00:00:00Z'}} for upcoming. Page with the returned `next` cursor.
| Parameter | Type | Description |
|---|---|---|
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 10, max: 25) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_delete_call Delete call
Delete a call. Soft delete by default. `hard: true` permanently removes the call and its recordings and frees the id.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
hard | boolean | Permanently delete. Irreversible. Default: false. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_go_live Go live
Take a call out of backstage and make it live for viewers. Can start recording, HLS broadcasting, transcription and closed captions in the same call. Backstage must be enabled first, on the call type or per call via video_update_call `settings_override: {backstage: {enabled: true}}` — otherwise Stream rejects this with "backstage is not enabled for call types <type>" (it is off on the built-in `default` type).
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
recording_storage_name | string | External storage name for recordings |
start_closed_caption | boolean | Also start closed captions |
start_hls | boolean | Also start HLS broadcasting |
start_recording | boolean | Also start recording |
start_transcription | boolean | Also start transcription |
transcription_storage_name | string | External storage name for transcriptions |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_stop_live Stop live
Put a live call back into backstage. By default this also stops recording, HLS, transcription and RTMP broadcasts — pass the matching `continue_*` flag to keep one running. Needs backstage enabled on the call or its type, same as video_go_live.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
continue_closed_caption | boolean | Keep closed captions running |
continue_hls | boolean | Keep HLS broadcasting running |
continue_recording | boolean | Keep recording running |
continue_rtmp_broadcasts | boolean | Keep RTMP broadcasts running |
continue_transcription | boolean | Keep transcription running |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_ring_call Ring call members
Send an incoming-call ring to the call's members, triggering their ringing UI and push notifications.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
member_ids | array | Restrict the ring to these member IDs. Omit to ring all members. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video | boolean | Ring as a video call rather than audio-only |
video_send_call_event Send custom call event
Broadcast a custom real-time event to everyone in a call, e.g. {custom: {'render-animation': 'balloons'}}.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
custom * | object | Event payload |
user_id * | string | User the event is attributed to |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_get_call_report Get call report
Get quality and participation statistics for a finished call session — participants, duration, latency and jitter. Richer than video_query_call_stats but retained only for a limited window, after which Stream answers "call report data expired"; use video_query_call_stats for durations older than that. Stream empties `session.participants` once a session ends, so that list being empty is Stream's own behaviour, not compaction.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
session_id | string | Specific session ID. Omit for the latest session. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_query_call_stats Query call stats
Query aggregated call quality statistics across calls — one row per call session, with `call_duration_seconds`. This is the bulk, non-expiring source of session durations: it reaches back to the app's first call, where video_get_call_report expires. Filter by {call_cid: {$eq: 'default:my-call'}}. A time range needs an explicit $and of single-operator expressions, because Stream rejects two operators on one field: {$and: [{created_at: {$gt: '2026-06-01T00:00:00Z'}}, {created_at: {$lt: '2026-09-01T00:00:00Z'}}]}.
| Parameter | Type | Description |
|---|---|---|
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 10, max: 25) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_get_edges List edge servers
List Stream's video edge servers and their current latency and health.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_update_call_members Update call members
Add, update the role of, or remove members on a call. Adding a member does not admit them — they still need a token.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
remove_members | array | User IDs to remove |
update_members | array | Members to add or update — user IDs or {user_id, role} objects |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_query_call_members Query call members
Search and filter the members of a call. Common filters: {role: {$eq: 'host'}}, {user_id: {$in: ['alice','bob']}}.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_block_user Block user from call
Block a user from a call. They are removed if currently connected and cannot rejoin until unblocked.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
user_id * | string | User ID to block |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_unblock_user Unblock user from call
Remove a call-level block, allowing the user to rejoin.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
user_id * | string | User ID to unblock |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_mute_users Mute users in call
Mute participants in a call. Pass `user_ids` for specific people or `mute_all_users: true` for everyone. Audio is muted unless you explicitly set `audio: false`.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
muted_by_id * | string | Moderator performing the mute |
audio | boolean | Mute audio. Default: true. |
mute_all_users | boolean | Mute every user in the call |
screenshare | boolean | Stop screensharing. Default: false. |
screenshare_audio | boolean | Mute screenshare audio. Default: false. |
user_ids | array | User IDs to mute |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video | boolean | Mute video. Default: false. |
video_query_call_participants Query call participants
List users connected to a call's active session, filtered by user ID or by which tracks they are publishing. Unlike members, participants are people actually in the call right now — this reports the CURRENTLY LIVE session only, so a call whose session has ended returns an empty list; use video_get_call_report for a session that is over. Stream requires at least one filter, so pass `user_ids` and/or `published_tracks`.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
limit | integer | Max results to return (default: 25, max: 100) |
published_tracks | array | Restrict to participants publishing these track types |
user_ids | array | Restrict to these user IDs |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_kick_user Kick user from call
Disconnect a user from the active call session. Unlike blocking, they may rejoin unless `block` is set.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
user_id * | string | User ID to kick |
block | boolean | Also block them from rejoining |
kicked_by_id | string | Moderator performing the kick |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_update_user_permissions Grant or revoke call permissions
Grant or revoke a user's per-call capabilities. Common permissions: 'send-audio', 'send-video', 'screenshare'.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
user_id * | string | User whose permissions change |
grant_permissions | array | Permissions to grant |
revoke_permissions | array | Permissions to revoke |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_pin Pin participant video
Pin a participant's video for everyone in the call session. Requires the session ID from video_get_call.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
session_id * | string | Call session ID (from video_get_call → call.session.id) |
user_id * | string | User whose video is pinned |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_unpin Unpin participant video
Remove a server-side video pin.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
session_id * | string | Call session ID |
user_id * | string | User whose pin is removed |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_start_recording Start recording
Start recording a call. The call must have an active session with at least one participant, and its recording mode must not be 'disabled' (set it with video_update_call).
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
recording_external_storage | string | Name of a configured external storage target |
recording_type | string | Recording layout: 'composite' (all participants in one file, the usual choice), 'individual' (one file per participant), 'raw' (unprocessed tracks). Default: composite. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_stop_recording Stop recording
Stop an in-progress recording. `recording_type` must match the type that was started.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
recording_type | string | Recording layout: 'composite' (all participants in one file, the usual choice), 'individual' (one file per participant), 'raw' (unprocessed tracks). Default: composite. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_list_recordings List recordings
List a call's recordings, with their session ids, filenames and download URLs.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_start_transcription Start transcription
Start transcribing a call. The call must have an active session, and transcription must be enabled on the call type.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
enable_closed_captions | boolean | Also emit live closed captions |
language | string | Spoken language in the call, e.g. 'en', 'es', 'fr', 'hi', 'ja'. Use 'auto' to detect. Default: auto. |
transcription_external_storage | string | Name of a configured external storage target |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_stop_transcription Stop transcription
Stop an in-progress transcription.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
stop_closed_captions | boolean | Also stop closed captions |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_list_transcriptions List transcriptions
List a call's transcriptions, with their session ids, filenames and download URLs.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_delete_recording Delete recording
Permanently delete one recording. Get `session` and `filename` from video_list_recordings.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
filename * | string | Recording filename |
session * | string | Call session ID the recording belongs to |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_delete_transcription Delete transcription
Permanently delete one transcription. Get `session` and `filename` from video_list_transcriptions.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
filename * | string | Transcription filename |
session * | string | Call session ID the transcription belongs to |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_start_closed_captions Start closed captions
Start live closed captions on an active call.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
enable_transcription | boolean | Also store a transcription |
external_storage | string | External storage name |
language | string | Spoken language in the call, e.g. 'en', 'es', 'fr', 'hi', 'ja'. Use 'auto' to detect. Default: auto. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_stop_closed_captions Stop closed captions
Stop live closed captions on a call.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
stop_transcription | boolean | Also stop the transcription |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_start_hls_broadcasting Start HLS broadcast
Start HLS broadcasting for a livestream call. The playlist URL appears on the call's `egress.hls` field (see video_get_call).
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_stop_hls_broadcasting Stop HLS broadcast
Stop HLS broadcasting for a call.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_start_rtmp_broadcasts Start RTMP broadcasts
Restream a call to external RTMP endpoints such as YouTube Live or Twitch. Each broadcast needs a unique `name` and a `stream_url`.
| Parameter | Type | Description |
|---|---|---|
broadcasts * | array | RTMP destinations |
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_stop_rtmp_broadcast Stop one RTMP broadcast
Stop a single named RTMP broadcast on a call.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
name * | string | Name the broadcast was started with |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_stop_all_rtmp_broadcasts Stop all RTMP broadcasts
Stop every RTMP broadcast running on a call.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_list_call_types List call types
List the app's call types with their headline settings. Returns a summary — use video_get_call_type for one type's full settings and permission grants.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_get_call_type Get call type
Get one call type's configuration and its permission grants. Composite-layout styling options and the ingress encoder ladder are summarised rather than listed — pass verbose:true for those values.
| Parameter | Type | Description |
|---|---|---|
name * | string | Call type name, e.g. 'default' |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_create_call_type Create call type
Create a custom call type. A call type's name is immutable once created, and existing calls keep the type they were created with.
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique call type name |
external_storage | string | Default external storage name |
grants | object | Permission grants keyed by role, e.g. {host: ['join-call','send-audio','send-video'], user: ['join-call']} |
settings | object | Call settings, e.g. {audio: {mic_default_on: true}, video: {camera_default_on: true}, recording: {mode: 'available'}, backstage: {enabled: false}, transcription: {mode: 'available'}} |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_update_call_type Update call type
Update a call type's default settings or permission grants. Applies app-wide to every call of that type.
| Parameter | Type | Description |
|---|---|---|
name * | string | Call type name |
external_storage | string | Default external storage name |
grants | object | Permission grants keyed by role, e.g. {host: ['join-call','send-audio','send-video'], user: ['join-call']} |
settings | object | Call settings, e.g. {audio: {mic_default_on: true}, video: {camera_default_on: true}, recording: {mode: 'available'}, backstage: {enabled: false}, transcription: {mode: 'available'}} |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_delete_call_type Delete call type
Delete a custom call type. Fails if calls of that type still exist. Built-in types cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
name * | string | Call type name to delete |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_get_active_calls_status Get active calls status
Get a real-time summary of currently active calls and participant counts across the application.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_query_aggregate_call_stats Query aggregate call stats
Query application-wide aggregated call statistics and quality reports over a YYYY-MM-DD date range.
| Parameter | Type | Description |
|---|---|---|
from | string | Start date of the reporting window in YYYY-MM-DD format |
report_types | array | Specific aggregate report types to include (defaults to all available report types when omitted) |
to | string | End date of the reporting window in YYYY-MM-DD format |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_query_call_session_stats Query call session stats
Query per-session call statistics and quality metrics with optional filtering, sorting and pagination.
| Parameter | Type | Description |
|---|---|---|
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_query_call_participant_stats Query call participant stats
Query per-participant quality and connection statistics for a specific call session.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
session * | string | Call session ID |
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_get_participant_stats_timeline Get participant stats timeline
Get the chronological timeline of events and quality metrics for a participant in a call session.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
session * | string | Call session ID |
user * | string | User ID of the participant |
user_session * | string | Participant's user session ID |
end_time | string | ISO-8601 end timestamp to filter timeline events |
severity | array | Filter timeline events by severity levels, e.g. ['warning', 'error'] |
start_time | string | ISO-8601 start timestamp to filter timeline events |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_query_user_feedback Query call user feedback
Query user ratings and feedback submitted for calls, with optional filtering, sorting and pagination.
| Parameter | Type | Description |
|---|---|---|
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
full | boolean | Include full call and session details with each feedback entry |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
sort | array | Sort parameters, applied in order |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_start_frame_recording Start frame recording
Start capturing periodic video frames from an active call for moderation or analysis.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
recording_external_storage | string | Name of a configured external storage target for recorded frames |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_stop_frame_recording Stop frame recording
Stop an in-progress periodic video frame recording on a call.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_send_closed_caption Send closed caption
Send a live closed caption segment to an active call on behalf of a speaker.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
speaker_id * | string | Identifier of the speaker |
text * | string | Closed caption text |
user_id * | string | User ID attributed to the caption |
language | string | Language code of the caption text |
translated | boolean | Whether the caption text is a translation of the original speech |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_list_sip_trunks List SIP trunks
List all inbound SIP trunks configured for the application.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_create_sip_trunk Create SIP trunk
Create an inbound SIP trunk with associated phone numbers and optional IP allowlist.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the SIP trunk |
numbers * | array | Phone numbers associated with this SIP trunk |
allowed_ips | array | Allowed IPv4/IPv6 addresses or CIDR blocks |
password | string | Password for SIP trunk authentication |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_update_sip_trunk Update SIP trunk
Replace an existing inbound SIP trunk's name, phone numbers, allowed IPs or password.
| Parameter | Type | Description |
|---|---|---|
id * | string | SIP trunk ID to update |
name * | string | Updated name of the SIP trunk |
numbers * | array | Updated phone numbers associated with this SIP trunk |
allowed_ips | array | Updated allowed IPv4/IPv6 addresses or CIDR blocks |
password | string | Updated password for SIP trunk authentication |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_delete_sip_trunk Delete SIP trunk
Permanently delete an inbound SIP trunk by its unique ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | SIP trunk ID to delete |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_list_sip_routing_rules List SIP routing rules
List all inbound SIP routing rules that map incoming calls to Stream video calls.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_create_sip_routing_rule Create SIP routing rule
Create an inbound SIP routing rule that routes calls from SIP trunks to Stream video calls via direct or PIN routing. Requires at least one of direct_routing_configs or pin_routing_configs.
| Parameter | Type | Description |
|---|---|---|
caller_configs * | object | Caller user creation and mapping configuration for routed SIP calls |
name * | string | Name of the SIP inbound routing rule |
trunk_ids * | array | SIP trunk IDs this routing rule applies to |
call_configs | object | Optional custom data configuration for the routed Stream call |
called_numbers | array | Dialed phone numbers matched by this rule |
caller_numbers | array | Caller phone numbers matched by this rule |
direct_routing_configs | object | Direct routing configuration mapping inbound SIP calls to a target call |
pin_protection_configs | object | PIN protection settings for inbound SIP calls |
pin_routing_configs | object | PIN-based routing configuration for inbound SIP calls |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_update_sip_routing_rule Update SIP routing rule
Replace an inbound SIP routing rule by ID. This is a full replace: any field you omit (called_numbers, caller_numbers, call_configs, direct_routing_configs, pin_routing_configs, pin_protection_configs) is cleared, so read the rule with video_list_sip_routing_rules first and send everything you want to keep. Requires at least one of direct_routing_configs or pin_routing_configs.
| Parameter | Type | Description |
|---|---|---|
caller_configs * | object | Caller user creation and mapping configuration for routed SIP calls |
id * | string | SIP routing rule ID to replace |
name * | string | Name of the SIP inbound routing rule |
trunk_ids * | array | SIP trunk IDs this routing rule applies to |
call_configs | object | Optional custom data configuration for the routed Stream call |
called_numbers | array | Dialed phone numbers matched by this rule |
caller_numbers | array | Caller phone numbers matched by this rule |
direct_routing_configs | object | Direct routing configuration mapping inbound SIP calls to a target call |
pin_protection_configs | object | PIN protection settings for inbound SIP calls |
pin_routing_configs | object | PIN-based routing configuration for inbound SIP calls |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_delete_sip_routing_rule Delete SIP routing rule
Permanently delete an inbound SIP routing rule by its unique ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | SIP routing rule ID to delete |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_query_call_participant_sessions Query call participant sessions
Attendance for one call session: who joined, when they joined and left, how long they stayed and whether they published, plus session totals. Data exists only once participants have connected media; a call nobody joined returns not found.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
session * | string | Call session ID (current_session_id or session.id from video_get_call) |
filter_conditions | object | Filter object using Stream query syntax. Operators: $eq, $ne, $in, $nin, $gt, $gte, $lt, $lte, $exists, $and, $or, $autocomplete, $contains. |
limit | integer | Max results to return (default: 25, max: 100) |
next | string | Cursor from a previous response's `next` field |
prev | string | Cursor from a previous response's `prev` field |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_get_participant_session_metrics Get participant session metrics
Connection and media metrics for one participant's session in a call: client details, publisher/subscriber role and per-track publish metrics. Find the user_session_id with video_query_call_participant_sessions. Returns not found until the participant has published stats.
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
session * | string | Call session ID |
user * | string | User ID of the participant |
user_session * | string | The participant's user_session_id |
since | string | Only include metrics from this time (ISO 8601) |
until | string | Only include metrics up to this time (ISO 8601) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_query_call_ring_attempts Query call ring attempts
Ringing diagnostics for a call, newest first: who rang whom, the attempt's outcome and how it settled, and each target's state and push/websocket deliveries. Use it to answer "why didn't their phone ring".
| Parameter | Type | Description |
|---|---|---|
call_id * | string | Call ID |
call_type * | string | Call type: 'default', 'livestream', 'audio_room', 'development', or a custom type |
call_session_id | string | Limit to one call session. Omit to read every session of the call. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
video_get_daily_digest Get video daily digest
The app's video daily digest: per-call-session participant counts and broadcast rollups for one UTC day. Defaults to the previous UTC day. A day not yet processed comes back with status "pending" and retry_after (seconds) instead of data.
| Parameter | Type | Description |
|---|---|---|
date | string | UTC day as YYYY-MM-DD (default: the previous UTC day) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_get_settings Get app settings
Read the Stream app's configuration: enabled features, permission version, webhook URLs, push providers, file upload rules and channel/call type summaries.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_update_settings Update app settings
Update the Stream app's configuration. Changes are global and take effect immediately — read the current settings with app_get_settings first. Pass only the keys you intend to change, e.g. {webhook_url: 'https://…'} or {multi_tenant_enabled: true}.
| Parameter | Type | Description |
|---|---|---|
settings * | object | Settings to change, e.g. {webhook_url: 'https://example.com/hook', webhook_events: ['message.new'], async_url_enrich_enabled: true} |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_get_rate_limits Get rate limits
Read the app's current API rate limits and remaining quota. With no `endpoints`, only the endpoints with quota already consumed are listed, out of ~230. Naming endpoints returns their ceilings whether or not any quota has been used. Note that video endpoints are almost absent from this endpoint — of 233 server-side entries only DeleteCall and VideoConnect are video — so a video ceiling has to be read from the `metadata.rateLimit` any video tool returns.
| Parameter | Type | Description |
|---|---|---|
endpoints | string | Comma-separated endpoint names to narrow the result, e.g. 'QueryChannels,SendMessage'. Names Stream does not recognise come back under `unmatched_endpoints` rather than being dropped silently. |
server_side | boolean | Include server-side limits (default: true) |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_get_task Get async task status
Poll an asynchronous task started by chat_export_channels or users_delete. Returns its status and, once complete, the result or download URL.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | Task ID returned by the operation |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_list_roles List roles
List all built-in and custom roles defined in the Stream application.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_create_role Create custom role
Create a new custom role in the Stream application that can be assigned to users or members.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the custom role to create |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_delete_role Delete custom role
Delete a custom role from the Stream application by its name. Built-in roles cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the custom role to delete |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_list_permissions List permissions
List all available permissions in the Stream application that can be granted to roles.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_get_permission Get permission
Retrieve details of a specific permission by its ID, including its condition and action definition.
| Parameter | Type | Description |
|---|---|---|
id * | string | Permission ID to retrieve |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_list_push_providers List push providers
List all configured push notification providers (APN, Firebase, Huawei, or Xiaomi) on the app.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_upsert_push_provider Create or update push provider
Create or replace a named push notification provider configuration (APN, Firebase, Huawei, or Xiaomi).
| Parameter | Type | Description |
|---|---|---|
name * | string | Unique name for this push provider configuration |
type * | string | Push notification provider type |
apn_auth_key | string | APNs .p8 authentication key content |
apn_auth_type | string | APNs authentication: token (.p8 key via apn_auth_key, apn_key_id, apn_team_id) or certificate (.p12 via apn_p12_cert) |
apn_development | boolean | Whether to use the APNs development/sandbox environment |
apn_host | string | Override the APNs host, e.g. https://api.sandbox.push.apple.com |
apn_key_id | string | APNs key ID |
apn_p12_cert | string | Base64 of a password-less APNs .p12 certificate, for apn_auth_type certificate. Stream rejects AES-encrypted .p12 files; with OpenSSL 3 export using `openssl pkcs12 -export -legacy`. |
apn_team_id | string | Apple developer team ID |
apn_topic | string | APNs bundle identifier / topic |
description | string | Human-readable description of the push provider |
disabled_at | string | ISO-8601 timestamp if the provider is disabled |
disabled_reason | string | Reason the push provider was disabled |
firebase_credentials | string | Firebase service account credentials JSON string |
huawei_app_id | string | Huawei Push Kit application ID |
huawei_app_secret | string | Huawei Push Kit application secret |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
xiaomi_app_secret | string | Xiaomi Push application secret |
xiaomi_package_name | string | Xiaomi application package name |
app_delete_push_provider Delete push provider
Delete a named push notification provider configuration from the Stream application.
| Parameter | Type | Description |
|---|---|---|
name * | string | Push provider name to delete |
type * | string | Push notification provider type |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_check_push Check push notifications
Test push notification delivery and template rendering for a user or message across configured push providers. Delivers real push notifications to the user's devices unless skip_devices is true.
| Parameter | Type | Description |
|---|---|---|
user_id * | string | User ID whose devices to test push delivery against (required by Stream) |
event_type | string | Event type to render push template for |
message_id | string | Message ID to render and test push payload for |
push_provider_name | string | Named push provider configuration to test |
push_provider_type | string | Push notification provider type |
skip_devices | boolean | Skip device lookup and only validate template rendering |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_verify_webhook Verify webhook signature
Verify the HMAC-SHA256 X-Signature header of an incoming Stream webhook payload against the app's API secret.
| Parameter | Type | Description |
|---|---|---|
raw_body * | string | Raw HTTP request body string signed by Stream |
signature * | string | Hex signature from the X-Signature HTTP header |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_list_external_storage List external storage
List all external storage buckets (S3, GCS, Azure Blob) configured on the Stream application.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_create_external_storage Create external storage
Register an external cloud storage bucket (AWS S3, Google Cloud Storage, or Azure Blob) for recordings and exports.
| Parameter | Type | Description |
|---|---|---|
bucket * | string | Bucket or container name on the storage provider |
name * | string | Unique name for the external storage configuration |
storage_type * | string | Cloud storage provider type: s3, gcs, or abs |
aws_s3 | object | Amazon S3 region and optional credentials (omit s3_api_key and s3_secret to use IAM role authentication) |
azure_blob | object | Azure Blob Storage account credentials |
gcs_credentials | string | Google Cloud Storage service account JSON credentials string |
path | string | Key prefix path inside the bucket for stored files |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_update_external_storage Update external storage
Replace an existing external cloud storage configuration (AWS S3, GCS, or Azure Blob) by name.
| Parameter | Type | Description |
|---|---|---|
bucket * | string | Bucket or container name on the storage provider |
name * | string | Unique name for the external storage configuration |
storage_type * | string | Cloud storage provider type: s3, gcs, or abs |
aws_s3 | object | Amazon S3 region and optional credentials (omit s3_api_key and s3_secret to use IAM role authentication) |
azure_blob | object | Azure Blob Storage account credentials |
gcs_credentials | string | Google Cloud Storage service account JSON credentials string |
path | string | Key prefix path inside the bucket for stored files |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_delete_external_storage Delete external storage
Delete an external cloud storage configuration from the Stream application by its name.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the external storage configuration to delete |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_check_external_storage Check external storage
Test connectivity and write permissions for a configured external storage bucket by its name.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the external storage configuration to test |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_check_sqs Check SQS webhook target
Test that Stream can publish to an AWS SQS queue by sending it a test message. Pass sqs_url with sqs_key/sqs_secret to test a queue before saving it, or nothing to test the queue saved on the app. Returns status "ok" or "error"; on error, `error` carries the provider's message (e.g. InvalidClientTokenId, topic not found). Credentials are never echoed back.
| Parameter | Type | Description |
|---|---|---|
sqs_key | string | AWS access key ID |
sqs_secret | string | AWS secret access key |
sqs_url | string | Queue URL, e.g. https://sqs.us-east-1.amazonaws.com/123/queue |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_check_sns Check SNS webhook target
Test that Stream can publish to an AWS SNS topic by sending it a test message. Pass sns_topic_arn with sns_key/sns_secret to test a topic before saving it, or nothing to test the topic saved on the app. Returns status "ok" or "error"; on error, `error` carries the provider's message (e.g. InvalidClientTokenId, topic not found). Credentials are never echoed back.
| Parameter | Type | Description |
|---|---|---|
sns_key | string | AWS access key ID |
sns_secret | string | AWS secret access key |
sns_topic_arn | string | Topic ARN, e.g. arn:aws:sns:us-east-1:123:topic |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_check_gcp_pubsub Check Google Pub/Sub webhook target
Test that Stream can publish to a Google Cloud Pub/Sub topic by sending it a test message. Returns status "ok" or "error"; on error, `error` carries the provider's message (e.g. InvalidClientTokenId, topic not found). Credentials are never echoed back.
| Parameter | Type | Description |
|---|---|---|
gcp_pubsub_topic * | string | Fully qualified topic: projects/{project}/topics/{topic} |
gcp_pubsub_event_based_ordering_key_enabled | boolean | Publish with an ordering key through the regional endpoint, as an ordered hook would |
gcp_pubsub_region | string | GCP region for the regional endpoint; required when ordering is enabled |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |
app_query_team_usage_stats Query team usage stats
Chat usage per team (multi-tenant apps): messages, users, engaged users, concurrent connections, translations and image moderations. Pass month for monthly totals, or start_date + end_date for a daily breakdown — not both. Team "" means users with no team.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Range end as YYYY-MM-DD (with start_date) |
limit | integer | Teams per page (default 30, max 30) |
month | string | Month as YYYY-MM, for aggregated monthly values |
next | string | Cursor from a previous page |
start_date | string | Range start as YYYY-MM-DD (with end_date) |
team | string | One team ID; "" selects users without a team. Cannot be combined with next. |
verbose | boolean | Return the full raw Stream response instead of the compacted view. Only use when the compacted result is missing a field you need — raw responses are large. |