Golem.ai - API documentation

Depending on your use, three possibilities to connect to Golem.ai : HTTP, Websocket or Socket.

HTTP, Websocket or Socket ?

HTTP Websocket TCP
Setup Very fast Fast Variable
Availabre functionalities Limited All All
Protocol format JSON JSON JSON
Possible SSL/TLS connection ? Yes - HTTPS Yes - WSS No (coming soon)
Recommended use Prototyping
Web page
Web page Web server (back)
Desktop softwares
Home automation, robotics, connected objects

A common protocol

HTTP, sockets and websockets are sharing a protocol which is mostly common.
In HTTP mode the protocol will sometimes be shortened : a unique request instead of several successive messages in socket/websocket.

Console use

If your server has been creating using the console, at some point the protocol will ask you to provide the Token of the server.

Note:
If you are making a public application (web page for example) this token will be public. The server created from the console being usable only in a limited way (Fixed context), the publication of the token is not a problem : only the user requests to be analyzed will be processed.


Finally, to connect to a server which has been created using the console, the following connection addresses will have to be used :

TCP : golem.ai:3003
Web Socket : golem.ai:3004/ws
Web Socket Sécurisé (WSS) : golem.ai:3005/ws
HTTP : golem.ai:3004/http
HTTPS : golem.ai:3005/http




Contact Us

Having Trouble ? Encountering a problem ?
tech@golem.ai

API connection address :

TCP : golem.ai:3003
Web Socket : golem.ai:3004/ws
Web Socket Sécurisé (WSS) : golem.ai:3005/ws
HTTP : golem.ai:3004/http
HTTPS : golem.ai:3005/http