This document outlines the parameters deprecated in Rocket.Chat’s REST API endpoints and Realtime API methods. Some of these parameters have already been removed, while others are scheduled for removal in upcoming releases. To ensure continued functionality, adopt the recommended alternatives specified for each affected parameter.
REST API
The table below shows the deprecated parameters in our REST API endpoints:
Parameter | Endpoints affected | Release deprecated | Release removal | Description |
---|---|---|---|---|
| 4.6.0 | 7.0.0 | This parameter will no longer accept | |
| 4.6.0 | 7.0.0 | This parameter will no longer be accepted. Use | |
| 4.6.0 | 7.0.0 | This parameter will no longer be accepted. Use | |
| 6.0.0 | 7.0.0 | The parameter will stop being accepted (use the |
Query and fields query parameters .png?sv=2022-11-02&spr=https&st=2025-04-19T23%3A57%3A22Z&se=2025-04-20T00%3A08%3A22Z&sr=c&sp=r&sig=T9fBagqI%2BbioXY8oqhYZQ7Wq3oXhjIH8TuvJaJYULuw%3D)
The query
and fields
parameters have been deprecated since version 5.0.0 across all supported endpoints to prevent malicious queries. They are disabled by default from version 7.0.0 and can only be enabled by setting the ALLOW_UNSAFE_QUERY_AND_FIELDS_API_PARAMS: true
environment variable in your deployment configuration.
Enabling these parameters may expose your workspace to security risks, and Rocket.Chat is not responsible for any resulting vulnerabilities. Proceed with caution and ensure proper security measures are in place.
When enabled, a deprecation message is included in the response header as X-Deprecation-Message
. These parameters are scheduled for removal in version 8.0.0, after which enabling them will no longer be an option.
The following endpoints are among those affected:
Endpoint |
|
|
---|---|---|
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | x | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
x | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | x | |
✓ | x | |
x | ✓ | |
x | ✓ | |
x | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | x | |
✓ | ✓ | |
✓ | ✓ | |
✓ | x | |
✓ | x | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | x | |
✓ | ✓ | |
x | ✓ | |
✓ | ✓ | |
✓ | x |
Realtime API
The table below outlines the deprecated parameters in our Realtime API methods:
Method | Parameters affected | Release deprecated | Release removal | Description |
---|---|---|---|---|
|
| 6.6.0 | 7.0.0 | The parameter will stop being accepted. |
|
| 4.6.0 | 7.0.0 | This parameter will no longer accept |
|
| 4.6.0 | 7.0.0 | This parameter will no longer accept |
|
| 4.6.0 | 7.0.0 | This parameter will no longer accept |