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