# Angular2 chat mattermost API

**URL:** <https://forum.mattermost.com/t/angular2-chat-mattermost-api/3160>\
**Category:** Troubleshooting\
**Created:** [April 19, 2017, 12:45pm UTC](https://forum.mattermost.com/t/angular2-chat-mattermost-api/3160 "2017-04-19T12:45:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![federicolucca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/federicolucca/32/1242_2.png) [@federicolucca](https://forum.mattermost.com/u/federicolucca)\
**Post date:** [April 19, 2017, 12:45pm UTC](https://forum.mattermost.com/t/angular2-chat-mattermost-api/3160/1 "2017-04-19T12:45:19Z")

</div>

Hi,

I’m working for creating a chat with angular2 and the mattermost API hosted on my server.  
The chat will be inserted in some website, something like chatlio.  
i’m trying to connect and use the mattermost API thought the [mattermost-driver-javascript/client.jsx at master · mattermost/mattermost-driver-javascript · GitHub](https://github.com/mattermost/mattermost-driver-javascript/blob/master/client.jsx) js client.

After the login,that works fine,all other request goes in status 401. why?  
The mattermost server is 3.7.3

There is a documentation?

Federico

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [April 21, 2017, 8:07am UTC](https://forum.mattermost.com/t/angular2-chat-mattermost-api/3160/2 "2017-04-21T08:07:36Z")

</div>

Hi @federicolucca

Thanks for your question!

Mattermost v3.8 was released on April 16th. Could we have your help upgrading to the [latest version](https://about.mattermost.com/download/) to see whether the issue still reproduces for you?
