This is the documentation for the latest version of API (v2). You can find the documentation for v1
here.