Authentication is executed using an API Key to obtain an x-user-token. You can generate an API key as an administrator in the NGChat application dashboard (Settings -> API Key). You can generate a new API key at any time.

Sample authentication:

 curl -i

Server response:

HTTP/1.1 200 OK
Date: Tue, 04 Aug 2015 10:13:26 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 15
Connection: keep-alive
x-user-token: 1234567890

{"status" : 1}

After a correct authentication the server will return a header with a token.

 x-token-user: 1234567890

The token will be necessary for further communication with the API.
Please remember that the x-token-user is changed after each sent server request!