Gravity API v1.1
If you were looking for the legacy 1.0 documentation, you will find it here.

TL;DR

Since there are only two functions:

... all you need to know, is this:

The API can be called both from browsers and from a server, thus you get this matrix of four possible endpoints:

A useful description of the needed JSON payloads is found here