OctoPrint API interface


#1

Hi,

I am new to this forum. I am looking for OctoPrint Web interface REST API documentation. Appreciate pointing me to specific area. How to access (getting access credentials)the same with directions will help.


#2

API docs: http://docs.octoprint.org/en/master/api/

Authorization info: http://docs.octoprint.org/en/master/api/general.html#authorization


#3

In order to get the access key, do I need to install octoprint software on the windows machine connected to the 3d printer? FYI - Windows machine will be on the network.
Just not clear. I was thinking there will be a cloud api to get that developer access key which is used to connect to the local printer


#4

From the standpoint of cost and permanence, most install OctoPrint on a Raspberry Pi 3B single-board computer which then serves up the web interface and the web API as well. The cost of powering a Raspberry all year long is probably under $10 versus the ~ $200 for that same Windows PC.

Once in OctoPrint, Settings -> API

It's not necessary to also install OctoPrint on the client side of the API communications.

If you're into JavaScript (Node), my own octo-client is what I use lately.

github
npmjs