GET /api/v1/im.messages.others "This endpoint is disabled [error-endpoint-disabled]"


Hello , i have tried to use GET /api/v1/im.messages.others , but keep getting error “This endpoint is disabled [error-endpoint-disabled]” .
Enable Direct Message History Endpoint is turned on for every role, view-room-administration turned on for user used in requests.

Tried to restart rocketchat server, but no effect.
Also found code (Rocket.Chat/im.ts at 9d818a7af44ecac02982085634cc2e0b2bdc095e · RocketChat/Rocket.Chat · GitHub) where error is produced, which basically says that “Enable Direct Message History Endpoint” is not enabled, but it is enabled.

Link to docs:

Server Setup Information

  • Version of Rocket.Chat Server: 4.8.3
  • Operating System: Linux rchat 5.4.0-124-generic #140-Ubuntu SMP Thu Aug 4 02:23:37 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Deployment Method:
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v14.18.3
  • MongoDB Version: 4.2.17 / wiredTiger (oplog Enabled)
  • Proxy:
  • Firewalls involved:

omg settings-general-restapi != permissions-settings-general-restapi , solved