# Integrating mattermost in my web application

**URL:** <https://forum.mattermost.com/t/integrating-mattermost-in-my-web-application/991>\
**Category:** Troubleshooting\
**Created:** [March 3, 2016, 8:46am UTC](https://forum.mattermost.com/t/integrating-mattermost-in-my-web-application/991 "2016-03-03T08:46:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![guypaskar](https://avatars.discourse-cdn.com/v4/letter/g/9f8e36/32.png) [@guypaskar](https://forum.mattermost.com/u/guypaskar)\
**Post date:** [March 3, 2016, 8:46am UTC](https://forum.mattermost.com/t/integrating-mattermost-in-my-web-application/991/1 "2016-03-03T08:46:28Z")

</div>

Is it possible to integrate mattermost within an existing web app? I want to have in some places of my app a specific room of mattermost where the relevant people can communicate. Is is possible?

Are there api/sdk to create users, rooms , groups etc.?

---

<div class="post-metadata">

**Author:** ![it33](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/it33/32/3_2.png) [@it33](https://forum.mattermost.com/u/it33)\
**Post date:** [March 4, 2016, 2:52pm UTC](https://forum.mattermost.com/t/integrating-mattermost-in-my-web-application/991/2 "2016-03-04T14:52:34Z")

</div>

Please see [API documentation](http://docs.mattermost.com/developer/api.html) and a list of [community applications built using APIs](http://www.mattermost.org/community-applications/).

---

<div class="post-metadata">

**Author:** ![Ewurama](https://avatars.discourse-cdn.com/v4/letter/e/8edcca/32.png) [@Ewurama](https://forum.mattermost.com/u/Ewurama)\
**Post date:** [June 29, 2016, 2:12pm UTC](https://forum.mattermost.com/t/integrating-mattermost-in-my-web-application/991/3 "2016-06-29T14:12:10Z")

</div>

Hello @it33 ,

I have setup a local mattermost server. Next thing is I would like to integrate mattermost with our web application. Such that users of the application can view other users and access a buddylist. Also users should be able to chat.

As i was researching i came accross XChat irc client. So I was trying to access my mattermost server in the irc client and after I would like to plug the XChat into my own software application. This has not been very successful especially with installing and running matterbridge plus.  
I am very new to mattermost so kindly help me get my head around how to do this easily.

**Below is what i have already tried**

First, I installed the matterircd on 127.0.0.1:6667. I was able to access this server correctly from XChat. Only problem is i could not find room to link or relay chat between my existing mattermost server on port 8065 and my matterbridge which i was accessing in XChat irc client.

Second I installed and configured matterbridge plus but I am getting and error when i run it. Below is my conf file as well as the error i get when i run matterbridge plus.

**This is my conf file :**  
[IRC]  
server="[irc.freenode.net](http://irc.freenode.net)"  
port=6667  
UseTLS=false  
SkipTLSVerify=true  
nick="matterbot"  
UseSlackCircumfix=false  
#NickServNick=“nickserv”  
#NickServPassword=“secret"  
RemoteNickFormat=”\<{NICK}\> "  
IgnoreNicks=“ircspammer1 ircspammer2”

[mattermost]  
server=“[http://localhost:8065/](http://localhost:8065/)”  
#certificate check by default  
SkipTLSVerify=true  
#https by default  
NoTLS=true  
team=“enterp”  
#login/pass of your bot  
login="aaa555"  
password="passwordtest"  
showjoinpart=true  
#token="k5isyh7n4fy5m\*\*\*\*\*\*\*\*\*“  
PrefixMessagesWithNick=false  
NickFormatter=plain  
NicksPerRow=4  
RemoteNickFormat=”[irc] \<{NICK}\>"  
IgnoreNicks=“mmbot spammer2”

[general]  
GiphyAPIKey=dc6zaTOxFJmzC

#channel config  
[channel “town-square”]  
irc="#bottesting"  
mattermost=“testing”

[channel “off-topic”]  
irc="#random"  
mattermost=“random”

**Also this is the command i run and the error :**

vaaa1tt@vaaa1tt:~/work/bin$ ./matterbridge-plus  
running version 0.4  
INFO[2016-06-29T13:00:10Z] Trying login ewurama555 (team: enterprisenurs) on [http://localhost:8063/](http://localhost:8063/) module=mattermost  
FATA[2016-06-29T13:00:11Z] Can not connectmodel.client.connecting.app\_error module=mattermost

---

<div class="post-metadata">

**Author:** ![it33](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/it33/32/3_2.png) [@it33](https://forum.mattermost.com/u/it33)\
**Post date:** [June 29, 2016, 2:14pm UTC](https://forum.mattermost.com/t/integrating-mattermost-in-my-web-application/991/4 "2016-06-29T14:14:56Z")

</div>

If you’re trying to integrate into a web application, it’s probably easier to just use the [Javascript driver](https://github.com/mattermost/mattermost-driver-javascript).
