Hello @alwinjs28,
Could you share which server version of Mattermost you have installed? If you’re not already running the latest version, we recommend upgrading. You can also wait until v4.7 is released on Feb 16th.
Here is the API documentation which you might find useful?