Integrate mattermost with third party api

I wanted to develop a chat-service api. But I wanted to use mattermost api not directly from client but from my api. So, my api is a proxy api to the mattermost api. Can any one give me some idea how to tackle this problem.

Would this be what you’re looking for https://docs.mattermost.com/developer/oauth-2-0-applications.html?