All API requests return a JSON object. The JSON response always contains the members code and status.

The status member is the high-level result of the request and has two possible values: success and fail. The code member is an HTTP response code describing the outcome of the API result.

Some actions or events in the API, such as trying to access API methods when a user is not logged in, can result in a URL redirect. In these situations, the JSON response can contain the member referrer.