See our API documentation here: https://github.com/publiclab/plots2/blob/master/doc/API.md