product:chat
Search roles
Changed onSearches mentionable roles (user-assignable + channel-assignable, built-in and custom) by name prefix for autocomplete
get/roles/search
Request
- Base URLhttps://chat.stream-io-api.com
- URLhttps://chat.stream-io-api.com/roles/search
- Auth
- API key in header Authorization and API key in query parameter api_key and API key in header Stream-Auth-Type
- or API key in query parameter api_key and API key in header Stream-Auth-Type
Query parameters
querystring required
Case-insensitive name prefix to match against role names
limitinteger
Maximum number of roles to return (1-25, default 10)
name_gtstring
Return roles with names strictly greater than this cursor (for pagination)
role_type'user' | 'channel'
Optional filter: 'user' for user-assignable roles, 'channel' for channel-assignable roles. Omit to return both.
include_global_rolesboolean
When true, include cross-team operator roles whose name starts with 'global_'. Defaults to false.
Response
Successful response
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
endpoint added
- info